[antlr-interest] Small bug in 3.0.1 C runtime sourceantlr3filestream.c

Jim Idle jimi at temporal-wave.com
Sat Aug 18 07:26:36 PDT 2007


So it should! J

 

From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Cameron Esfahani
Sent: Friday, August 17, 2007 4:54 PM
To: antlr-interest Interest
Subject: [antlr-interest] Small bug in 3.0.1 C runtime
sourceantlr3filestream.c

 

Jim,

I was going through the 3.0.1 sources to see what changed and I noticed
the following around line 38 of antlr3filestream.c:

 

    if    (fileName == NULL)

    {

          (pANTLR3_INPUT_STREAM) ANTLR3_FUNC_PTR(ANTLR3_ERR_NOFILE);

    }

 

It should be:

 

    if    (fileName == NULL)

    {

          return (pANTLR3_INPUT_STREAM)
ANTLR3_FUNC_PTR(ANTLR3_ERR_NOFILE);

    }

 

Cameron Esfahani

dirty at apple.com

 

"With or without religion, good people can behave well and bad people
can do evil; but for good people to do evil - that takes religion."

 

Steven Weinberg

 





 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070818/0c123568/attachment.html 


More information about the antlr-interest mailing list