flex problems [was: slightly more info for bogoutil segfault]
David Relson
relson at osagesoftware.com
Sun Aug 3 02:20:57 CEST 2003
At 08:07 PM 8/2/03, Clint Adams wrote:
> > Can you send me the generated lexer_v3.c file? Looking at my copy
>
>Sure, attached.
>
> > (generated by flex version 2.5.4), line lexer_v3.l:284 is unput(), where
> > unput is a flex defined macro that uses yytext_ptr, which is defined as
> > "#define yytext_ptr yytext". Let's see what the newer flex 2.5.31 does !!!
>
>Ah, yes, I remember something about unput in the wrong section:
>
>http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=189332
An interesting bug report and response.
To summarize: "flex now cleans up after itself by undefining macros such
as yytext_ptr".
Gotcha: unput() is a macro used in lexer_v3.l, but is not #undefined.
Anyhow, I'll look and see if I can revise the code to work in the new
environment.
More information about the bogofilter-dev
mailing list