Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc5111ea

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 beacceptable to the C compiler. And experimentation shows that it doesnot matter to pgindent either. (If it did, we'd have problems anyway,since these typedefs are unreferenced so far as the C compiler isconcerned, and find_typedef fails to identify such typedefs.)Hence, remove the phony typedefs that genbki.h provided to makesome varlena field definitions compilable.In passing, rearrange #define's into what seemed a more logical order.
1 parentf9e0255 commitc5111ea

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
#defineCATALOG(name,oid)typedef struct CppConcat(FormData_,name)
2424

25+
/* Options that may appear after CATALOG (on the same line) */
26+
#defineBKI_BOOTSTRAP
27+
#defineBKI_SHARED_RELATION
28+
#defineBKI_WITHOUT_OIDS
29+
#defineBKI_ROWTYPE_OID(oid)
30+
#defineBKI_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-
#defineBKI_BOOTSTRAP
37-
#defineBKI_SHARED_RELATION
38-
#defineBKI_WITHOUT_OIDS
39-
#defineBKI_ROWTYPE_OID(oid)
40-
#defineBKI_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
#defineDATA(x) extern int no_such_variable
4545
#defineDESCR(x) extern int no_such_variable
4646
#defineSHDESCR(x) extern int no_such_variable
4747

48-
/* PHONY type definitions for use in catalog structure definitions only */
49-
typedefintaclitem;
50-
typedefintpg_node_tree;
51-
5248
#endif/* GENBKI_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp