aboutsummaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-08-28 21:23:28 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-08-28 21:23:28 +0300
commitdf7234fd8b8779c9973b19b5a8fb22ee2e903982 (patch)
treef1a67e4c255370c850227f9ea3a44154da72e996 /generator
parent9e866b485319e2ede206b4eafa0b6235be0c4a38 (diff)
Fix cyclic messages support in generator. Beginnings of test.
Update issue 130 Status: Started
Diffstat (limited to 'generator')
-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 79dd1989..56dfdb08 100755
--- a/generator/nanopb_generator.py
+++ b/generator/nanopb_generator.py
@@ -546,7 +546,7 @@ class Message:
def get_dependencies(self):
'''Get list of type names that this structure refers to.'''
- return [str(field.ctype) for field in self.fields]
+ return [str(field.ctype) for field in self.fields if field.allocation == 'STATIC']
def __str__(self):
result = 'typedef struct _%s {\n' % self.name