File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ version in `plx.control` (currently `1.0`).
1313 dialect-neutral engine (declared in the new ` src/plx_engine.h ` ) plus per-dialect
1414 front ends in ` src/plx_dialect_*.c ` and the shared ` src/plx_parse_brace.c ` ;
1515 the hardcoded ` block_style ` dispatch is replaced by a per-dialect ` parse_body `
16- function pointer. No functional change — generated plpgsql is byte-identical
16+ function pointer. No functional change; generated plpgsql is byte-identical
1717 and all regression tests pass. Adding a dialect no longer touches shared code.
1818- Follow-up to the above: relocated the dialect-neutral ` plx_diag_prefix() `
1919 helper out of ` src/plx_dialect_ruby.c ` and back into the engine
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ supplies. The surface describes what varies between languages:
100100The transpiler is split into a dialect-neutral ** engine** and per-dialect
101101** front ends** , selected through the ` parse_body ` function pointer on the
102102surface (a vtable method). ` plx_transpile() ` just calls
103- ` cx->surf->parse_body(cx) ` and then runs one assemble tail — there is no
103+ ` cx->surf->parse_body(cx) ` and then runs one assemble tail; there is no
104104per-dialect branching in the driver.
105105
106106- The ** engine** lives in ` plx_transpile.c ` and is declared to the front ends
@@ -144,8 +144,8 @@ src/plx_dialect_tsql.c the plxtsql surface + T-SQL front end
144144Everything links into a single ` plx.so ` . A dialect is a ` PlxSurface ` (including
145145its ` parse_body ` front end) plus small trampolines (validator, inline handler,
146146and the shared call-handler binding), registered in ` _PG_init ` . Adding a dialect
147- is a new ` plx_dialect_X.c ` — a surface with its ` parse_body ` , plus a few
148- ` CREATE LANGUAGE ` lines — and does not touch the shared engine.
147+ is a new ` plx_dialect_X.c ` ( a surface with its ` parse_body ` , plus a few
148+ ` CREATE LANGUAGE ` lines), and does not touch the shared engine.
149149
150150## Trust
151151
You can’t perform that action at this time.
0 commit comments