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

Cameron Esfahani dirty at apple.com
Fri Aug 17 16:53:32 PDT 2007


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/20070817/695a9df6/attachment.html 


More information about the antlr-interest mailing list