FLEX, was Re: Return value of malloc(0)

Steve Kargl sgk at troutmask.apl.washington.edu
Thu Jun 29 06:22:51 UTC 2006

On Wed, Jun 28, 2006 at 10:40:45PM -0700, Randall Hyde wrote:
> > >
> >
> > Without seeing the code or the actual error message, I'm
> > guessing the answer is 42.  Perhaps, some detail might
> > be appropriate.
> I seriously doubt seeing the code  will do much good.
> Here's the offending line:
>   YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
>    yy_n_chars, num_to_read );

Hopefully, people who use your product give better bug
reports.   I don't know whether I should laugh or cry.

> gcc -DfreeBSD -c -o lex.yy.o lex.yy.c
> and it stops with "syntax error before numeric constant".

Does your code include all the required header files?
This looks like a namespace pollution problem.


More information about the freebsd-hackers mailing list