]> granicus.if.org Git - postgresql/commit
Convert the core lexer and parser into fully reentrant code, by making use
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jul 2009 02:02:20 +0000 (02:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Jul 2009 02:02:20 +0000 (02:02 +0000)
commit91e71929ba38c2cd212435982c95ccb7c19b4174
tree9c9f12c6cfc6cd0e16b18364d5d9ff2c1740b144
parentda4b900176b6506ca0b685a780cb34fb8564dbba
Convert the core lexer and parser into fully reentrant code, by making use
of features added to flex and bison since this code was originally written.
This change doesn't in itself offer any new capability, but it's needed
infrastructure for planned improvements in plpgsql.

Another feature now available in flex is the ability to make it use palloc
instead of malloc, so do that to avoid possible memory leaks.  (We should
at some point change the other lexers likewise, but this commit doesn't
touch them.)
src/backend/nls.mk
src/backend/parser/gram.y
src/backend/parser/parser.c
src/backend/parser/scan.l
src/include/parser/gramparse.h