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/regc_nfa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/regex/regc_nfa.c') diff --git a/src/backend/regex/regc_nfa.c b/src/backend/regex/regc_nfa.c index cd9a3239bd3..90dca5d9dea 100644 --- a/src/backend/regex/regc_nfa.c +++ b/src/backend/regex/regc_nfa.c @@ -275,7 +275,7 @@ destroystate(struct nfa * nfa, static void newarc(struct nfa * nfa, int t, - pcolor co, + color co, struct state * from, struct state * to) { @@ -321,7 +321,7 @@ newarc(struct nfa * nfa, static void createarc(struct nfa * nfa, int t, - pcolor co, + color co, struct state * from, struct state * to) { @@ -334,7 +334,7 @@ createarc(struct nfa * nfa, assert(a != NULL); a->type = t; - a->co = (color) co; + a->co = co; a->to = to; a->from = from; @@ -553,7 +553,7 @@ hasnonemptyout(struct state * s) static struct arc * findarc(struct state * s, int type, - pcolor co) + color co) { struct arc *a; -- cgit v1.2.3