Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: avoid bool for function name for C23 #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtasaka
Copy link
Contributor

@mtasaka mtasaka commented Jan 14, 2025

C23 now regards bool as keyword, so avoid using
bool for function name.

Closes #133 .

C23 now regards `bool` as keyword, so avoid using
`bool` for function name.

Closes indexdata#133 .
@@ -83,7 +83,7 @@ static void pr_term(const char **cpp, int stop_at_space,
*cpp = cp;
}

static int node(struct cql_node *cn,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you renamed this function as well as bool?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because if bool is renamed to node_bool (I think this name is not-bad choice), I think the original node function should be renamed similarly.
(New function have node_ prefix, so leaving original node function name is too confusing in my opinion.)

If you have better idea how to rename bool function, I can let you do so.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@@ -83,7 +83,7 @@ static void pr_term(const char **cpp, int stop_at_space,
*cpp = cp;
}

static int node(struct cql_node *cn,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

build failure on src/cql2ccl.c with C23 with bool usage
2 participants