History log of /seL4-test-master/tools/nanopb/generator/nanopb_generator.py
Revision Date Author Comments
# 7b555747 31-May-2019 Noah Pendleton <2538614+noahp@users.noreply.github.com>

🔀 use min/max enum value for min/max

Unsorted enums in message specifications do not result in correct
min/max values per the protobuf spec for cpp code:
https://developers.google.com/protocol-buffers/docs/reference/cpp-generated#enum

The google cpp compiler uses the min/max _value_ instead of the position
of the enum entry in the message spec, so this patch updates nanopb to
do the same.

Example input:

```protobuf
syntax = "proto3";

enum Language {
UNKNOWN = 0;
ENGLISH_EN_GB = 12;
ENGLISH_EN_US = 1;
FRENCH_FR_FR = 2;
ITALIAN_IT_IT = 3;
GERMAN_DE_DE = 4;
SPANISH_ES_AR = 13;
SPANISH_ES_ES = 5;
SPANISH_ES_MX = 14;
SWEDISH_SV_SE = 6;
DUTCH_NL_NL = 7;
KOREAN_KO_KR = 8;
JAPANESE_JA_JP = 9;
CHINESE_SIMPLIFIED_ZH_CN = 10;
CHINESE_TRADITIONAL_ZH_TW = 11;
}
```

This would previously result in:
```c
#define _Language_MIN Language_UNKNOWN
#define _Language_MAX Language_CHINESE_TRADITIONAL_ZH_TW
#define _Language_ARRAYSIZE ((Language)(Language_CHINESE_TRADITIONAL_ZH_TW+1))
```

After this patch,
```c
#define _Language_MIN Language_UNKNOWN
#define _Language_MAX Language_SPANISH_ES_MX
#define _Language_ARRAYSIZE ((Language)(Language_SPANISH_ES_MX+1))
```

Add a test `enum_minmax` to cover this case.


# 37458f49 24-May-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Skip default value generation when no fields have them

This might partially fix #402, but it still requires more testing.
Nevertheless, this fix makes sense because there is no point going
through all the reflection + serialization logic if there is nothing
to do anyway.


# a43994b2 30-Apr-2019 Sébastien Morin <sebastien.morin@primerogames.com>

Adding TypenameMangling.M_PACKAGE_INITIALS


# a2db9458 07-Mar-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix generator error with mangle_names option (#380)


# 4b869d74 01-Mar-2019 Vitali Lovich <vlovich@google.com>

Add C++ message descriptors helper

Zero-overhead. Allows creating simpler general nanopb C++ wrappers by
examining variable type and not needing macro magic.


# d1305dde 12-Feb-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Further fix for #379, had problem with unicode_literals with protobuf cpp implementation


# fac070c9 12-Feb-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Further #379 fix


# 0acde0f3 12-Feb-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Possible fix for issue #379


# d2f874e3 25-Jan-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Take int_size setting into account in calculating message sizes (issue #373)


# b2d04dfc 25-Jan-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Rename #define fieldname_default to _DEFAULT to avoid conflict with older constant.

This should make migration error messages less confusing.


# 9d6092bf 20-Jan-2019 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Use string literals for message default values.

This allows them to be defined as NULL when no default value is needed.


# 1d43638c 10-Dec-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add descriptorsize option.


# 87319f6a 09-Dec-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Allow specifying a per-message callback.

