Joshua Haberman
08b4a91204
Add a test for circularly-linked descriptors.
...
The test currently triggers valgrind-detected memory errors.
15 years ago
Joshua Haberman
651c92ab33
Scheme for collecting circular refs.
...
"make descriptorgen" is now valgrind-clean again.
15 years ago
Joshua Haberman
18291eedc3
Make defs refcounted, rename upb_context->upbsymtab.
...
There is currently a memory leak when type definitions
form cycles. This will need to be dealt with.
15 years ago
jasonh+personal@google.com
9951233e9a
Fix Issue 136: the memoized serialized size for packed fields may not
...
be properly set. writeTo() may be invoked without a call to
getSerializedSize(), so the generated serialization methods would
write a length of 0 for non-empty packed fields. Just call
getSerializedSize() at the beginning of writeTo(): although this
means that we may compute the byte size needlessly when there
are no packed fields, in practice, getSerializedSize() will
already have been called - all of the writeTo() wrappers in
AbstractMessageLite invoke it.
Tested: new unittest case in WireFormatTest.java now passes
15 years ago
Joshua Haberman
a95ab58e79
Overhaul defs to derive from a common base.
15 years ago
Joshua Haberman
246a36998b
WIP of cleaning up defs.
15 years ago
Joshua Haberman
d160380736
Update upbc to use self-describing upb_msg instead of void*.
15 years ago
Joshua Haberman
6191fe3ae2
Reference-count upb_msgdef and upb_enumdef.
...
The context owns a reference on each def, defs own references
on defs they reference, and msgs own refs on their def.
15 years ago
Joshua Haberman
cb6c34275f
Fix memory leak in test.
15 years ago
Joshua Haberman
9e3f5e343b
Make upb_msgdef own all its data.
...
This is in anticipation of making upb_msgdef's easy
to dup. This involved removing all traces of any
descriptors from the defs.
15 years ago
Joshua Haberman
f231856c48
Defined Pick Parser interface.
15 years ago
Joshua Haberman
868f118797
Changed parse API to know about msgdefs.
...
This should make it both easier to use and easier to
optimize, in exchange for a small amount of generality.
In practice, any remotely normal case is still very
natural.
15 years ago
Joshua Haberman
7cde43ea0a
Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef.
15 years ago
Joshua Haberman
e252432a41
Refactoring: split defs into their own file, move private parsing funcs out of .h file.
15 years ago
Dan Egnor
95dbaa67a8
The j2me protobuf code is now in vendor/google; remove it here.
15 years ago
kenton@google.com
6493368285
CodedInputStream.getTotalBytesRead(); patch from Michael Kucharski.
15 years ago
kenton@google.com
6ba3df0d32
Add benchmarks for writing to a FileOutputStream. Patch from Evan Jones.
15 years ago
kenton@google.com
c0abf64e53
Convert ProtoBench.java to unix-style line endings.
15 years ago
Jon Skeet
b075ff5c17
Added a flag to allow code contracts to be emitted
15 years ago
Jon Skeet
b49d3c7834
Support Compact Framework 3.5
15 years ago
kenton@google.com
f85d70f9e4
Optimize Java serialization of small messages to streams. Patch from Evan Jones.
15 years ago
kenton@google.com
573989f782
Explicitly call superclass constructor in generated code to avoid pedantic warning. Based on patch from Oleg Smolsky.
15 years ago
kenton@google.com
1a4193c2cb
Fix MSVC version check -- I was given bad info.
15 years ago
kenton@google.com
c91e1fe82b
Support MSVC 2010 beta 1.
15 years ago
kenton@google.com
477f799fb6
Improve error message regarding proto_path not matching .proto file.
15 years ago
Joshua Haberman
33a68acb14
Use a status object for errors so a message can be returned.
...
Also delay deletion of subfields until the entire message is
deleted.
15 years ago
kenton@google.com
32f330f7a4
Detect whether zlib is new enough. Based on patch from Oliver Jowett.
15 years ago
kenton@google.com
f4c6e4b37e
Fix protobuf-mode on XEmacs.
15 years ago
kenton@google.com
721995d00a
Fix cross-compiling when building in a dedicated build directory. Fix pointed out by Pierre Kestener.
15 years ago
Jon Skeet
0aac0e4fe3
Regionify copyright statement
15 years ago
Jon Skeet
f29da03679
Can now at least *build* Silverlight2 assembly easily. Can't test though.
15 years ago
Jon Skeet
8a5c7e792a
Silverlight compatibility now working, although build files aren't ideal
15 years ago
Jon Skeet
3c80886fa9
Silverlight compatibility other than SortedList
15 years ago
Jon Skeet
79a8c01033
Ignore mono binaries
15 years ago
Jon Skeet
9dea1157ed
Merge branch 'master' of git@github.com:jskeet/dotnet-protobufs
15 years ago
Jon Skeet
1872d080f7
Fixed bug spotted by danielr
15 years ago
kenton@google.com
7fb9ae9df3
Make sure to quality calls to std::swap. Otherwise, if a google::swap() exists (e.g. because the user is using our own dense_hash_map implementation) it will be chosen instead, leading to a compile error.
15 years ago
kenton@google.com
b26684a900
Remove test that had undefined behavior and thus did not pass on some platforms.
15 years ago
Joshua Haberman
4b47002198
Update Python C extension for new upb_array API.
15 years ago
Joshua Haberman
1fe9414757
Change upb_msg to work with messages that have 0 fields.
15 years ago
Joshua Haberman
46fac0f58d
Tests use valgrind, chdir in test.
15 years ago
Joshua Haberman
d05eac2890
Properly free dynamic memory that has not been reused during parsing.
15 years ago
Joshua Haberman
a022e6ebdb
Fixes for more discerning compilers.
15 years ago
Joshua Haberman
00ba0d1ac1
Unit test comparing parsed results with proto2.
15 years ago
Joshua Haberman
75134e6f9d
Small stylistic improvements in benchmarks.
15 years ago
Joshua Haberman
9b67b322da
Small C++ header fixes.
15 years ago
Joshua Haberman
527a544b04
Small bugfix: enums are int32, not uint32.
15 years ago
Joshua Haberman
085aa44fcd
Small bugfix.
15 years ago
Joshua Haberman
cd2f77d392
Incremental improvements to cbparser, and a test.
15 years ago
Joshua Haberman
22dd1980f6
Added TODO.
15 years ago