tzcode: please rename the "new" argument in icatalloc()
tzcode/private.h has this declaration: char * icatalloc(char * old, const char * new); The "new" identifier prevents it from being compiled with a C++ compiler. Would you mind renaming the second argument? Thanks! markus
On 03/07/2016 11:06 AM, Markus Scherer wrote:
The "new" identifier prevents it from being compiled with a C++ compiler.
That problem was fixed in release 2015d, in a different way. A lot of other things in tzcode prevent it from being compiled with a C++ compiler, e.g., implicit coercion between void * and other pointer types, or defining functions with different exception specifiers from what's in time.h. I'm not sure it's worth the maintenance hassle to munge tzcode until it fits into the intersection of C and C++.
Markus Scherer said:
tzcode/private.h has this declaration:
char * icatalloc(char * old, const char * new);
The "new" identifier prevents it from being compiled with a C++ compiler. Would you mind renaming the second argument?
The code is written in C, not C++. C and C++ are different languages. [1] Use a C compiler. (Which could be a C/C++ compiler with appropriate options set.) [1] This is official UK policy. I know because I helped set it. -- Clive D.W. Feather | If you lie to the compiler, Email: clive@davros.org | it will get its revenge. Web: http://www.davros.org | - Henry Spencer Mobile: +44 7973 377646
participants (3)
-
Clive D.W. Feather -
Markus Scherer -
Paul Eggert