Add --blacklist, to blacklist constants; defauls to NAK,JSON_*

Closes #30, but not the general problem of control characters in the source.
This commit is contained in:
Sei Lisa 2024-05-28 13:24:42 +02:00
parent 5841c2c17a
commit d03de9a6be
3 changed files with 54 additions and 13 deletions

View file

@ -89,6 +89,8 @@ class renamer(object):
functions.append(name)
elif kind == 'v':
globalvars.append(name)
elif kind == 'c':
pass
else:
assert False, 'Invalid kind at this scope: ' \
+ kind # pragma: no cover