aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-11-25 03:33:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-11-25 03:33:27 +0000
commit2eafcf68d563df8a1db80a6fe1cf50ec588b4f34 (patch)
treea5660ee66404c7ac6a702f64e334ae7a17df8022 /src/backend/parser
parent200dd8e3f82370a37ade1f453bc16e0901a6dd1b (diff)
downloadpostgresql-2eafcf68d563df8a1db80a6fe1cf50ec588b4f34.tar.gz
postgresql-2eafcf68d563df8a1db80a6fe1cf50ec588b4f34.zip
Restructure the code in copyfuncs and equalfuncs to put much heavier
reliance on macros, in hopes of eliminating silly typos (like copying to the wrong field) and just generally making it easier to see the forest instead of the trees. As an example, here is the new code for A_Indices: static A_Indices * _copyAIndices(A_Indices *from) { A_Indices *newnode = makeNode(A_Indices); COPY_NODE_FIELD(lidx); COPY_NODE_FIELD(uidx); return newnode; } static bool _equalAIndices(A_Indices *a, A_Indices *b) { COMPARE_NODE_FIELD(lidx); COMPARE_NODE_FIELD(uidx); return true; } I plan to redo outfuncs/readfuncs in a similar style, but am committing what I've got.
Diffstat (limited to 'src/backend/parser')
0 files changed, 0 insertions, 0 deletions