[Flex-devel] comment in generated C code that has C++ style
flex is a tool for generating scanners
Brought to you by:
wlestes
|
From: Scott C. L. <sli...@cd...> - 2016-01-04 00:57:48
|
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
|