Fixed a bunch of bugs related to callback fields.
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>
Tue, 13 Sep 2011 16:14:08 +0000 (16:14 +0000)
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>
Tue, 13 Sep 2011 16:14:08 +0000 (16:14 +0000)
commitfcfc99f766f278564c062922a2857c21ac9af041
treebad83fb95b48917d36ced09debc9e6e565ff7649
parentd4abb63c052dc9d4c23ce72e498b4c7483f3b7cb
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
13 files changed:
docs/reference.rst
generator/nanopb_generator.py
pb.h
pb_decode.c
pb_decode.h
pb_encode.c
pb_encode.h
tests/Makefile
tests/callbacks.proto
tests/decode_unittests.c
tests/encode_unittests.c
tests/test_decode_callbacks.c
tests/test_encode_callbacks.c