Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Strohminger <joshstrohminger@users.noreply.github.com>2023-08-17 01:49:40 +0300
committerPetteri Aimonen <jpa@github.mail.kapsi.fi>2023-08-17 14:14:39 +0300
commitd9ecc77395f09cd8cafd8b63cb82a27e6b02c04a (patch)
treec13727942ef31bfaeef28b35d83920831cbf5da5
parente643c4fcce22eb0e85661110af56effdace36643 (diff)
Ensure the long enum names conform to the naming style when using short enum names
-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 4354086..cb73d1b 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -512,7 +512,7 @@ class Enum(ProtoElement):
# Define the long names always so that enum value references
# from other files work properly.
for i, x in enumerate(self.values):
- result += '#define %s %s\n' % (self.value_longnames[i], x[0])
+ result += '#define %s %s\n' % (Globals.naming_style.define_name(self.value_longnames[i]), Globals.naming_style.enum_entry(x[0]))
if self.options.enum_to_string:
result += 'const char *%s(%s v);\n' % (