Re: [Flex-devel] comment in generated C code that has C++ style
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Will E. <wes...@gm...> - 2016-01-04 01:06:05
|
This is already fixed in the flex source tree on github and will be included in the next release. On Sunday, 3 January 2016, 4:57 pm -0800, "Scott C. Livingston" <sli...@cd...> wrote: > Using flex 2.6.0, I found that the generated file lex.yy.c contains a > comment in C++ style, which causes `gcc -std=c90` (equivalently, `gcc > -ansi`) to fail. The line of code is > > num_to_alloc = 1; // After all that talk, this was set to 1 anyways... > > It occurs in the function yyensure_buffer_stack(). Is this known > behavior? If so, are there plans to change it, e.g., to be of the form > /* ... */? > > ~Scott > > ------------------------------------------------------------------------------ > _______________________________________________ > Flex-devel mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-devel -- Will Estes Flex Project Maintainer wes...@gm... https://github.com/westes/flex |