Re: Ungraceful handling of fatal flex errors - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Ungraceful handling of fatal flex errors
Date
Msg-id 24259.980779415@sss.pgh.pa.us
Whole thread Raw
In response to Ungraceful handling of fatal flex errors  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Ungraceful handling of fatal flex errors
List pgsql-hackers
dom@idealx.com, dom@idealx.com writes:
>> #define fprintf(file,fmt,msg)  elog(FATAL, "%s", (msg))

>   Meaning no disrespect : yuck... IMHO this is asking for trouble
> whenever someone decides to use another yacc.

This is flex, not yacc, and our lexer has been flex-only for a long
time.  It's possible that the hack would break in a future version
of flex, but I doubt it.  What else is a lexer going to use fprintf
for?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: new version of contrib-intarray
Next
From: Tom Lane
Date:
Subject: Re: new version of contrib-intarray