1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-31 17:02:12 +03:00

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.
This commit is contained in:
Tom Lane
2016-08-19 13:31:10 -04:00
parent 6eefd2422e
commit a859e64003
6 changed files with 21 additions and 22 deletions

View File

@@ -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;