File tree Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Expand file tree Collapse file tree 4 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1515#include < unistd.h>
1616
1717#include " common/file_utils.h"
18+ #include " guc_internal.h"
1819#include " mb/pg_wchar.h"
1920#include " miscadmin.h"
2021#include " storage/fd.h"
21- #include " utils/guc.h"
2222
2323
2424/*
Original file line number Diff line number Diff line change 5757#include "commands/variable.h"
5858#include "common/string.h"
5959#include "funcapi.h"
60+ #include "guc_internal.h"
6061#include "jit/jit.h"
6162#include "libpq/auth.h"
6263#include "libpq/libpq.h"
Original file line number Diff line number Diff line change 1+ /*--------------------------------------------------------------------
2+ * guc_internals.h
3+ *
4+ * Declarations shared between backend/utils/misc/guc.c and
5+ * backend/utils/misc/guc-file.l
6+ *
7+ * Copyright (c) 2000-2022, PostgreSQL Global Development Group
8+ *
9+ * src/include/utils/guc_internals.h
10+ *--------------------------------------------------------------------
11+ */
12+ #ifndef GUC_INTERNALS_H
13+ #define GUC_INTERNALS_H
14+
15+ #include "utils/guc.h"
16+
17+ extern int guc_name_compare (const char * namea , const char * nameb );
18+ extern ConfigVariable * ProcessConfigFileInternal (GucContext context ,
19+ bool applySettings , int elevel );
20+ extern void record_config_file_error (const char * errmsg ,
21+ const char * config_file ,
22+ int lineno ,
23+ ConfigVariable * * head_p ,
24+ ConfigVariable * * tail_p );
25+
26+ #endif /* GUC_INTERNALS_H */
Original file line number Diff line number Diff line change @@ -442,16 +442,6 @@ extern void GUC_check_errcode(int sqlerrcode);
442442 pre_format_elog_string(errno, TEXTDOMAIN), \
443443 GUC_check_errhint_string = format_elog_string
444444
445- /* functions shared between guc.c and guc-file.l */
446- extern int guc_name_compare (const char * namea , const char * nameb );
447- extern ConfigVariable * ProcessConfigFileInternal (GucContext context ,
448- bool applySettings , int elevel );
449- extern void record_config_file_error (const char * errmsg ,
450- const char * config_file ,
451- int lineno ,
452- ConfigVariable * * head_p ,
453- ConfigVariable * * tail_p );
454-
455445/*
456446 * The following functions are not in guc.c, but are declared here to avoid
457447 * having to include guc.h in some widely used headers that it really doesn't
You can’t perform that action at this time.
0 commit comments