Re: Re: [PATCHES] Select parser at runtime

Поиск
Список
Период
Сортировка
От Ian Lance Taylor
Тема Re: Re: [PATCHES] Select parser at runtime
Дата
Msg-id siwv47vqe9.fsf@daffy.airs.com
обсуждение исходный текст
Ответ на Re: Re: [PATCHES] Select parser at runtime  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
Jan Wieck <JanWieck@Yahoo.com> writes:

>     If we want to have both parsers available at runtime we  need
>     to  replace the YY (case-insensitive) prefix in the generated
>     files per parser and call the right one from tcop.   Now  for
>     some flex/bison combo's at least the prefix switches (to have
>     something different than YY) don't work reliable. There  will
>     be  some  global  YY-objects  left, causing linkage problems.
>     That's why PL/pgSQL's scanner/parser's C-code is run  through
>     sed(1).

This is a solved problem.  gdb, for example, links together four
different Yacc-based parsers, without even using bison's -p option.

Ian


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rename config.h to pg_config.h?
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: PL/pgSQL bug?