|
|
"Mr" <mauriceraybaud [at] hotmail dot fr>> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > hi,
> >
> > "Mr" <mauriceraybaud [at] hotmail dot fr>> wrote:
> > > "jr" <cre### [at] gmailcom> wrote:
> > > > "Mr" <mauriceraybaud [at] hotmail dot fr>> wrote:
> > > > > ... I can't afford to not be cross platform
> > > >
> > > > you know that POV-Ray builds, you know that Hg is derived from the same
sources.
> > > > it would be a lot of work, but if you worked through the differences in the
> > > > sources, perhaps aided by single-stepping (with debugger) through POV-Ray
> > > > execution, you could (likely) find out exactly what
> > > > 'Get_Token_String(CYLINDER_TOKEN)' returns, and what else matters at that
point
> > > > in the code. sorry to be of little/no help.
> > >
> > > I had tried but could not find 'Get_Token_String(CYLINDER_TOKEN)' used in the
> > > same context in POV-Ray trunk source, I may have searched wrong.
> > > Just trying to help would already be a lot! besides I do have the impression
> > > that you did unlock a few a step forwards. thanks !
> >
> > thanks for the .. vote of confidence. (flattery will get you anywhere.. :-))
> >
> > I've created two 'tags' files with the symbols/names used in the sources.
> > searching them for 'Get_Token' gives me:
> >
> > jr@swift:1:tmp$ xzgrep -n Get_Token hg_tags.xz
> > 46500:Get_Token
> > povray-3.8.0.alpha-Hg.226.Bigarade/source/parser/parser_tokenizer.cpp 317;" f
> > class:pov_parser::Parser
> > 46501:Get_Token_String
> > povray-3.8.0.alpha-Hg.226.Bigarade/source/parser/parser_tokenizer.cpp 1701;" f
> > class:pov_parser::Parser
> > jr@swift:2:tmp$ xzgrep -n Get_Token pov_tags.xz
> > 45379:Get_Token povray-3.8.0-alpha.10064268/source/parser/parser_tokenizer.cpp
> > 210;" f class:pov_parser::Parser
> > 45380:Get_Token_String
> > povray-3.8.0-alpha.10064268/source/parser/parser_tokenizer.cpp 877;" f
> > class:pov_parser::Parser
> > jr@swift:3:tmp$
> >
> > you can download the listings from here:
> >
> >
<https://drive.google.com/file/d/10RaLHKnogRE6ikkiaybHMP4d8ezyZfH9/view?usp=sharing>
> >
<https://drive.google.com/file/d/10ThvgvOXlnSnHJrlAVdiV1UF1fcRpAIZ/view?usp=sharing>
> >
> > they're about 20M each, so I have used 'xz' to compress, you can use 'WinRAR' to
> > uncompress if you don't have an 'unxz' installed.
> >
> >
> > regards, jr.
> >
> > (reply via email if you feel this discussion is a bit off-topic)
>
>
> The solution from this page seems to bring me a step further:
>
https://stackoverflow.com/questions/33423502/expression-did-not-evaluate-to-a-constant-c
>
> so...
> char tmp_compound[4+strlen(Get_Token_String(CYLINDER_TOKEN))];
> becomes
> char* tmp_compound = new char[4+strlen(Get_Token_String(CYLINDER_TOKEN))];
>
Hi, I went on trying:
....Then removing deprecated binary_function following this page helped me clear
the next issue:
https://stackoverflow.com/questions/22386882/why-have-unary-function-binary-function-been-removed-from-c11
So in compare_pointees.hpp line 36 may become:
struct equal_pointees_t {
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
{ return equal_pointees(x,y) ; }
typedef OptionalPointee first_argument_type;
typedef OptionalPointee second_argument_type;
typedef bool result_type;
} ;
And line 61:
struct less_pointees_t {
bool operator() ( OptionalPointee const& x, OptionalPointee const& y ) const
{ return less_pointees(x,y) ; }
typedef OptionalPointee first_argument_type;
typedef OptionalPointee second_argument_type;
typedef bool result_type;
} ;
However in function _template.hpp, line 662 should also change:
, public std::function<T0,R>
and line 666:
, public std::function<T0,T1,R>
but to what?
(using CLANG-cl compiler in MSVS2019 from its internal installer, and ISO C++ 17
language version
Post a reply to this message
|
|