Skip to content

Commit c5111ea

Browse files
committed
Remove no-longer-needed phony typedefs in genbki.h.
Now that we have a policy of hiding varlena catalog fields behind "#ifdef CATALOG_VARLEN", there is no need for their type names to be acceptable to the C compiler. And experimentation shows that it does not matter to pgindent either. (If it did, we'd have problems anyway, since these typedefs are unreferenced so far as the C compiler is concerned, and find_typedef fails to identify such typedefs.) Hence, remove the phony typedefs that genbki.h provided to make some varlena field definitions compilable. In passing, rearrange #define's into what seemed a more logical order.
1 parent f9e0255 commit c5111ea

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/include/catalog/genbki.h

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
/* Introduces a catalog's structure definition */
2323
#define CATALOG(name,oid) typedef struct CppConcat(FormData_,name)
2424

25+
/* Options that may appear after CATALOG (on the same line) */
26+
#define BKI_BOOTSTRAP
27+
#define BKI_SHARED_RELATION
28+
#define BKI_WITHOUT_OIDS
29+
#define BKI_ROWTYPE_OID(oid)
30+
#define BKI_SCHEMA_MACRO
31+
2532
/*
2633
* This is never defined; it's here only for documentation.
2734
*
@@ -32,21 +39,10 @@
3239
*/
3340
#undef CATALOG_VARLEN
3441

35-
/* Options that may appear after CATALOG (on the same line) */
36-
#define BKI_BOOTSTRAP
37-
#define BKI_SHARED_RELATION
38-
#define BKI_WITHOUT_OIDS
39-
#define BKI_ROWTYPE_OID(oid)
40-
#define BKI_SCHEMA_MACRO
41-
4242
/* Declarations that provide the initial content of a catalog */
4343
/* In C, these need to expand into some harmless, repeatable declaration */
4444
#define DATA(x) extern int no_such_variable
4545
#define DESCR(x) extern int no_such_variable
4646
#define SHDESCR(x) extern int no_such_variable
4747

48-
/* PHONY type definitions for use in catalog structure definitions only */
49-
typedef int aclitem;
50-
typedef int pg_node_tree;
51-
5248
#endif /* GENBKI_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy