I have a question about lex/yacc and the size of the token buffer. I am
increase the size of this buffer from its default size. This buffer,
defined to be YYLMAX bytes, where YYLMAX defaults to BUFSIZ (1024). The
"MKS LEX & YACC" book states that you can change this by redefining it
definitions section of the lex source. I tried doing this, but it still
seems to have a max
size of 1024 bytes. However, on HP-UX, AIX, and Unixware it works fine.
In looking at the generated C code (filename_lex.c), I can see that
YYLMAX is indeed
redefined (in fact, I gret the warning "macro redefined: YYLMAX" when
However, the yytext character buffer is defined only once. This differs
where yytext is redefined again later on in the filename_lex.c file.
Does anyone know if the size of the token buffer (yytext) can be
increased on Solaris?
If so, how do you do it?