[antlr-interest] C runtime const correctness
Jim Idle
jimi at temporal-wave.com
Tue Dec 2 09:38:28 PST 2008
On Mon, 2008-12-01 at 22:17 -0600, Gary R. Van Sickle wrote:
> Shouldn't this:
>
> ANTLR3_API pANTLR3_INPUT_STREAM antlr3AsciiFileStreamNew(pANTLR3_UINT8
> fileName);
>
> Really be this:
>
> ANTLR3_API pANTLR3_INPUT_STREAM antlr3AsciiFileStreamNew(const
> pANTLR3_UINT8 fileName);
>
> ?
>
Not all C compilers support that as it is , though I suspect that for
other reasons, a C compiler that did not probably would not compile the
runtime anyway. So strictly speaking yes, but I would not spend too much
time worrying about this :-)
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081202/0c3ab453/attachment.html
More information about the antlr-interest
mailing list