This allows callbacks to be combined with oneofs and pointer fields (#175)


# 4f31847e 01-Dec-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Cleanup .pb.h header format


# 6aecf218 01-Dec-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Python3 compatibility fixes


# 6a595279 01-Dec-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

New field descriptor format.

Now field information is stored as a variable-length uint32_t array.
This reduces the minimum size in most cases:

old new
basic field: 10 bytes 4 bytes
repeated field: 10 bytes 8 bytes
field with 12bit tag/size: 16 bytes 8 bytes
field with 16bit tag/size: 16 bytes 16 bytes
field with 32bit tag/size: 28 bytes 16 bytes

Further, now the descriptor size can be increased per-field and per-message,
instead of previous global PB_FIELD_16BIT and PB_FIELD_32BIT.

PB_FIELD_32BIT still affects the pb_size_t type, which is 16-bit by default.


# c8274d6a 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix .options file case sensitivity on Windows.


# 8495e598 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Make --no-strip-path default (#326)

This makes nanopb behaviour match protoc --cpp_out=.


# a415f3b9 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Remove timestamp from generated files by default, add -t to keep it.

The timestamp causes unnecessary trouble when storing generated
files in version control.


# afc0087d 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Generator: Allow comma separated options in plugin mode (#343)


# a10c771f 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Use plugin.proto that comes with python-protobuf (#234)


# c29ca83f 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.4.0-dev


# 3626b5c4 10-Nov-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.9.2


# 2fe90684 20-Oct-2018 Amarnath <amarnath.h.96@gmail.com>

Made some changes for Error Output.

Sometimes python protobuf version can't be found out by the above listed command. So added one more command to find python protobuf version which utilises pip freeze command.


# 3db85603 13-Sep-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Don't generate useless _size values that cannot be resolved at runtime (#338)

Previously the generator assumed that any submessage could be found
in a different file. Now it knows that if the submessage is in current file,
it won't be in a different file.


# c946dd2a 13-Sep-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix large generator memory usage with oneof fields (#338)

Instead of 2**n ternary operator construct, uses a sizeof(union{})
construct with linear length increase.


# 8e60f24b 28-Aug-2018 matejcik <ja@matejcik.cz>

fix test failures


# 37cdb0df 27-Aug-2018 matejcik <ja@matejcik.cz>

add typename mangling

Three options for what to do with long type names:

M_NONE - original, default. Do nothing special.

M_STRIP_PACKAGE - Strip local package name. Useful when you want to use
package names, but don't want to deal with
`com_mycompany_supersoftware_proto_` prefixes on every symbol.
Not useful when your packages cross-reference each other, because it only
strips the _current_ package name, so references to other packages
actually become invalid.

M_FLATTEN - Always use only the last part of a dotted name.
Useful when you have packages and/or deeply nested structs that don't
actually have colliding names. Then you get shorter C symbols for no
additional cost.
Not useful when the names can collide.


# 41a8c3b9 27-Aug-2018 matejcik <ja@matejcik.cz>

slight improvement to Names class to support new usecases


# 6a213568 31-May-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add --no-strip-path command line option (#326)


# 59e83376 09-Apr-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add check for large extension field number (issue #306)


# dbdfb086 06-Apr-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix handling of special characters in string/bytes default values (issue #322).


# f721a242 27-Feb-2018 Hamina, Juha-Pekka <Juha-Pekka.Hamina@nordicsemi.no>

Some cleanup and comments added


# f71acc19 26-Feb-2018 Hamina, Juha-Pekka <Juha-Pekka.Hamina@nordicsemi.no>

Fix for default value byte escaping


# f8938774 15-Feb-2018 Oliver Lee <oliverzlee@gmail.com>

Always return size for messages with OneOf fields

Use a maximum calculation if submessage sizes are unknown.


# 9a26f24a 13-Feb-2018 Oliver Lee <oliverzlee@gmail.com>

Fix initialization of fixed count option


# b28d29f9 13-Feb-2018 Oliver Lee <oliverzlee@gmail.com>

Fix decoding of non-packable fixed count repeated fields


# fc41a5da 13-Feb-2018 Oliver Lee <oliverzlee@gmail.com>

Allow fixed count repeated values


# c3f938dc 09-Feb-2018 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add some verbose prints in generator (issue #238)


# 7bf377de 09-Dec-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix _zero initializer for enums that don't begin at 0. (issue #295)

Thanks to David Vescovi for the fix.


# 2c4c3948 23-Sep-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.4.0-dev


# 71ba4e68 23-Sep-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.9


# 32c7fd5a 15-Sep-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add options to define source and header file extensions (issue #264)


# 0b5f1cbb 14-Sep-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Better error message for max_size missing with fixed_length=true (issue #281)


# c7155f7e 02-May-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Maximum encoded size for strings is now max_size-1 because unterminated strings are rejected.


# 1d527d07 02-May-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Set version to nanopb-0.4.0-dev


# 25210ac1 28-Mar-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix message length calculation for arrays of size 1 (issue #253)


# a55a66e7 05-Mar-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.9-dev


# cc74b9f2 05-Mar-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.8


# ab6017e1 25-Feb-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add better error message on Python library version imcompatibility (issue #240)


# 07375a12 22-Feb-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Extend inline / fixed length bytes array support (issue #244)

Adds support for proto3 and POINTER field types to have
fixed length bytes arrays. Also changed the .proto option
to a separate fixed_length:true, while also supporting the old FT_INLINE
option.

Restructured the generator and decoder logic to threat the inline
bytes fields more like "just another field type".


# ca74746e 20-Feb-2017 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add new option max_length for strings (issue #107)

Max_size is the allocated size, so users had to add +1 for
the null terminator. Max_length does the +1 automatically
in the generator.


# 48f5dd83 31-Dec-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix multiple oneofs in same message (issue #229)

Previously the field iterator logic didn't know whether two
oneof fields were part of the same union, or separate. This
caused wrong pointers to be calculated if multiple oneofs were
inside a single message.

This commit fixes this by using dataoffset of PB_SIZE_MAX to
indicate union fields after the first field.

Theoretically PB_SIZE_MAX is also a valid value for data offset,
which could cause errors. Adding a compile-time assert for this
is somewhat difficult. However I consider it extremely unlikely
that there is any platform that could trigger this situation, as
it would require 255 bytes of extra data/padding between two protobuf
oneof fields. On 64-bit architectures the worst case is 16 bytes,
and even esoteric platforms only align to 64 bytes or so. Manual
modification of the generated .pb.h file could trigger this, but
even then it would require pretty bad luck to happen.


# 283258dc 22-Dec-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Allow overriding proto3 mode (#228)


# 3a01eea8 22-Nov-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Small indentation and naming fixes to enum_to_string functionality


# ad6d6601 26-Oct-2016 William A. Kennington III <wak@google.com>

nanopb: update generator to emit optional enum->string mapping function

Google-Bug-Id: 28000875
Signed-off-by: William A. Kennington III <wak@google.com>
Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138


# af601e4e 30-Oct-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.8-dev


# 60d8ba22 29-Oct-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.7


# f866af7d 23-Oct-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Set the proto3 option by default if file specifies proto3 syntax


# 6e22ecde 23-Oct-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix missing warning with large bytes fields (issue #220)

Need to generate compile time check if the bytes field + size field
might exceed 255 bytes. Also eliminated spurious checks generated
for some callback fields.


# ba97926c 09-Oct-2016 Bernhard Krämer <bdkrae@gmail.com>

Add proto3 option to handle singular fields


# 62afd549 02-Aug-2016 Tom Roeder <tmroeder@google.com>

Add inline allocation of bytes fields

This commit adds a new FT_INLINE allocation type that forces bytes
fields to be inlined into the struct. E.g., pb_byte_t my_bytes[32].
This requires max_size for the bytes field. The FT_INLINE type is
represented as a new LTYPE: FT_LTYPE_FIXED_LENGTH_BYTES.

This commit also updates the documentation with FT_INLINE and
FT_LTYPE_FIXED_LENGTH_BYTES.

Added an AUTHORS file in apparent order of appearance in the git log
history from $(git log --all).


# 298d00e8 23-Jul-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Include package name in include guard (issue #207).

Fix suggested by Ulenspiegel.

Also added testcase for the same.


# 9c36b596 19-Jun-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.7-dev


# eb0e73ca 19-Jun-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.6


# f7e4f36b 25-May-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix error in STATIC_ASSERT with multiple files (issue #203)

The FieldMaxSize class was reusing the same list instance,
causing problems when multiple files were specified on the
protoc command line.


# 11c073bf 04-Mar-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Provide comments about uncalculable message sizes (issue #195)


# df3642b8 19-Feb-2016 isotes <isotes@gmail.com>

Generate MIN/MAX/ARRAYSIZE for enums

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.


# 0812fa14 19-Feb-2016 Kenshi Kawaguchi <kenshi@recurse.ca>

Add -D option to specify output directory


# 4110ff29 12-Feb-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.6-dev


# a57831ac 12-Feb-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.5


# 4507b006 06-Feb-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add code generator insertion points to files (#178).


# 3b6099fa 27-Jan-2016 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix a few remaining bugs related to CHAR_BIT!=8 platforms.


# 56f7c488 21-Nov-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix mistake in previous commit


# 7af48e55 20-Nov-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix generator crash with Enum inside Oneof (issue #188).

Add testcase for the same.


# c1aa8aa9 14-Nov-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add testcase for anonymous unions + few fixes.

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 ##.


# 9a8cc597 04-Nov-2015 Benjamin Kamath <ben.kamath@synapse.com>

Add option to allow for anonymous unions


# b0a320de 07-Oct-2015 Kyle Manna <kyle@kylemanna.com>

generator: Remove trailing whitespace

* Remove trailing whitespace
* No functional changes


# 7f1e0ec1 05-Oct-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix regression in generating message size defines (issue #172).

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.


# 3cb3872a 25-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Clean up the python2/python3 string type handling


# 6cd4f20b 25-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.5-dev


# 47fdbadd 26-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.4


# 9c9f7f14 21-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Use search $PATH for python

* Search $PATH for the python binary so that this works better with
things like virtualenv as used on Travis CI


# 67cafac8 20-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Fix strange unicode/str issue in python2

* Work around this by checking the appropriate class for the given
* environment.


# e02c6538 20-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Attempt to simplify the str/unicode madness

* This is a shot in the dark.


# 03e3af59 19-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Strings are utf-8 by default in python3

* Not sure how to handle this case in python2, seems to work
* Python 3 doesn't need this since all strings are utf-8


# 0d7ef5f9 19-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Remove cmp() to work with Python3

* 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


# 56134e87 19-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: More exhaustive field size checking

Create a FieldMaxSize class that:
* Accumlates all C assertions
* Handles the checking of the longest simple field
* Also python3 doesn't support max(None)


# 2731fe3e 19-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Use python2/3 binary read/write method

* This works with python2 and python3


# 02367d6d 19-Sep-2015 Kyle Manna <kyle@kylemanna.com>

generator: Run python's 2to3 converter

* Invoked with `2to3 -w nanopb_generator.py`
* No other changes.


# 6e72df48 13-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix maximum encoded size for negative enums (issue #166).


# 0b29baf5 12-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Make the generator understand included files (issue #165).

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.


# 35dff336 12-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Refactor the generator logic into a ProtoFile class.

In preparation for multi-file support in generator.
No functional changes yet.


# 708084e7 12-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix handling of unsigned 8- or 16-bit enums.

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.


# 612a51c6 11-Sep-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add packed_enum option to generator.

This can be generally useful for saving RAM, but also makes
it easier to test for issue #164.


# 47e744f3 10-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.4-dev


# 3486f67e 10-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.3


# 9e4ac1ba 08-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix problem with plugin options on Python 2.7.2 and older.

Update issue 153
Status: FixedInGit


# 88f2dc58 03-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Improve comment support in .options files.

Update issue 145
Status: FixedInGit


# 3bcdd49e 03-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Always define enum long names so that cross-file references work.

Update issue 118
Status: FixedInGit


# 02652148 03-Apr-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Generate #defines for plain message ids


# 8c14e736 22-Mar-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Use make_identifier() to create the name for FOO_MESSAGES define.

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.


# 942e82a8 21-Mar-2015 Michael Haberler <git@mah.priv.at>

nanopb_generator.py: emit macros for msgid message type id use


# 5c16a116 26-Feb-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Better error messages for syntax errors in .options file


# 4a658072 26-Feb-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix generator error when long_names:false is combined with Oneofs.

Update issue 147
Status: FixedInGit


# 25b92c5b 27-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix generator bug when oneof is first field in a message.

Added test case for the same.

Update issue 142
Status: FixedInGit


# 5aa8207a 24-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to nanopb-0.3.3-dev


# acd72917 24-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.2


# d32d04ba 23-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix encoded_size #defines for oneof messages.

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


# 8d12fecc 11-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

New generator options for oneofs: allow skipping or generating as normal 'optional' fields.

The behaviour with no_unions:true is the same as of nanopb 0.3.1 and earlier.


# 8ef03922 07-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix generator error with OneOfs


# 77a71ceb 04-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix build failure


# 7713d43b 04-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Implement support for oneofs (C unions).

Basic test included, should probably add an oneof to the AllTypes test also.

Update issue 131
Status: Started


# 50c67ece 04-Jan-2015 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add int_size option for generator.

This allows overriding the integer field types to e.g. uint8_t for
saving RAM.

Update issue 139
Status: FixedInGit


# 980f899d 26-Dec-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Include the field type in a comment for extension fields


# baf44b36 16-Sep-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Set version to nanopb-0.3.2-dev


# b947dc6e 11-Sep-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.1


# cdbf51db 07-Sep-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix compilation error with generated initializers for repeated pointer fields


# df7234fd 28-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix cyclic messages support in generator. Beginnings of test.

Update issue 130
Status: Started


# 71b81ad5 26-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.1-dev


# 8dede609 26-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.3.0


# 3ed21938 19-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add #if guard for .pb.h version.

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


# be0b9e04 18-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Rename poorly named identifier to avoid name conflicts.

Update issue 106
Status: FixedInGit


# 62b4a8ec 18-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Rename UNUSED() and STATIC_ASSERT() macros with PB_ prefix.

This avoids possible namespace conflicts with other macros.


# 1dd9f190 18-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Change the _count fields to use pb_size_t datatype.

Update issue 82
Status: FixedInGit


# 0150b98b 09-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.3.0-dev


# 2f05a35b 09-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.9


# ec3bff4b 04-Aug-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Generate #defines for initializing message structures.

Usage like:
MyMessage foo = MyMessage_init_default;

MyMessage_init_default will initialize to default values defined in .proto.

MyMessage_init_zero will initialize to null/zero values. Same results as {}
or {0}, but will avoid compiler warnings by initializing everything explicitly.

Update issue 79
Status: FixedInGit


# 1d7f60fe 20-Jul-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add skip_message option to generator.

Update issue 121
Status: FixedInGit


# 3cf9668c 20-Jul-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Do not automatically add a dot with generator -e option.

Now -e option in generator is more versatile. Especially it avoids
double-dot problem with some build systems.

Given foobar.proto, we now get:
-e .pb => foobar.pb.c (default)
-e _pb => foobar_pb.c
-e '' => foobar.c

Note that if you have used -e option previously, you will have to prepend
. to the argument to get the same filenames as before.

Update issue 122
Status: FixedInGit


# 7f97ad54 20-Jul-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Give better messages about the .options file path.

Update issue 124
Status: FixedInGit


# f2f9f8a9 20-Jul-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix problem with .options file and extension fields.

The options for an extension field were being looked up under wrong name
(MessageName instead of MessageName.fieldname).

Fixed the problem and added regression test. Created a new subfolder for
regression test cases.

Update issue 125
Status: FixedInGit


# 2e9797af 20-May-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.9-dev


# 916bcb36 20-May-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.8


# e6a57e51 18-Apr-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add option to not add timestamps to .pb.h and .pb.c preambles.

Patch by rusnakp.

Update issue 115
Status: FixedInGit


# 938c7ac3 07-Apr-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.8-dev


# 6d74c66a 07-Apr-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.7


# 6c90e824 01-Apr-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix compile error when default value given for extension field.

Update issue 111
Status: FixedInGit


# 9be2cfe9 15-Mar-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Get rid of pb_bytes_ptr_t, just allocate pb_bytes_array_t dynamically.

This makes the internal logic much simpler, and also keeps the datatypes
more similar between STATIC/POINTER cases. It will still be a bit cumbersome
to use because of variable length array member. Macros PB_BYTES_ARRAY_T(n) and
PB_BYTES_ARRAY_T_ALLOCSIZE(n) have been added to make life a bit easier.

This has the drawback that it is no longer as easy to use externally allocated
byte array as input for bytes field in pointer mode. However, this is still
easy to do using callbacks, so it shouldn't be a large issue.


# 842c960d 15-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.7-dev


# 7f397b06 15-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.6


# 542463db 12-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Move descriptor.proto to google/protobuf directory where it belongs.

This fixes some interoperability problems when trying to compile
nanopb.proto for e.g. the Google's C++ library.

Update issue 104
Status: FixedInGit


# bd22cf27 12-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Improve status/error reporting in generator.

Update issue 105
Status: FixedInGit


# 879860be 04-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add coments to places where STATIC_ASSERT is used.

Update issue 96
Status: FixedInGit


# a2f81121 04-Feb-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add proper suffixes for integer default values.

Update issue 102
Status: FixedInGit


# a46ed9f4 03-Jan-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix problem with callback-type fields (issue #99).


# 843fc4b1 01-Jan-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.6-dev


# 906c8283 01-Jan-2014 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.5


# 435ccbfd 03-Dec-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fixes for pyinstaller


# dde71cb4 03-Dec-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Make generator print errors to stderr.

Otherwise they won't be visible when run as a protoc plugin.


# 45c1a32e 17-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Rework the Makefiles to be compatible with binary packages.


# ec517e21 17-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add build script for windows package


# 356535da 17-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Move the generator .proto files to a subdir, and get rid of precompiled versions.


# 25516b05 09-Dec-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Organize allocation logic in generator, add pb_bytes_ptr_t.

Allocation decision is now made before the field data type is decided.
This way the data type decisions can more cleanly account for the allocation
type, i.e. FT_DEFAULT logic etc.

Added pb_bytes_ptr_t for pointer-allocated bytes-fields. There is no point
generating separate structs for these, as they would all be of the same type.


# 4ae3b2e5 08-Dec-2013 Martin Donath <scifish@gmail.com>

Generating and encoding messages with dynamic allocaiton


# 4f37c083 22-Dec-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Negative int32 values take 10 bytes now.


# 321ca6c1 07-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.5-dev


# 935a26ab 07-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.4


# dcdd7f98 02-Nov-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Generate #define tags for extension fields also.

Update issue 93
Status: FixedInGit


# 86d69831 24-Oct-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Same fix for EncodedSize.__mul__


# 0848255d 23-Oct-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Handle also longs in EncodedSize


# 51f0e472 23-Oct-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix the size of length prefix for messages in other files.


# 49bd3f35 23-Oct-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Generate message size #defines also for messages defined in multiple files.

Add testcase for the same.


# 388d4de8 26-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add #defines for the maximum encoded message size.

Update issue 89
Status: FixedInGit


# 2363af29 17-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.4-dev


# 283a8f36 17-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.3


# 9ada7e75 13-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fine-tune the naming of new macros before merging into master.

Requires re-generation of files generated with dev_get_rid_of_ternary_operator.


# 840e213b 11-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Get rid of the ternary operator in the pb_field_t initialization.

Some compilers where unable to detect that the ternary operator
can be evaluated at the compile time. This commit does the evaluation
on the Python side, which should fix the problem.

The new .pb.c files are generated using PB_FIELD2() macro. The old
PB_FIELD() macro remains, so that previously generated files keep
working.


# 4821e7f4 08-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add support for running the nanopb generator as protoc plugin.

Will be used to implement issue 47.

For now, symlink nanopb_generator.py as protoc-gen-nanopb and
use protoc --nanopb_out=. to call it.


# d7f3a743 08-Sep-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Handle unsupported extension field types more gracefully.

Previously the generator would stop with NotImplementedException as
soon as a required or repeated extension field is found. New behaviour
is to just ignore the unsupported field and note that in a comment
in the generated file.

Furthermore, allow skipping of extension fields using the generator
option (nanopb).type = FT_IGNORE.

Update issue 83
Status: FixedInGit


# 4aef194a 18-Aug-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.3-dev


# 81cf3003 18-Aug-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.2


# 1f13e8cd 22-Jul-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix bugs in extension support when multiple extension fields are present.


# 64947cb3 17-Jul-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Extension support implemented for decoder.

Testing is still needed. Also only 'optional' extension fields
are supported now, 'repeated' fields are not yet supported.


# 7c5e184c 16-Jul-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Implement generator support for extension fields (no encoder/decoder support yet)


# a1cec46b 03-Jun-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Include the field tags in the generated .pb.h file.

Patch from Michael Haberler.


# bfd7cb36 14-Apr-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.2-dev


# ef741ea5 14-Apr-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.1


# 384e686f 02-Apr-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Do not generate has_ fields for callback fields.

The arg field can be used to store the field presence from inside
the callback. Furthermore, having the has_ field for encoding callbacks
would be more annoying than useful.

Update issue 70
Status: FixedInGit


# 1396dce2 13-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add support for packed structures on IAR and MSVC.

Update issue 66
Status: FixedInGit


# 6468f23d 09-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Make the generator options accept a file name in addition to format string.


# 6f8dbc73 09-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add simple support for separate options file.

Update issue 12
Still needs documentation.


# 5522e021 06-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add a dummy field if struct would otherwise be empty.

Update issue 64
Status: FixedInGit


# 64bf72d7 04-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add generator option to configure #include directives.

This suits complex projects, where there are multiple interdependent .proto files
in various directories. Patch by Michael Haberler.


# 104710b2 02-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.2.1-dev


# c8e0732e 02-Mar-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.2.0


# 0e305389 28-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add --extension option to generator.

Patch courtesy of Michael Haberler.


# 80a2d33f 21-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Move STATIC_ASSERTs to .pb.c file.

This way the .pb.h will remain cleaner and easier to read.


# 258ba833 16-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Reformat generated .pb.c files using macros.

This has the following advantages:
1) Easier to modify pb_field_t encoding
2) Simpler generator logic
3) Tidier looking, easier to read .pb.c files

Update issue 58
Status: FixedInGit


# 5b536d40 13-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.1.9.1-dev


# 4cc3372b 13-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.1.9


# c1a355b2 11-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Set version to 0.2.0-dev


# e7bf063a 07-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add check for sizeof(double) == 8.

Update issue 54
Status: FixedInGit


# 47b10ec0 07-Feb-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Sanitize filenames before putting them in #ifndef.

Update issue 50
Status: FixedInGit


# d32d3226 14-Jan-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add field type FT_IGNORE to generator.

This allows ignoring fields that are unnecessary or too large for an
embedded system using nanopb, while allowing them to remain in the .proto
for other platforms.

Update issue 51
Status: FixedInGit


# d2c1604d 10-Jan-2013 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add generator option for packed structs.

Usage is:
message Foo
{
option (nanopb_msgopt).packed_struct = true;
...
}

Valid also in file scope.

Update issue 49
Status: FixedInGit


# bb5dc045 13-Dec-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.1.9-dev


# 09ec60ca 13-Dec-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.1.8


# cc29958d 11-Nov-2012 Steffen Siering <steffen siering gmail com>

Fix STATIC_ASSERT macro when using multiple .proto files.

The __COUNTER__ macro (used for generating unique names) is at least supported
by gcc, clang and Visual Studio. With this change test_compiles.c is
compilable, since no more typedefs are redefined.

Compilers/Preprocessors not supporting __COUNTER__ error's are still possible
which are hopfully handled by the usage of __LINE__ in most sittuations.

Added unit test for the problem.


# 0abb764b 13-Nov-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix naming of nested Enums with short names


# 02ecee2d 13-Nov-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix naming of enums when long_names=false.

Modify test case to check that options.pb.o compiles.

Update issue 42
Status: FixedInGit

Update issue 43
Status: FixedInGit


# fc6f56b2 11-Nov-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Setting version to 0.1.8-dev


# 92bb37b0 11-Nov-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Publishing nanopb-0.1.7


# 08391f35 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add nanopb version number to generated files.

tools/set_version.sh is used to update the values.

Update issue 36
Status: FixedInGit


# 3aaa4ad8 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add extern "C" to header files.

Update issue 35
Status: FixedInGit


# db1eefc2 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add option to use short names for enum values.

Update issue 38
Status: FixedInGit


# 0ee4bb96 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Allow defining field type in .proto.

Update issue 30
Status: FixedInGit


# 28b0136e 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Improve .proto options parsing.

Options can now be defined on command line, file, message or in field
scope.

Update issue 12
Status: Started


# 9e0ee92f 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Use optparse in nanopb_generator.py


# c3fa3626 29-Oct-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Give names to generated structures to allow forward declaration.

