Consistently use named parameters in regex code consistently.
authorPeter Geoghegan <[email protected]>
Mon, 19 Sep 2022 22:47:04 +0000 (15:47 -0700)
committerPeter Geoghegan <[email protected]>
Mon, 19 Sep 2022 22:47:04 +0000 (15:47 -0700)
Adjust a handful of remaining function prototypes that were overlooked
by recent commit bc2187ed.  This oversight wasn't caught by clang-tidy
because the functions in question are only built in custom REG_DEBUG
builds.

Author: Peter Geoghegan <[email protected]>
Reported-By: Tom Lane <[email protected]>
src/backend/regex/regcomp.c

index e6ff3653a77f9762d394cfdd7ba1612178b3111b..bb8c240598968946b5d95f74c1d43cebd2aa3761 100644 (file)
@@ -234,11 +234,11 @@ static void freecnfa(struct cnfa *cnfa);
 static void dumpnfa(struct nfa *nfa, FILE *f);
 
 #ifdef REG_DEBUG
-static void dumpstate(struct state *, FILE *);
-static void dumparcs(struct state *, FILE *);
-static void dumparc(struct arc *, struct state *, FILE *);
-static void dumpcnfa(struct cnfa *, FILE *);
-static void dumpcstate(int, struct cnfa *, FILE *);
+static void dumpstate(struct state *s, FILE *f);
+static void dumparcs(struct state *s, FILE *f);
+static void dumparc(struct arc *a, struct state *s, FILE *f);
+static void dumpcnfa(struct cnfa *cnfa, FILE *f);
+static void dumpcstate(int st, struct cnfa *cnfa, FILE *f);
 #endif
 /* === regc_cvec.c === */
 static struct cvec *newcvec(int nchrs, int nranges);