postgresql/src/include/nodes
Tom Lane 7c0eb3c622 Tighten up parsing logic in gen_node_support.pl.
Teach this script to handle function pointer fields honestly.
Previously they were just silently ignored, but that's not likely to
be a behavior we can accept indefinitely.  This mostly entails fixing
it so that a field declaration spanning multiple lines can be parsed,
because we have a bunch of such fields that're laid out that way.
But that's a good improvement in its own right.

With that change and a minor regex adjustment, the only struct it
fails to parse in the node-defining headers is A_Const, because
of the embedded union.  The path of least resistance is to move
that union declaration outside the struct.

Having done those things, we can make it error out if it finds
any within-struct syntax it doesn't understand, which seems like
a pretty important property for robustness.

This commit doesn't change the output files at all; it's just in
the way of future-proofing.

Discussion: https://postgr.es/m/2593369.1657759779@sss.pgh.pa.us
2022-07-14 09:04:23 -04:00
..
.gitignore
bitmapset.h
execnodes.h
extensible.h
lockoptions.h
makefuncs.h
memnodes.h
nodeFuncs.h
nodes.h
params.h
parsenodes.h Tighten up parsing logic in gen_node_support.pl. 2022-07-14 09:04:23 -04:00
pathnodes.h Tighten up parsing logic in gen_node_support.pl. 2022-07-14 09:04:23 -04:00
pg_list.h
plannodes.h
primnodes.h
print.h
readfuncs.h
replnodes.h
subscripting.h
supportnodes.h
tidbitmap.h
value.h