Update issue 39
Status: FixedInGit


# d8bddabb 05-Jul-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix bug with .proto without messages (again), and add a test case for it.


# 72cca8d7 05-Jul-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Replace #warning with the standard #error.


# 7c5bb654 02-Jul-2012 Stan Hu <stanhu@aclimalabs.com>

Cast enum vaules to integers and cast them back where appropraite
to prevent mixed enumeration type compiler warnings


# 9b1e1b44 01-Jul-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Replace PB_MANY_FIELDS with PB_FIELD_16BIT and PB_FIELD_32BIT.

This allows more precise control over the memory use vs. field size.


# 78086cc2 30-Jun-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add PB_MANY_FIELDS option for supporting fields > 255.

Add generator warning if this is necessary.
Fixes issue #14.


# 67add325 30-Jun-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Warn if PB_MAX_REQUIRED_FIELDS is not large enough.


# 3a919ddc 20-Jun-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fix error when .proto contains no Messages (e.g. just enums).

Thanks to Paul Fertser for reporting this bug.


# 5af2c97e 12-Jun-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add descriptor.proto into the #include exclusion list


# f9501ca1 19-May-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Add better error messages in the generator when libraries cannot be imported.
Fixes issue #5.


# 0cdc6230 15-Feb-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Modified nanopb_generator.py to generate includes for other .proto files.
Implementation was suggested by extremeblue99.
Fixes issue 4.


