Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2016-07-23 | Include package name in include guard (issue #207). | Petteri Aimonen | 1 | -1/+4 | |
Fix suggested by Ulenspiegel. Also added testcase for the same. | |||||
2016-06-19 | Setting version to 0.3.7-dev | Petteri Aimonen | 1 | -1/+1 | |
2016-06-19 | Publishing nanopb-0.3.6 | Petteri Aimonen | 1 | -1/+1 | |
2016-05-25 | Fix error in STATIC_ASSERT with multiple files (issue #203) | Petteri Aimonen | 1 | -1/+1 | |
The FieldMaxSize class was reusing the same list instance, causing problems when multiple files were specified on the protoc command line. | |||||
2016-03-04 | Provide comments about uncalculable message sizes (issue #195) | Petteri Aimonen | 1 | -1/+3 | |
2016-02-20 | Merge pull request #194 from isotes/master | Petteri Aimonen | 1 | -0/+4 | |
Generate MIN/MAX/ARRAYSIZE for enums | |||||
2016-02-19 | Generate MIN/MAX/ARRAYSIZE for enums | isotes | 1 | -0/+4 | |
This generates #defines mirroring the following values from the generated C++ code of GPB * const Foo Foo_MIN: the smallest valid value of the enum (VALUE_A in the example). * const Foo Foo_MAX: the largest valid value of the enum (VALUE_C in the example). * const Foo Foo_ARRAYSIZE: always defined as Foo_MAX + 1. | |||||
2016-02-19 | Add -D option to specify output directory | Kenshi Kawaguchi | 1 | -7/+21 | |
2016-02-13 | Setting version to 0.3.6-dev | Petteri Aimonen | 1 | -1/+1 | |
2016-02-13 | Publishing nanopb-0.3.5 | Petteri Aimonen | 1 | -1/+1 | |
2016-02-06 | Add code generator insertion points to files (#178). | Petteri Aimonen | 1 | -0/+6 | |
2016-01-27 | Fix a few remaining bugs related to CHAR_BIT!=8 platforms. | Petteri Aimonen | 1 | -1/+1 | |
2015-11-21 | Fix mistake in previous commit | Petteri Aimonen | 1 | -1/+2 | |
2015-11-20 | Fix generator crash with Enum inside Oneof (issue #188). | Petteri Aimonen | 1 | -6/+10 | |
Add testcase for the same. | |||||
2015-11-14 | Add testcase for anonymous unions + few fixes. | Petteri Aimonen | 1 | -5/+11 | |
Fixes compilation error with anonymous unions when it is not the last field in message. Also fixes extraneous newlines in header file. Cleanup the pb.h extraneous use of ##. | |||||
2015-11-10 | Add option to allow for anonymous unions | Benjamin Kamath | 2 | -3/+19 | |
2015-10-07 | generator: Remove trailing whitespace | Kyle Manna | 1 | -137/+137 | |
* Remove trailing whitespace * No functional changes | |||||
2015-10-05 | Fix regression in generating message size defines (issue #172). | Petteri Aimonen | 1 | -9/+9 | |
This bug was triggered when: 1. A .proto file included another .proto from a different directory. 2. The another .proto has an associated .options file. Added regression test for the same. | |||||
2015-09-26 | Clean up the python2/python3 string type handling | Petteri Aimonen | 1 | -10/+9 | |
2015-09-26 | Merge pull request #169 from kylemanna/python3 | Petteri Aimonen | 2 | -39/+65 | |
Add proper Python3 support to the generator | |||||
2015-09-26 | Setting version to 0.3.5-dev | Petteri Aimonen | 1 | -1/+1 | |
2015-09-26 | Publishing nanopb-0.3.4 | Petteri Aimonen | 1 | -1/+1 | |
2015-09-21 | generator: Use search $PATH for python | Kyle Manna | 1 | -1/+1 | |
* Search $PATH for the python binary so that this works better with things like virtualenv as used on Travis CI | |||||
2015-09-20 | generator: Fix strange unicode/str issue in python2 | Kyle Manna | 1 | -1/+8 | |
* Work around this by checking the appropriate class for the given * environment. | |||||
2015-09-20 | generator: Attempt to simplify the str/unicode madness | Kyle Manna | 1 | -0/+2 | |
* This is a shot in the dark. | |||||
2015-09-20 | generator: Strings are utf-8 by default in python3 | Kyle Manna | 1 | -4/+2 | |
* Not sure how to handle this case in python2, seems to work * Python 3 doesn't need this since all strings are utf-8 | |||||
2015-09-20 | generator: Remove cmp() to work with Python3 | Kyle Manna | 1 | -5/+2 | |
* Python3 ignores cmp() and __cmp__() and only needs __lt__() for sorting. Delete and update as appropriate. * Ref: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons | |||||
2015-09-20 | generator: More exhaustive field size checking | Kyle Manna | 1 | -15/+36 | |
Create a FieldMaxSize class that: * Accumlates all C assertions * Handles the checking of the longest simple field * Also python3 doesn't support max(None) | |||||
2015-09-20 | generator: Use python2/3 binary read/write method | Kyle Manna | 1 | -3/+4 | |
* This works with python2 and python3 | |||||
2015-09-20 | generator: Run python's 2to3 converter | Kyle Manna | 1 | -10/+11 | |
* Invoked with `2to3 -w nanopb_generator.py` * No other changes. | |||||
2015-09-20 | generator: Don't force python2 | Kyle Manna | 1 | -2/+1 | |
Python2 is being phased out of the default python interpreter. Arch Linux has moved some time ago and upcoming Debian realeases will follow. My distro, Arch, doesn't have a python2-protobuf version, but does have a python3 version. With a python 2 & 3 compatible generator the exact interpreter can be ignored and can use the system default as most users expect. Update issue #155 | |||||
2015-09-13 | Fix maximum encoded size for negative enums (issue #166). | Petteri Aimonen | 1 | -1/+15 | |
2015-09-12 | Make the generator understand included files (issue #165). | Petteri Aimonen | 1 | -29/+59 | |
This will allow message sizes and enum options to be available across the include files. Currently searching for .options files for included files may not work for all path combinations, this is related to issue #116. Should probably make a pull request to protoc about that. | |||||
2015-09-12 | Refactor the generator logic into a ProtoFile class. | Petteri Aimonen | 1 | -285/+297 | |
In preparation for multi-file support in generator. No functional changes yet. | |||||
2015-09-12 | Fix handling of unsigned 8- or 16-bit enums. | Petteri Aimonen | 1 | -1/+16 | |
Previously unsigned enums would throw errors on decoding if the value went outside the signed range (issue #164). Currently only helps for enums defined within the same file, but solving issue #165 will make it work for multiple files also. | |||||
2015-09-12 | Add packed_enum option to generator. | Petteri Aimonen | 2 | -1/+10 | |
This can be generally useful for saving RAM, but also makes it easier to test for issue #164. | |||||
2015-04-28 | Fix for previous (issue #155) | Petteri Aimonen | 1 | -1/+1 | |
2015-04-28 | Prefer python2 in generator/protoc-gen-nanopb. | Petteri Aimonen | 1 | -0/+1 | |
Update issue 155 Status: FixedInGit | |||||
2015-04-10 | Setting version to 0.3.4-dev | Petteri Aimonen | 1 | -1/+1 | |
2015-04-10 | Publishing nanopb-0.3.3 | Petteri Aimonen | 1 | -1/+1 | |
2015-04-08 | Fix problem with plugin options on Python 2.7.2 and older. | Petteri Aimonen | 1 | -1/+8 | |
Update issue 153 Status: FixedInGit | |||||
2015-04-03 | Improve comment support in .options files. | Petteri Aimonen | 1 | -2/+7 | |
Update issue 145 Status: FixedInGit | |||||
2015-04-03 | Always define enum long names so that cross-file references work. | Petteri Aimonen | 1 | -0/+7 | |
Update issue 118 Status: FixedInGit | |||||
2015-04-03 | Generate #defines for plain message ids | Petteri Aimonen | 1 | -3/+7 | |
2015-03-22 | Use make_identifier() to create the name for FOO_MESSAGES define. | Petteri Aimonen | 1 | -3/+4 | |
This handles special charaters like in "my-file.proto" properly. Also use headerbasename instead of full path, so that compiling files with relative path doesn't create symbols like FOO/BAR/BAZ_MESSAGES. | |||||
2015-03-22 | nanopb_generator.py: emit macros for msgid message type id use | Michael Haberler | 1 | -4/+30 | |
2015-03-22 | nanopb.proto: add msgid message-level option | Michael Haberler | 1 | -0/+3 | |
2015-02-26 | Better error messages for syntax errors in .options file | Petteri Aimonen | 1 | -2/+16 | |
2015-02-26 | Fix generator error when long_names:false is combined with Oneofs. | Petteri Aimonen | 1 | -0/+3 | |
Update issue 147 Status: FixedInGit | |||||
2015-01-27 | Fix generator bug when oneof is first field in a message. | Petteri Aimonen | 1 | -1/+0 | |
Added test case for the same. Update issue 142 Status: FixedInGit |