aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsgistidx.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-06 23:04:51 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-08-06 23:04:51 +0300
commitd5f139cb6814f0af2d2e1106899361e45c305630 (patch)
tree504bb77f1c09e16d27e1a366943932d807847d9f /src/backend/utils/adt/tsgistidx.c
parentfe8dd65bf28db1a6ad690ffcd5124d1863b5a4c6 (diff)
downloadpostgresql-d5f139cb6814f0af2d2e1106899361e45c305630.tar.gz
postgresql-d5f139cb6814f0af2d2e1106899361e45c305630.zip
Constify fields and parameters in spell.c
I started by marking VoidString as const, and fixing the fallout by marking more fields and function arguments as const. It proliferated quite a lot, but all within spell.c and spell.h. A more narrow patch to get rid of the static VoidString buffer would be to replace it with '#define VoidString ""', as C99 allows assigning "" to a non-const pointer, even though you're not allowed to modify it. But it seems like good hygiene to mark all these as const. In the structs, the pointers can point to the constant VoidString, or a buffer allocated with palloc(), or with compact_palloc(), so you should not modify them. Reviewed-by: Andres Freund Discussion: https://www.postgresql.org/message-id/54c29fb0-edf2-48ea-9814-44e918bbd6e8@iki.fi
Diffstat (limited to 'src/backend/utils/adt/tsgistidx.c')
0 files changed, 0 insertions, 0 deletions