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

Commitaab0644

Browse files
Harmonize lexer adjacent function parameter names.
Make sure that function declarations use names that exactly match thecorresponding names from function definitions for several "lexeradjacent" backend functions.These functions were missed by recent commits because they were obscuredby clang-tidy warnings about functions whose signature is directly underthe control of the lexer (flex seems to always generate functiondeclarations with unnamed parameters). We probably can't fix most ofthe warnings it generates for translation units that get built from .land .y files, but we can at least do this much.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
1 parente59a67f commitaab0644

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/bin/pgbench/exprparse.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
PgBenchExpr *expr_parse_result;
2525

26-
static PgBenchExprList *make_elist(PgBenchExpr *exp, PgBenchExprList *list);
26+
static PgBenchExprList *make_elist(PgBenchExpr *expr, PgBenchExprList *list);
2727
static PgBenchExpr *make_null_constant(void);
2828
static PgBenchExpr *make_boolean_constant(bool bval);
2929
static PgBenchExpr *make_integer_constant(int64 ival);

‎src/include/replication/syncrep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extern void SyncRepUpdateSyncStandbysDefined(void);
103103
externintsyncrep_yyparse(void);
104104
externintsyncrep_yylex(void);
105105
externvoidsyncrep_yyerror(constchar*str);
106-
externvoidsyncrep_scanner_init(constchar*query_string);
106+
externvoidsyncrep_scanner_init(constchar*str);
107107
externvoidsyncrep_scanner_finish(void);
108108

109109
#endif/* _SYNCREP_H */

‎src/include/replication/walsender_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ extern void WalSndSetState(WalSndState state);
119119
externintreplication_yyparse(void);
120120
externintreplication_yylex(void);
121121
externvoidreplication_yyerror(constchar*str)pg_attribute_noreturn();
122-
externvoidreplication_scanner_init(constchar*query_string);
122+
externvoidreplication_scanner_init(constchar*str);
123123
externvoidreplication_scanner_finish(void);
124124
externboolreplication_scanner_is_replication_command(void);
125125

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp