Add const decorations
Peter Eisentraut <peter@eisentraut.org>
Add const decorations in index.c and indexcmds.c and some adjacent places. This especially makes it easier to understand for some complicated function signatures which are the input and the output arguments. Discussion: https://www.postgresql.org/message-id/flat/5ed89c69-f4e6-5dab-4003-63bde7460e5e%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/bootstrap/bootstrap.c | modified | +1 −1 |
| src/backend/catalog/heap.c | modified | +1 −1 |
| src/backend/catalog/index.c | modified | +33 −33 |
| src/backend/catalog/namespace.c | modified | +5 −5 |
| src/backend/commands/indexcmds.c | modified | +29 −29 |
| src/include/bootstrap/bootstrap.h | modified | +1 −1 |
| src/include/catalog/heap.h | modified | +1 −1 |
| src/include/catalog/index.h | modified | +14 −14 |
| src/include/catalog/namespace.h | modified | +5 −5 |
| src/include/commands/defrem.h | modified | +4 −4 |
Discussion
- some code cleanup in index.c and indexcmds.c 1 message · 2023-08-16