aakash-sahai / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Header files declare all structs anonymously #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Header files generated by nanopb declare all structs as types, e.g. "typedef 
struct {} foo;". This makes forward declaration of them hard to impossible, and 
a struct name would be desirable. Example: "typedef struct foo_s {} foo;"

Original issue reported on code.google.com by steve.wo...@gmail.com on 29 Oct 2012 at 2:29

GoogleCodeExporter commented 9 years ago
True, and this is an easy thing to fix.

Original comment by Petteri.Aimonen on 29 Oct 2012 at 2:50

GoogleCodeExporter commented 9 years ago
This issue was updated by revision c3fa36265348.

Original comment by Petteri.Aimonen on 29 Oct 2012 at 2:57

GoogleCodeExporter commented 9 years ago
I used the pattern `typedef struct _MyMessage { ... } MyMessage;` because that 
is already used for e.g. pb_istream_t.

Original comment by Petteri.Aimonen on 29 Oct 2012 at 2:58

GoogleCodeExporter commented 9 years ago
Fixed in nanopb-0.1.7

Original comment by Petteri.Aimonen on 12 Nov 2012 at 7:33