aboutsummaryrefslogtreecommitdiffstats
path: root/generator/nanopb_generator.py
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-13 11:30:58 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-13 11:30:58 +0300
commit9ada7e752516260054525fca8e1f67efa321f682 (patch)
treef8d07430fc9c7585c4251823a2e46ab21bb53483 /generator/nanopb_generator.py
parent840e213b9fa244bce4c67789971c02ce16e66295 (diff)
Fine-tune the naming of new macros before merging into master.
Requires re-generation of files generated with dev_get_rid_of_ternary_operator.
Diffstat (limited to 'generator/nanopb_generator.py')
-rwxr-xr-xgenerator/nanopb_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py
index e463b6ca..2e30b676 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -250,10 +250,10 @@ class Field:
result += '%-8s, ' % self.pbtype
result += '%s, ' % self.rules
result += '%s, ' % self.allocation
+ result += '%s, ' % ("FIRST" if not prev_field_name else "OTHER")
result += '%s, ' % self.struct_name
result += '%s, ' % self.name
result += '%s, ' % (prev_field_name or self.name)
- result += '%s, ' % ("first" if not prev_field_name else "other")
if self.pbtype == 'MESSAGE':
result += '&%s_fields)' % self.submsgname