]> git.draconx.ca Git - gob-dx.git/commit
Avoid using reserved identifiers.
authorNick Bowler <nbowler@draconx.ca>
Fri, 25 Feb 2022 04:17:57 +0000 (23:17 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 25 Feb 2022 04:41:26 +0000 (23:41 -0500)
commitbb6822c219eb531a497d0829626ac3b29af198fa
tree88b9b8cf3a470eee88291aa4fcf2f1ec4d5d20ea
parent86d4727e727a55648196205cff450c96569ec4a6
Avoid using reserved identifiers.

In C, all identifiers beginning with an underscore followed by either
another underscore or an uppercase letter are reserved for use by the
implementation in all contexts.

Let's avoid such identifiers in the program proper.  Since most problems
are declarations like 'typedef struct _Foo Foo;' we can just change this
without too much issue.

The generated code still does this sort of thing, but unfortunately
would be a more significant change as this behaviour is documented.
src/generate_treefuncs.pl
src/lexer.l
src/util.h