Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-09-20 | generator: Fix strange unicode/str issue in python2 | 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 | 1 | -0/+2 | ||
* This is a shot in the dark. | |||||
2015-09-20 | generator: Strings are utf-8 by default in python3 | 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 | 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 | 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 | 1 | -3/+4 | ||
* This works with python2 and python3 | |||||
2015-09-20 | generator: Run python's 2to3 converter | 1 | -10/+11 | ||
* Invoked with `2to3 -w nanopb_generator.py` * No other changes. | |||||
2015-09-20 | generator: Don't force python2 | 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). | 1 | -1/+15 | ||
2015-09-12 | Make the generator understand included files (issue #165). | 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. | 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. | 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. | 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) | 1 | -1/+1 | ||
2015-04-28 | Prefer python2 in generator/protoc-gen-nanopb. | 1 | -0/+1 | ||
Update issue 155 Status: FixedInGit | |||||
2015-04-10 | Setting version to 0.3.4-dev | 1 | -1/+1 | ||
2015-04-10 | Publishing nanopb-0.3.3 | 1 | -1/+1 | ||
2015-04-08 | Fix problem with plugin options on Python 2.7.2 and older. | 1 | -1/+8 | ||
Update issue 153 Status: FixedInGit | |||||
2015-04-03 | Improve comment support in .options files. | 1 | -2/+7 | ||
Update issue 145 Status: FixedInGit | |||||
2015-04-03 | Always define enum long names so that cross-file references work. | 1 | -0/+7 | ||
Update issue 118 Status: FixedInGit | |||||
2015-04-03 | Generate #defines for plain message ids | 1 | -3/+7 | ||
2015-03-22 | Use make_identifier() to create the name for FOO_MESSAGES define. | 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 | 1 | -4/+30 | ||
2015-03-22 | nanopb.proto: add msgid message-level option | 1 | -0/+3 | ||
2015-02-26 | Better error messages for syntax errors in .options file | 1 | -2/+16 | ||
2015-02-26 | Fix generator error when long_names:false is combined with Oneofs. | 1 | -0/+3 | ||
Update issue 147 Status: FixedInGit | |||||
2015-01-27 | Fix generator bug when oneof is first field in a message. | 1 | -1/+0 | ||
Added test case for the same. Update issue 142 Status: FixedInGit | |||||
2015-01-24 | Setting version to nanopb-0.3.3-dev | 1 | -1/+1 | ||
2015-01-24 | Publishing nanopb-0.3.2 | 1 | -1/+1 | ||
2015-01-23 | Fix encoded_size #defines for oneof messages. | 1 | -1/+11 | ||
The sizes are represented as EncodedSize() instances, which cause max() operation to sort them by address instead of value. This caused pretty much random item to be selected for the maximum. Update issue 141 Status: FixedInGit | |||||
2015-01-11 | New generator options for oneofs: allow skipping or generating as normal ↵ | 2 | -10/+23 | ||
'optional' fields. The behaviour with no_unions:true is the same as of nanopb 0.3.1 and earlier. | |||||
2015-01-07 | Fix generator error with OneOfs | 1 | -2/+3 | ||
2015-01-05 | Allow using 8/16/32/64 as values in int_size setting | 1 | -4/+4 | ||
2015-01-04 | Fix build failure | 1 | -1/+1 | ||
2015-01-04 | Implement support for oneofs (C unions). | 1 | -72/+192 | ||
Basic test included, should probably add an oneof to the AllTypes test also. Update issue 131 Status: Started | |||||
2015-01-04 | Add int_size option for generator. | 2 | -15/+41 | ||
This allows overriding the integer field types to e.g. uint8_t for saving RAM. Update issue 139 Status: FixedInGit | |||||
2014-12-26 | Include the field type in a comment for extension fields | 1 | -1/+2 | ||
2014-12-22 | Verify build with protobuf-3.0.0, fix problems. | 3 | -26/+124 | ||
Also updated descriptor.proto from protobuf-3.0.0. | |||||
2014-09-16 | Set version to nanopb-0.3.2-dev | 1 | -1/+1 | ||
2014-09-11 | Publishing nanopb-0.3.1 | 1 | -1/+1 | ||
2014-09-07 | Fix compilation error with generated initializers for repeated pointer fields | 1 | -0/+2 | ||
2014-08-28 | Fix cyclic messages support in generator. Beginnings of test. | 1 | -1/+1 | ||
Update issue 130 Status: Started | |||||
2014-08-26 | Setting version to 0.3.1-dev | 1 | -1/+1 | ||
2014-08-26 | Publishing nanopb-0.3.0 | 1 | -1/+1 | ||
2014-08-19 | Add #if guard for .pb.h version. | 1 | -1/+11 | ||
The version in PB_PROTO_HEADER_VERSION can be bumped whenever there is a breaking change to the generated files, and it will then alert to the difference. Update issue 129 Status: FixedInGit | |||||
2014-08-18 | Rename poorly named identifier to avoid name conflicts. | 1 | -2/+2 | ||
Update issue 106 Status: FixedInGit | |||||
2014-08-18 | Rename UNUSED() and STATIC_ASSERT() macros with PB_ prefix. | 1 | -3/+3 | ||
This avoids possible namespace conflicts with other macros. | |||||
2014-08-18 | Change the _count fields to use pb_size_t datatype. | 1 | -6/+3 | ||
Update issue 82 Status: FixedInGit | |||||
2014-08-09 | Setting version to 0.3.0-dev | 1 | -1/+1 | ||
2014-08-09 | Publishing nanopb-0.2.9 | 1 | -1/+1 | ||