1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-06 07:49:08 +03:00

Move private declarations shared between guc.c and guc-file.l to new header

Further preparatory refactoring for compiling guc-file.c standalone.

Reviewed by Andres Freund
Discussion: https://www.postgresql.org/message-id/20220810171935.7k5zgnjwqzalzmtm%40awork3.anarazel.de
Discussion: https://www.postgresql.org/message-id/CAFBsxsF8Gc2StS3haXofshHCzqNMRXiSxvQEYGwnFsTmsdwNeg@mail.gmail.com
This commit is contained in:
John Naylor
2022-08-16 12:01:41 +07:00
parent 1b188ea792
commit 80e8450a74
4 changed files with 28 additions and 11 deletions

View File

@@ -0,0 +1,26 @@
/*--------------------------------------------------------------------
* guc_internals.h
*
* Declarations shared between backend/utils/misc/guc.c and
* backend/utils/misc/guc-file.l
*
* Copyright (c) 2000-2022, PostgreSQL Global Development Group
*
* src/include/utils/guc_internals.h
*--------------------------------------------------------------------
*/
#ifndef GUC_INTERNALS_H
#define GUC_INTERNALS_H
#include "utils/guc.h"
extern int guc_name_compare(const char *namea, const char *nameb);
extern ConfigVariable *ProcessConfigFileInternal(GucContext context,
bool applySettings, int elevel);
extern void record_config_file_error(const char *errmsg,
const char *config_file,
int lineno,
ConfigVariable **head_p,
ConfigVariable **tail_p);
#endif /* GUC_INTERNALS_H */