Skip to content

Commit

Permalink
FIX: avoid bool for function name for C23 (#134)
Browse files Browse the repository at this point in the history
C23 now regards `bool` as keyword, so avoid using
`bool` for function name.

Closes #133 .
  • Loading branch information
mtasaka authored Jan 27, 2025
1 parent 7fde895 commit 5bfb937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cql2ccl.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static void pr_term(const char **cpp, int stop_at_space,
*cpp = cp;
}

static int node(struct cql_node *cn,
static int node_st(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data)
{
Expand Down Expand Up @@ -159,7 +159,7 @@ static int node(struct cql_node *cn,
}


static int bool(struct cql_node *cn,
static int node_bool(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data)
{
Expand Down Expand Up @@ -237,9 +237,9 @@ static int cql_to_ccl_r(struct cql_node *cn,
switch (cn->which)
{
case CQL_NODE_ST:
return node(cn, pr, client_data);
return node_st(cn, pr, client_data);
case CQL_NODE_BOOL:
return bool(cn, pr, client_data);
return node_bool(cn, pr, client_data);
case CQL_NODE_SORT:
return cql_to_ccl_r(cn->u.sort.search, pr, client_data);
}
Expand Down

0 comments on commit 5bfb937

Please sign in to comment.