Skip to content

Commit cb8ff7e

Browse files
Consistently use named parameters in regex code consistently.
Adjust a handful of remaining function prototypes that were overlooked by recent commit bc2187e. This oversight wasn't caught by clang-tidy because the functions in question are only built in custom REG_DEBUG builds. Author: Peter Geoghegan <pg@bowt.ie> Reported-By: Tom Lane <tgl@sss.pgh.pa.us>
1 parent 70df2df commit cb8ff7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/regex/regcomp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ static void freecnfa(struct cnfa *cnfa);
234234
static void dumpnfa(struct nfa *nfa, FILE *f);
235235

236236
#ifdef REG_DEBUG
237-
static void dumpstate(struct state *, FILE *);
238-
static void dumparcs(struct state *, FILE *);
239-
static void dumparc(struct arc *, struct state *, FILE *);
240-
static void dumpcnfa(struct cnfa *, FILE *);
241-
static void dumpcstate(int, struct cnfa *, FILE *);
237+
static void dumpstate(struct state *s, FILE *f);
238+
static void dumparcs(struct state *s, FILE *f);
239+
static void dumparc(struct arc *a, struct state *s, FILE *f);
240+
static void dumpcnfa(struct cnfa *cnfa, FILE *f);
241+
static void dumpcstate(int st, struct cnfa *cnfa, FILE *f);
242242
#endif
243243
/* === regc_cvec.c === */
244244
static struct cvec *newcvec(int nchrs, int nranges);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy