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

Commit5272d79

Browse files
committed
Remove GucContext parameter from ParseConfigFile
1 parent95dacf8 commit5272d79

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎src/backend/utils/misc/guc-file.l

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static unsigned int ConfigFileLineno;
5050
intGUC_yylex(void);
5151

5252
staticboolParseConfigFile(constchar *config_file,constchar *calling_file,
53-
int depth,GucContext context,int elevel,
53+
int depth,int elevel,
5454
structname_value_pair **head_p,
5555
structname_value_pair **tail_p);
5656
staticvoidfree_name_value_list(structname_value_pair * list);
@@ -140,9 +140,7 @@ ProcessConfigFile(GucContext context)
140140
/* Parse the file into a list of option names and values */
141141
head = tail = NULL;
142142
143-
if (!ParseConfigFile(ConfigFileName, NULL,
144-
0, context, elevel,
145-
&head, &tail))
143+
if (!ParseConfigFile(ConfigFileName, NULL, 0, elevel, &head, &tail))
146144
goto cleanup_list;
147145
148146
/*
@@ -368,7 +366,6 @@ ProcessConfigFile(GucContext context)
368366
*calling_file: absolute path of file containing the "include" directive,
369367
*or NULL at outer level (config_file must be absolute at outer level)
370368
*depth: recursion depth (used only to prevent infinite recursion)
371-
*context: GucContext passed to ProcessConfigFile()
372369
*elevel: error logging level determined by ProcessConfigFile()
373370
* Output parameters:
374371
*head_p, tail_p: head and tail of linked list of name/value pairs
@@ -389,7 +386,7 @@ ProcessConfigFile(GucContext context)
389386
*/
390387
staticbool
391388
ParseConfigFile(constchar *config_file,constchar *calling_file,
392-
int depth,GucContext context,int elevel,
389+
int depth,int elevel,
393390
structname_value_pair **head_p,
394391
structname_value_pair **tail_p)
395392
{
@@ -496,7 +493,7 @@ ParseConfigFile(const char *config_file, const char *calling_file,
496493
unsignedint save_ConfigFileLineno = ConfigFileLineno;
497494

498495
if (!ParseConfigFile(opt_value, config_file,
499-
depth +1,context,elevel,
496+
depth +1, elevel,
500497
head_p, tail_p))
501498
{
502499
pfree(opt_name);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp