From a859e640035680db31531ccd19a67292dd726baf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 19 Aug 2016 13:31:10 -0400 Subject: Clean up another pre-ANSI-C-ism in regex code: get rid of pcolor typedef. pcolor was used to represent function arguments that are nominally of type color, but when using a pre-ANSI C compiler would be passed as the promoted integer type. We really don't need that anymore. --- src/backend/regex/rege_dfa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/regex/rege_dfa.c') diff --git a/src/backend/regex/rege_dfa.c b/src/backend/regex/rege_dfa.c index 7d90242acef..b98c9d39021 100644 --- a/src/backend/regex/rege_dfa.c +++ b/src/backend/regex/rege_dfa.c @@ -603,7 +603,7 @@ static struct sset * miss(struct vars * v, struct dfa * d, struct sset * css, - pcolor co, + color co, chr *cp, /* next chr */ chr *start) /* where the attempt got started */ { @@ -731,7 +731,7 @@ miss(struct vars * v, css->outs[co] = p; css->inchain[co] = p->ins; p->ins.ss = css; - p->ins.co = (color) co; + p->ins.co = co; } return p; } @@ -743,7 +743,7 @@ static int /* predicate: constraint satisfied? */ lacon(struct vars * v, struct cnfa * pcnfa, /* parent cnfa */ chr *cp, - pcolor co) /* "color" of the lookaround constraint */ + color co) /* "color" of the lookaround constraint */ { int n; struct subre *sub; -- cgit v1.2.3