Petteri Aimonen
d7cadaa46f
Windows build fixes
2013-12-29 20:26:57 +02:00
Petteri Aimonen
d344bda28a
Fix protoc plugin path
2013-12-29 20:26:57 +02:00
Petteri Aimonen
05e2dc20f3
Actually no, it was a portability hassle
2013-12-29 20:26:57 +02:00
Petteri Aimonen
c61660b3ea
Makefile tuning
2013-12-29 20:26:57 +02:00
Petteri Aimonen
45c1a32e50
Rework the Makefiles to be compatible with binary packages.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
ef31774cd9
Moving files around
...
Renamed READMEs to README.txt to be more friendly for Windows users.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
480b39cc0a
Package as .zip, convert linebreaks
2013-12-29 20:26:57 +02:00
Petteri Aimonen
ec517e2108
Add build script for windows package
2013-12-29 20:26:57 +02:00
Petteri Aimonen
8c2dda67a1
Add descriptor.proto to repository to avoid messing with protoc include path.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
58b3a22d6d
Add script for making linux binary package
2013-12-29 20:26:57 +02:00
Petteri Aimonen
356535da9b
Move the generator .proto files to a subdir, and get rid of precompiled versions.
2013-12-29 20:26:57 +02:00
Petteri Aimonen
f4146edf01
Bring alltypes_pointer testcase up to date
2013-12-29 18:44:58 +02:00
Petteri Aimonen
8da15d8b80
Improve alltypes_pointer test case
2013-12-29 18:35:57 +02:00
Petteri Aimonen
bc4ded3b43
Fix missing error messages in pb_encode.c
2013-12-29 18:35:57 +02:00
Petteri Aimonen
ef07635e35
Rename encode_static_field -> encode_basic_field.
2013-12-29 18:35:57 +02:00
Petteri Aimonen
25516b0591
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.
2013-12-29 18:35:57 +02:00
Petteri Aimonen
414e637867
Const-correctness and small cleanup.
2013-12-29 18:35:57 +02:00
Martin Donath
4ae3b2e566
Generating and encoding messages with dynamic allocaiton
2013-12-29 18:35:57 +02:00
Petteri Aimonen
4f37c083d5
Negative int32 values take 10 bytes now.
2013-12-22 23:24:02 +02:00
Petteri Aimonen
ed93db08dc
Fix problem with decode_legacy test case on Windows.
2013-12-21 18:08:04 +02:00
Petteri Aimonen
cd9004089f
Add test for extreme integer values (INT32_MAX etc.) in AllTypes.
2013-12-21 12:41:20 +02:00
Petteri Aimonen
ee5b12c537
Add PB_LTYPE_UVARINT to fix encoding of negative int32 values.
...
Apparently int32 values that are negative must be cast into int64 first
before being encoded. Because uint32 still needs to be cast to uint64,
the cases for int32 and uint32 had to be separated.
Update issue 97
Status: FixedInGit
2013-12-21 12:16:03 +02:00
Petteri Aimonen
9cc19a5e99
Modify the alltypes test to check re-encoding through protoc.
...
This way we can verify that the message is encoded exactly the same way
as the official protobuf implementation would do it.
2013-12-21 12:14:20 +02:00
Petteri Aimonen
eff9e11150
Optimize the common case of 1-byte reads for varints.
...
For PB_BUFFER_ONLY configuration, this gives 20% speedup without
increasing code size.
2013-11-14 17:56:42 +02:00
Petteri Aimonen
5813144246
Make tests build in a separate folder, add to gitignore
2013-11-13 22:10:42 +02:00
Petteri Aimonen
171d64734a
Fix path in FindNanopb.cmake.
...
Update issue 94
Status: FixedInGit
2013-11-11 09:22:32 +02:00
Petteri Aimonen
321ca6c1d5
Setting version to 0.2.5-dev
2013-11-07 16:47:14 +02:00
Petteri Aimonen
935a26ab1c
Publishing nanopb-0.2.4
nanopb-0.2.4
2013-11-07 16:44:41 +02:00
Petteri Aimonen
d7af99434a
Add dates to changelog
2013-11-02 22:19:26 +02:00
Petteri Aimonen
564bdc8448
Update changelog
2013-11-02 22:11:27 +02:00
Petteri Aimonen
dcdd7f98fd
Generate #define tags for extension fields also.
...
Update issue 93
Status: FixedInGit
2013-11-02 22:05:49 +02:00
Petteri Aimonen
287207841d
Remove the NANOPB_INTERNALS functions from public API.
...
These have been deprecated since nanopb-0.1.6 (some since 0.1.3).
Equivalent functions with better interface are available in the API.
Update issue 91
Status: FixedInGit
2013-10-29 16:32:47 +02:00
Petteri Aimonen
0074deba9a
Declare static functions before use.
...
For compliance with MISRA C rules (issue 91).
2013-10-29 16:24:50 +02:00
Petteri Aimonen
4d69cc2f3e
Cleanup of comments.
2013-10-29 16:19:07 +02:00
Petteri Aimonen
c7b4ce0293
Add a definition of the security model to the documentation.
2013-10-29 15:44:35 +02:00
Petteri Aimonen
cd3af3272d
Rename some internal functions to have unique names
2013-10-29 15:32:51 +02:00
Petteri Aimonen
ed564186e1
Detect invalid sizes when encoding bytes fields.
2013-10-24 21:45:39 +03:00
Petteri Aimonen
86d6983156
Same fix for EncodedSize.__mul__
2013-10-24 09:52:40 +03:00
Petteri Aimonen
0848255d4a
Handle also longs in EncodedSize
2013-10-24 08:44:59 +03:00
Petteri Aimonen
51f0e47295
Fix the size of length prefix for messages in other files.
2013-10-23 21:21:43 +03:00
Petteri Aimonen
49bd3f35a0
Generate message size #defines also for messages defined in multiple files.
...
Add testcase for the same.
2013-10-23 21:01:11 +03:00
Petteri Aimonen
2bfd497eea
Define pb_size_t and pb_ssize_t data types.
...
Use these in pb_field_t definition to clean up some #ifs, and also
to prepare for solving issue #82 .
2013-10-20 21:49:55 +03:00
Petteri Aimonen
e83fbd18d3
Check array max size when encoding.
...
Update issue 90
Status: FixedInGit
2013-10-20 21:42:00 +03:00
Petteri Aimonen
388d4de833
Add #defines for the maximum encoded message size.
...
Update issue 89
Status: FixedInGit
2013-09-26 10:23:37 +03:00
Petteri Aimonen
2363af29a2
Setting version to 0.2.4-dev
2013-09-18 12:47:32 +03:00
Petteri Aimonen
283a8f36cb
Publishing nanopb-0.2.3
nanopb-0.2.3
2013-09-18 12:44:46 +03:00
Petteri Aimonen
8accc25710
Update changelog
2013-09-13 13:41:57 +03:00
Petteri Aimonen
73142ba082
Add a new very simple example
2013-09-13 13:35:25 +03:00
Petteri Aimonen
f47410ea4b
Move examples into subfolders, add READMEs
2013-09-13 12:59:31 +03:00
Petteri Aimonen
fd9a79a06d
Merge branch 'dev_get_rid_of_ternary_operator'
2013-09-13 11:31:45 +03:00