Skip to content

*c: rename local variable 'true' to 'cond' throughout cgen.c/txt.c#129

Merged
staalmannen merged 2 commits into
mainfrom
claude/upgrade-ape-c-library-mmZGd
May 21, 2026
Merged

*c: rename local variable 'true' to 'cond' throughout cgen.c/txt.c#129
staalmannen merged 2 commits into
mainfrom
claude/upgrade-ape-c-library-mmZGd

Conversation

@staalmannen

Copy link
Copy Markdown
Owner

With _Bool support added to kencc, 'true' is now a keyword (C23 boolean constant, value 1). Using 'true' as a local variable or parameter name in cgen.c/txt.c/cgen64.c causes syntax errors when those files are compiled by the new DWARF-enabled 6c.

Affected files: 1c 2c 5c 6c 7c 8c 9c kc qc vc cgen.c,
5c 7c txt.c, 8c cgen64.c.

https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs

With _Bool support added to kencc, 'true' is now a keyword (C23 boolean
constant, value 1).  Using 'true' as a local variable or parameter name
in cgen.c/txt.c/cgen64.c causes syntax errors when those files are
compiled by the new DWARF-enabled 6c.

Affected files: 1c 2c 5c 6c 7c 8c 9c kc qc vc cgen.c,
                5c 7c txt.c, 8c cgen64.c.

https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request performs a widespread refactoring across multiple compiler backends, including 1c, 2c, 5c, 6c, 7c, 8c, 9c, kc, qc, and vc. The variable name "true" is renamed to "cond" within various code generation functions such as bcgen, boolgen, gopcode, and testv to improve code clarity and avoid naming conflicts. There are no review comments to evaluate, and I have no further feedback to provide.

@staalmannen staalmannen merged commit 157c218 into main May 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants