git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 399d0f1) | patch
bootstrap: pure parser and reentrant scanner
2024年12月19日 14:37:44 +0000 (15:37 +0100)
2024年12月19日 14:37:44 +0000 (15:37 +0100)
commit 3e4bacb171001644583ac14e29ae1b09ce818c92
bootstrap: pure parser and reentrant scanner

Use the flex %option reentrant and the bison option %pure-parser to
make the generated scanner and parser pure, reentrant, and
thread-safe.

Make the generated scanner use palloc() etc. instead of malloc() etc.

For the bootstrap scanner and parser, reentrancy and memory management
aren't that important, but we make this change here anyway so that all
the scanners and parsers in the backend use a similar set of options
and APIs.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Andreas Karlsson <andreas@proxel.se>
Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b@eisentraut.org
src/backend/bootstrap/bootparse.y diff | blob | blame | history
src/backend/bootstrap/bootscanner.l diff | blob | blame | history
src/backend/bootstrap/bootstrap.c diff | blob | blame | history
src/include/bootstrap/bootstrap.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /