Re: Ungraceful handling of fatal flex errors

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Ungraceful handling of fatal flex errors
Дата
Msg-id 24259.980779415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Ungraceful handling of fatal flex errors  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Ungraceful handling of fatal flex errors  (dom@idealx.com)
Список 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 по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: new version of contrib-intarray
Следующее
От: Tom Lane
Дата:
Сообщение: Re: new version of contrib-intarray