From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Return yyparse() result not via global variable |
Date: | 2025-01-24 06:03:13 |
Message-ID: | E1tbCmf-003DZb-1c@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Return yyparse() result not via global variable
Instead of passing the parse result from yyparse() via a global
variable, pass it via a function output argument.
This complements earlier work to make the parsers reentrant.
Discussion: Discussion: https://www.postgresql.org/message-id/flat/eb6faeac-2a8a-4b69-9189-c33c520e5b7b(at)eisentraut(dot)org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/473a575e05979b4dbb28b3f2544f4ec8f184ce65
Modified Files
--------------
src/backend/nls.mk | 4 +-
src/backend/replication/repl_gram.y | 7 +--
src/backend/replication/repl_scanner.l | 10 +++-
src/backend/replication/syncrep.c | 8 +--
src/backend/replication/syncrep_gram.y | 9 ++-
src/backend/replication/syncrep_scanner.l | 22 +++++++-
src/backend/replication/walsender.c | 4 +-
src/bin/pgbench/exprparse.y | 5 +-
src/bin/pgbench/exprscan.l | 6 +-
src/bin/pgbench/pgbench.c | 4 +-
src/bin/pgbench/pgbench.h | 6 +-
src/include/replication/syncrep.h | 10 +---
src/include/replication/walsender_private.h | 6 +-
src/pl/plpgsql/src/nls.mk | 2 +-
src/pl/plpgsql/src/pl_comp.c | 8 +--
src/pl/plpgsql/src/pl_gram.y | 85 +++++++++++++++--------------
src/pl/plpgsql/src/pl_scanner.c | 5 +-
src/pl/plpgsql/src/plpgsql.h | 6 +-
18 files changed, 106 insertions(+), 101 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-01-24 06:19:51 | pgsql: initdb: Convert tests to use long options with fat comma style |
Previous Message | Amit Kapila | 2025-01-24 03:01:02 | pgsql: Doc: Fix a typo introduced in 4a0e7314f1. |