Re: CVS HEAD compile warning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CVS HEAD compile warning
Дата
Msg-id 9969.1077781492@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CVS HEAD compile warning  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: CVS HEAD compile warning  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
> Hmm, maybe the change is that "-s" is now enabled by default.

Right.  I inserted "%option nodefault" into pgc.l (and all our other
flex source files) a day or two ago, after realizing that it is a very
effective tool for catching missed cases in a set of lex rules.

I knew at the time that ecpg was the only one of our lexers in which
echo-to-stdout could conceivably be a reasonable default rule.  But
since flex 2.5.4 did not complain, I went ahead and committed the
addition in ecpg as well as everyplace else.

At this point I think our first question is whether flex 2.5.31 is
correctly detecting a hole in the ecpg lexer rules that was missed by
flex 2.5.4, or whether the warning is simply wrong.

If the warning is valid, you need to decide whether you like the idea of
a default spit-to-stdout action, or you'd prefer to put in an additional
flex rule to cover the missing case.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: CVS HEAD compile warning
Следующее
От: Jonathan Scott
Дата:
Сообщение: Check Constraints and pg_dump