Return yyparse() result not via global variable
Peter Eisentraut <peter@eisentraut.org>
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@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nls.mk | modified | +2 −2 |
| src/backend/replication/repl_gram.y | modified | +2 −5 |
| src/backend/replication/repl_scanner.l | modified | +7 −3 |
| src/backend/replication/syncrep.c | modified | +4 −4 |
| src/backend/replication/syncrep_gram.y | modified | +4 −5 |
| src/backend/replication/syncrep_scanner.l | modified | +19 −3 |
| src/backend/replication/walsender.c | modified | +1 −3 |
| src/bin/pgbench/exprparse.y | modified | +2 −3 |
| src/bin/pgbench/exprscan.l | modified | +5 −1 |
| src/bin/pgbench/pgbench.c | modified | +1 −3 |
| src/bin/pgbench/pgbench.h | modified | +2 −4 |
| src/include/replication/syncrep.h | modified | +3 −7 |
| src/include/replication/walsender_private.h | modified | +2 −4 |
| src/pl/plpgsql/src/nls.mk | modified | +1 −1 |
| src/pl/plpgsql/src/pl_comp.c | modified | +2 −6 |
| src/pl/plpgsql/src/pl_gram.y | modified | +43 −42 |
| src/pl/plpgsql/src/plpgsql.h | modified | +2 −4 |
| src/pl/plpgsql/src/pl_scanner.c | modified | +4 −1 |
Discussion
- pure parsers and reentrant scanners 25 messages · 2024-12-02 → 2025-01-24