diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-28 21:23:28 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-28 21:23:28 +0300 |
commit | df7234fd8b8779c9973b19b5a8fb22ee2e903982 (patch) | |
tree | f1a67e4c255370c850227f9ea3a44154da72e996 /generator | |
parent | 9e866b485319e2ede206b4eafa0b6235be0c4a38 (diff) |
Fix cyclic messages support in generator. Beginnings of test.
Update issue 130
Status: Started
Diffstat (limited to 'generator')
-rwxr-xr-x | generator/nanopb_generator.py | 2 |
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 |