diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-08-22 13:26:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-08-22 13:26:30 -0400 |
commit | 8f5c15d4dc6a6f592a09e1d5ed80516d5deb8100 (patch) | |
tree | 31babe5f1e7772bbc5bdeafe95f4a240a1c41600 /scripts | |
parent | caeb610bb911291f8ca28129b6f5ed1b494f0fec (diff) | |
download | kutter-8f5c15d4dc6a6f592a09e1d5ed80516d5deb8100.tar.gz kutter-8f5c15d4dc6a6f592a09e1d5ed80516d5deb8100.tar.xz kutter-8f5c15d4dc6a6f592a09e1d5ed80516d5deb8100.zip |
buildcommands: Match DECL_X names to the actual C macro names
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/buildcommands.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py index ef438e0f..eaa6d585 100644 --- a/scripts/buildcommands.py +++ b/scripts/buildcommands.py @@ -73,8 +73,8 @@ class HandleEnumerations: self.enumerations = {} self.ctr_dispatch = { '_DECL_STATIC_STR': self.decl_static_str, - '_DECL_ENUMERATION': self.decl_enumeration, - '_DECL_ENUMERATION_RANGE': self.decl_enumeration_range + 'DECL_ENUMERATION': self.decl_enumeration, + 'DECL_ENUMERATION_RANGE': self.decl_enumeration_range } def add_enumeration(self, enum, name, value): enums = self.enumerations.setdefault(enum, {}) @@ -124,8 +124,8 @@ class HandleConstants: def __init__(self): self.constants = {} self.ctr_dispatch = { - '_DECL_CONSTANT': self.decl_constant, - '_DECL_CONSTANT_STR': self.decl_constant_str, + 'DECL_CONSTANT': self.decl_constant, + 'DECL_CONSTANT_STR': self.decl_constant_str, } def set_value(self, name, value): if name in self.constants and self.constants[name] != value: @@ -253,7 +253,7 @@ class HandleCommandGeneration: self.messages_by_name = { m.split()[0]: m for m in self.msg_to_id } self.all_param_types = {} self.ctr_dispatch = { - '_DECL_COMMAND': self.decl_command, + 'DECL_COMMAND_FLAGS': self.decl_command, '_DECL_ENCODER': self.decl_encoder, '_DECL_OUTPUT': self.decl_output } |