Remove pgrminclude annotations
Per git log, the last time someone tried to do something with pgrminclude was around 2011. Many (not all) of the "pgrminclude ignore" annotations are of a newer date but seem to have just been copied around during refactorings and file moves and don't seem to reflect an actual need anymore. There have been some parallel experiments with include-what-you-use (IWYU) annotations, but these don't seem to correspond very strongly to pgrminclude annotations, so there is no value in keeping the existing ones even for that kind of thing. So, wipe them all away. We can always add new ones in the future based on actual needs. Discussion: https://www.postgresql.org/message-id/flat/2d4dc7b2-cb2e-49b1-b8ca-ba5f7024f05b%40eisentraut.org
This commit is contained in:
parent
6f3820f37a
commit
1eb7cb21c2
@ -33,7 +33,7 @@
|
|||||||
#include "postmaster/autovacuum.h"
|
#include "postmaster/autovacuum.h"
|
||||||
#include "storage/bufmgr.h"
|
#include "storage/bufmgr.h"
|
||||||
#include "storage/freespace.h"
|
#include "storage/freespace.h"
|
||||||
#include "tcop/tcopprot.h" /* pgrminclude ignore */
|
#include "tcop/tcopprot.h"
|
||||||
#include "utils/acl.h"
|
#include "utils/acl.h"
|
||||||
#include "utils/datum.h"
|
#include "utils/datum.h"
|
||||||
#include "utils/fmgrprotos.h"
|
#include "utils/fmgrprotos.h"
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "storage/bulk_write.h"
|
#include "storage/bulk_write.h"
|
||||||
#include "tcop/tcopprot.h" /* pgrminclude ignore */
|
#include "tcop/tcopprot.h"
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/sortsupport.h"
|
#include "utils/sortsupport.h"
|
||||||
#include "utils/tuplesort.h"
|
#include "utils/tuplesort.h"
|
||||||
|
@ -46,7 +46,7 @@ static const struct rerr
|
|||||||
|
|
||||||
{
|
{
|
||||||
/* the actual table is built from regex.h */
|
/* the actual table is built from regex.h */
|
||||||
#include "regex/regerrs.h" /* pgrminclude ignore */
|
#include "regex/regerrs.h"
|
||||||
{
|
{
|
||||||
-1, "", "oops"
|
-1, "", "oops"
|
||||||
}, /* explanation special-cased in code */
|
}, /* explanation special-cased in code */
|
||||||
|
@ -29,8 +29,7 @@ static const char rcsid[] = "Id: inet_net_pton.c,v 1.4.2.3 2004/03/17 00:40:11 m
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "utils/builtins.h" /* pgrminclude ignore */ /* needed on some
|
#include "utils/builtins.h" /* needed on some platforms */
|
||||||
* platforms */
|
|
||||||
#include "utils/inet.h"
|
#include "utils/inet.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,9 +66,9 @@
|
|||||||
|
|
||||||
#include "access/xlog_internal.h"
|
#include "access/xlog_internal.h"
|
||||||
#include "catalog/pg_authid_d.h"
|
#include "catalog/pg_authid_d.h"
|
||||||
#include "catalog/pg_class_d.h" /* pgrminclude ignore */
|
#include "catalog/pg_class_d.h"
|
||||||
#include "catalog/pg_collation_d.h"
|
#include "catalog/pg_collation_d.h"
|
||||||
#include "catalog/pg_database_d.h" /* pgrminclude ignore */
|
#include "catalog/pg_database_d.h"
|
||||||
#include "common/file_perm.h"
|
#include "common/file_perm.h"
|
||||||
#include "common/file_utils.h"
|
#include "common/file_utils.h"
|
||||||
#include "common/logging.h"
|
#include "common/logging.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "fe_utils/query_utils.h"
|
#include "fe_utils/query_utils.h"
|
||||||
#include "fe_utils/simple_list.h"
|
#include "fe_utils/simple_list.h"
|
||||||
#include "fe_utils/string_utils.h"
|
#include "fe_utils/string_utils.h"
|
||||||
#include "getopt_long.h" /* pgrminclude ignore */
|
#include "getopt_long.h"
|
||||||
#include "pgtime.h"
|
#include "pgtime.h"
|
||||||
#include "storage/block.h"
|
#include "storage/block.h"
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
#include "common/username.h"
|
#include "common/username.h"
|
||||||
#include "fe_utils/connect_utils.h"
|
#include "fe_utils/connect_utils.h"
|
||||||
#include "getopt_long.h" /* pgrminclude ignore */
|
#include "getopt_long.h"
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
#include "pqexpbuffer.h" /* pgrminclude ignore */
|
#include "pqexpbuffer.h"
|
||||||
|
|
||||||
extern void splitTableColumnsSpec(const char *spec, int encoding,
|
extern void splitTableColumnsSpec(const char *spec, int encoding,
|
||||||
char **table, const char **columns);
|
char **table, const char **columns);
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "libpq/pqcomm.h" /* pgrminclude ignore */
|
#include "libpq/pqcomm.h"
|
||||||
|
|
||||||
|
|
||||||
extern int pg_getaddrinfo_all(const char *hostname, const char *servname,
|
extern int pg_getaddrinfo_all(const char *hostname, const char *servname,
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
#define RELPATH_H
|
#define RELPATH_H
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 'pgrminclude ignore' needed here because CppAsString2() does not throw
|
* Required here; note that CppAsString2() does not throw an error if the
|
||||||
* an error if the symbol is not defined.
|
* symbol is not defined.
|
||||||
*/
|
*/
|
||||||
#include "catalog/catversion.h" /* pgrminclude ignore */
|
#include "catalog/catversion.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RelFileNumber data type identifies the specific relation file name.
|
* RelFileNumber data type identifies the specific relation file name.
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#ifndef HBA_H
|
#ifndef HBA_H
|
||||||
#define HBA_H
|
#define HBA_H
|
||||||
|
|
||||||
#include "libpq/pqcomm.h" /* pgrminclude ignore */ /* needed for NetBSD */
|
#include "libpq/pqcomm.h" /* needed for NetBSD */
|
||||||
#include "nodes/pg_list.h"
|
#include "nodes/pg_list.h"
|
||||||
#include "regex/regex.h"
|
#include "regex/regex.h"
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#ifndef IFADDR_H
|
#ifndef IFADDR_H
|
||||||
#define IFADDR_H
|
#define IFADDR_H
|
||||||
|
|
||||||
#include "libpq/pqcomm.h" /* pgrminclude ignore */
|
#include "libpq/pqcomm.h"
|
||||||
|
|
||||||
typedef void (*PgIfAddrCallback) (struct sockaddr *addr,
|
typedef void (*PgIfAddrCallback) (struct sockaddr *addr,
|
||||||
struct sockaddr *netmask,
|
struct sockaddr *netmask,
|
||||||
|
@ -12,6 +12,6 @@
|
|||||||
#ifndef PG_TRACE_H
|
#ifndef PG_TRACE_H
|
||||||
#define PG_TRACE_H
|
#define PG_TRACE_H
|
||||||
|
|
||||||
#include "utils/probes.h" /* pgrminclude ignore */
|
#include "utils/probes.h"
|
||||||
|
|
||||||
#endif /* PG_TRACE_H */
|
#endif /* PG_TRACE_H */
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Now we can include the original Snowball header.h */
|
/* Now we can include the original Snowball header.h */
|
||||||
#include "snowball/libstemmer/header.h" /* pgrminclude ignore */
|
#include "snowball/libstemmer/header.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Redefine standard memory allocation interface to pgsql's one.
|
* Redefine standard memory allocation interface to pgsql's one.
|
||||||
|
@ -79,7 +79,7 @@ typedef struct
|
|||||||
} ExceptionLabelMap;
|
} ExceptionLabelMap;
|
||||||
|
|
||||||
static const ExceptionLabelMap exception_label_map[] = {
|
static const ExceptionLabelMap exception_label_map[] = {
|
||||||
#include "plerrcodes.h" /* pgrminclude ignore */
|
#include "plerrcodes.h"
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ typedef struct
|
|||||||
} TclExceptionNameMap;
|
} TclExceptionNameMap;
|
||||||
|
|
||||||
static const TclExceptionNameMap exception_name_map[] = {
|
static const TclExceptionNameMap exception_name_map[] = {
|
||||||
#include "pltclerrcodes.h" /* pgrminclude ignore */
|
#include "pltclerrcodes.h"
|
||||||
{NULL, 0}
|
{NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user