[antlr-interest] Antlr3 C Runtime Improvement Patches
Jim Idle
jimi at temporal-wave.com
Sun Feb 1 08:56:19 PST 2009
Bot Tiger wrote:
> Here are some patches to get the antlr3 C runtime to compile as STDCALL.
Shouldn't be. Are you trying to compile the runtime as C++? It should be
compiled as C.
> Apparently strdup is also deprecated in recent versions of visual studio.
Again, this is catered for already as the headers turn off the
requirement to use the secure versions, though you can certainly choose
to do so.
> @@ -152,9 +152,9 @@
> /// Returns the description string if there is one available
> (check for NULL).
> ///
> void * (*getDescription) (struct
> ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
> + void (ANTLR3_CDECL *free) (struct
> ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
>
> - void (*free) (struct
> ANTLR3_REWRITE_RULE_ELEMENT_STREAM_struct * stream);
I doubt that this change is required - it certainly isn't with my
version of Visual Studio 2008 (latest service packs) and wasn't with
VS2005. There must be some other reason that you are getting these errors.
Jim
More information about the antlr-interest
mailing list