simonAndre / protobuf-embedded-c

Automatically exported from code.google.com/p/protobuf-embedded-c
0 stars 0 forks source link

Support import declarations #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Importing other proto-files with the keyword "import" should be possible.

This feature may require some changes to the compiler architecture:
  * import declarations are followed by a recursive dfs-style compiler
  * each proto-file's API is generated to a dedicated h- and c-file
  * global functions (e.g. read_raw_varint32) and data_type definitions (e.g. int64_t) are generated only once, that is a single h- and c-file, which is referenced by the generated h- and c-files for the proto-file APIs.

Original issue reported on code.google.com by wolfgang.schwitzer on 10 Jan 2012 at 2:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'd like to defer this at least to 1.0M5, because I want to see the new 
Xtend-based generator working with the "old" functionality without imports 
first.

If that works fine - we should add imports with 1:1 generated proto:c/h and 1 
globally generated "dictionary" c/h as specified in the original issue.

Original comment by wolfgang.schwitzer on 13 Mar 2013 at 12:01