# f6b08404 30-Jan-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fixed nanopb_generator.py to read the input file in binary mode.


# 113bd7ee 12-Jan-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fixed issue 1 reported by Erik Rosen:
The size of non-callback bytes-fields was miscalculated, which
caused all following fields in a message to contain garbage.

Previous commit contains a testcase for this.

This fix changes the generated message description. If your protocol uses
bytes-fields, you should regenerate *.pb.c.


# a1adf398 12-Jan-2012 Petteri Aimonen <jpa@git.mail.kapsi.fi>

Fixed a bug in the generator that caused a compiler error on sfixed32 and sfixed64 fields.


# fcfc99f7 13-Sep-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Fixed a bunch of bugs related to callback fields.

Most importantly, callback fields in submessages were being overwritten with garbage, causing segfaults.

Additionally, converted PB_LTYPE_FIXED to PB_LTYPE_FIXED32 and PB_LTYPE_FIXED64. This makes the interface
a bit easier to use, and in addition runs faster.


git-svn-id: https://svn.kapsi.fi/jpa/nanopb@975 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 35814517 01-Sep-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Python 2.6 compatibility for the generator

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@973 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 9af96cd6 24-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Generator bugfixes

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@970 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 64ac18c8 23-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Changed autogenerated file naming from foo.c to foo.pb.c

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@965 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 5a9f85b8 22-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

unittests, change to PB_LTYPE_BYTES data size

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@959 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 7f53c3f7 17-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Example

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@957 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 842d5263 14-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

More documentation, small improvements

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@955 e3a754e5-d11d-0410-8d38-ebb782a927b9


# a8d01725 04-Aug-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

Encoder

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@951 e3a754e5-d11d-0410-8d38-ebb782a927b9


# 3959290b 30-Jul-2011 Petteri Aimonen <jpa@npb.mail.kapsi.fi>

First version of header generator

git-svn-id: https://svn.kapsi.fi/jpa/nanopb@950 e3a754e5-d11d-0410-8d38-ebb782a927b9