kenton@google.com
d0047c43d9
In Python, avoid relying on float('inf') and float('nan') as these don't work on Windows with Python pre-2.6.
15 years ago
kenton@google.com
eef5f8396d
Same as r275 except for Python.
15 years ago
kenton@google.com
35d2f017a7
In Java's TextFormat, correcty concatenate adjacent string literals, as C++ does. Also fix a bug in handling of single-quoted strings.
15 years ago
kenton@google.com
6e8b9e4a4a
Make extension identifiers final. This improves security when untrusted code is present in the same class loader. In order to get around initialization ordering issues, I simply made the constructor for extension identifiers take no arguments and deferred initialization to an internalInit() method, which generated code will always call during init.
15 years ago
kenton@google.com
7f4938b244
Mark plugins as experimental for now.
15 years ago
kenton@google.com
25cf9e3153
getExtension() on an empty repeated field should return an empty list, not a singular default value.
15 years ago
kenton@google.com
d6e84b3ed8
When serializing to an ostream, verify that there were no stream-level errors before returning success.
15 years ago
kenton@google.com
28e46df3e9
Clarify that pushLimit() does not limit the number of bytes CodedInputStream will read from the underlying InputStream.
15 years ago
kenton@google.com
6f12e3e29a
Accept form feeds as whitespace.
15 years ago
kenton@google.com
f9c5978f5d
Hopefully fix build on Sun Studio.
15 years ago
kenton@google.com
c0ee4d2ed9
Build DLLs on Cygwin and MinGW.
15 years ago
kenton@google.com
94fd2ad771
Make sure test_plugin.vcproj is included in dist.
15 years ago
kenton@google.com
d1ce7a2839
Fix build on MSVC.
15 years ago
kenton@google.com
f2a732938e
Fix build on GCC 3.3/Linux.
15 years ago
kenton@google.com
0abe9c2143
Argh, this line was not supposed to be submitted.
15 years ago
kenton@google.com
ee7e9420e3
Use unordered_map when available. Changes to stl_hash.m4 provided by Oleg Smolsky.
15 years ago
temporal
8ee1474044
Add a code generator insertion point for Java builders.
15 years ago
kenton@google.com
684d45b2fe
Fix build on MinGW/Win32 (including implementing Subprocess using CreateProcess()).
15 years ago
temporal
bdbb863099
Ensure that 'once' objects are declared using the macro. This is either the third or fourth time I've screwed this up when down-integrating, because our internal code does not require the macro (it's not portable) and on Linux a pthread_once_t that is zero-initialized just happens to work. So, I only discover the problem when I test on Mac, then kick myself for making the same mistake yet again. No more! This time, I have renamed GoogleOnceType to ProtobufOnceType, thus making the type name differ from our internal code. As a result, if you don't update the decls to use the macros, they won't compile. Hah! Take that, future self!
15 years ago
kenton@google.com
91218afc67
Fix Cygwin build.
15 years ago
kenton@google.com
5e744ff961
Commit missing files from r251. Sigh.
15 years ago
kenton@google.com
afd32abb75
Set version to 2.3.0-pre.
15 years ago
kenton@google.com
83ad01e35f
Point test_plugin at the correct gtest headers.
15 years ago
kenton@google.com
fccb146e3f
Massive roll-up of changes. See CHANGES.txt.
15 years ago
kenton@google.com
d5cf7b55a6
Some sort of emacs protobuf mode fix.
15 years ago
kenton@google.com
b221008884
Fix UTF-8 validity checks to not do unaligned reads.
15 years ago
kenton@google.com
de74779454
fix SONAME in trunk
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
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
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