shiyilei / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Enum code generation #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
My proto file has an enum followed by a message which has a field with that
enum. The generated code will not compile.

What is the expected output? What do you see instead?
The generate .h file has the enum defined in the 'descriptors' section of
the .h file.
Compiles fail if the enum is used in e.g. the messages section (enum-typed
field in a message) bcz the descriptors section appears only afterwards.

What version of the product are you using? On what operating system?
-0.0

Please provide any additional information below.

Original issue reported on code.google.com by guy.la...@gmail.com on 25 Aug 2008 at 11:58

GoogleCodeExporter commented 8 years ago
could you test on 0.2?  i have test code that seems to work; perhaps it was 
broken in
0.0 and i don't remember the bug fix.

Original comment by lahike...@gmail.com on 27 Aug 2008 at 12:35

GoogleCodeExporter commented 8 years ago
Looks fine on 0.3.

Original comment by guy.la...@gmail.com on 28 Aug 2008 at 1:50

GoogleCodeExporter commented 8 years ago
sounds like it's fixed.

Original comment by lahike...@gmail.com on 28 Aug 2008 at 10:26