]> granicus.if.org Git - postgresql/commitdiff
Remove no-longer-needed phony typedefs in genbki.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Nov 2014 18:16:14 +0000 (13:16 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 20 Nov 2014 18:16:14 +0000 (13:16 -0500)
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.

src/include/catalog/genbki.h

index cb40c07063b4850f2c1fe923f7fc40c6e1a58d54..709fd691deeb4daeacef759ffe1c2f053d276061 100644 (file)
 /* Introduces a catalog's structure definition */
 #define CATALOG(name,oid)      typedef struct CppConcat(FormData_,name)
 
+/* Options that may appear after CATALOG (on the same line) */
+#define BKI_BOOTSTRAP
+#define BKI_SHARED_RELATION
+#define BKI_WITHOUT_OIDS
+#define BKI_ROWTYPE_OID(oid)
+#define BKI_SCHEMA_MACRO
+
 /*
  * This is never defined; it's here only for documentation.
  *
  */
 #undef CATALOG_VARLEN
 
-/* Options that may appear after CATALOG (on the same line) */
-#define BKI_BOOTSTRAP
-#define BKI_SHARED_RELATION
-#define BKI_WITHOUT_OIDS
-#define BKI_ROWTYPE_OID(oid)
-#define BKI_SCHEMA_MACRO
-
 /* Declarations that provide the initial content of a catalog */
 /* In C, these need to expand into some harmless, repeatable declaration */
 #define DATA(x)   extern int no_such_variable
 #define DESCR(x)  extern int no_such_variable
 #define SHDESCR(x) extern int no_such_variable
 
-/* PHONY type definitions for use in catalog structure definitions only */
-typedef int aclitem;
-typedef int pg_node_tree;
-
 #endif   /* GENBKI_H */