Commit Graph

5589 Commits

Author SHA1 Message Date
kenton@google.com
0abe9c2143 Argh, this line was not supposed to be submitted. 2009-12-21 19:24:21 +00:00
kenton@google.com
ee7e9420e3 Use unordered_map when available. Changes to stl_hash.m4 provided by Oleg Smolsky. 2009-12-21 18:58:23 +00:00
temporal
8ee1474044 Add a code generator insertion point for Java builders. 2009-12-20 00:09:50 +00:00
kenton@google.com
684d45b2fe Fix build on MinGW/Win32 (including implementing Subprocess using CreateProcess()). 2009-12-19 04:50:00 +00:00
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! 2009-12-18 08:21:00 +00:00
kenton@google.com
91218afc67 Fix Cygwin build. 2009-12-18 07:20:43 +00:00
kenton@google.com
5e744ff961 Commit missing files from r251. Sigh. 2009-12-18 04:51:42 +00:00
kenton@google.com
afd32abb75 Set version to 2.3.0-pre. 2009-12-18 02:51:26 +00:00
kenton@google.com
83ad01e35f Point test_plugin at the correct gtest headers. 2009-12-18 02:40:43 +00:00
kenton@google.com
fccb146e3f Massive roll-up of changes. See CHANGES.txt. 2009-12-18 02:11:36 +00:00
kenton@google.com
d5cf7b55a6 Some sort of emacs protobuf mode fix. 2009-12-18 01:55:04 +00:00
kenton@google.com
b221008884 Fix UTF-8 validity checks to not do unaligned reads. 2009-12-11 03:49:28 +00:00
kenton@google.com
de74779454 fix SONAME in trunk 2009-12-11 03:41:58 +00:00
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
2009-12-01 18:05:21 +00:00
Dan Egnor
95dbaa67a8 The j2me protobuf code is now in vendor/google; remove it here. 2009-11-13 17:14:51 -08:00
kenton@google.com
6493368285 CodedInputStream.getTotalBytesRead(); patch from Michael Kucharski. 2009-11-12 18:13:33 +00:00
kenton@google.com
6ba3df0d32 Add benchmarks for writing to a FileOutputStream. Patch from Evan Jones. 2009-11-03 18:21:54 +00:00
kenton@google.com
c0abf64e53 Convert ProtoBench.java to unix-style line endings. 2009-11-03 18:20:01 +00:00
Jon Skeet
b075ff5c17 Added a flag to allow code contracts to be emitted 2009-11-03 17:36:32 +00:00
Jon Skeet
b49d3c7834 Support Compact Framework 3.5 2009-11-03 16:51:01 +00:00
kenton@google.com
f85d70f9e4 Optimize Java serialization of small messages to streams. Patch from Evan Jones. 2009-11-02 18:50:19 +00:00
kenton@google.com
573989f782 Explicitly call superclass constructor in generated code to avoid pedantic warning. Based on patch from Oleg Smolsky. 2009-10-30 22:02:17 +00:00
kenton@google.com
1a4193c2cb Fix MSVC version check -- I was given bad info. 2009-10-12 19:30:50 +00:00
kenton@google.com
c91e1fe82b Support MSVC 2010 beta 1. 2009-10-12 19:22:03 +00:00
kenton@google.com
477f799fb6 Improve error message regarding proto_path not matching .proto file. 2009-10-07 21:38:11 +00:00
kenton@google.com
32f330f7a4 Detect whether zlib is new enough. Based on patch from Oliver Jowett. 2009-09-15 17:15:43 +00:00
kenton@google.com
f4c6e4b37e Fix protobuf-mode on XEmacs. 2009-09-15 17:12:06 +00:00
kenton@google.com
721995d00a Fix cross-compiling when building in a dedicated build directory. Fix pointed out by Pierre Kestener. 2009-09-11 22:08:40 +00:00
Jon Skeet
0aac0e4fe3 Regionify copyright statement 2009-09-09 18:48:02 +01:00
Jon Skeet
f29da03679 Can now at least *build* Silverlight2 assembly easily. Can't test though. 2009-09-09 15:51:39 +01:00
Jon Skeet
8a5c7e792a Silverlight compatibility now working, although build files aren't ideal 2009-09-09 13:58:01 +01:00
Jon Skeet
3c80886fa9 Silverlight compatibility other than SortedList 2009-09-09 13:22:36 +01:00
Jon Skeet
79a8c01033 Ignore mono binaries 2009-09-09 10:08:42 +01:00
Jon Skeet
9dea1157ed Merge branch 'master' of git@github.com:jskeet/dotnet-protobufs 2009-09-06 20:23:54 +01:00
Jon Skeet
1872d080f7 Fixed bug spotted by danielr 2009-09-06 20:22:34 +01:00
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. 2009-09-02 02:42:56 +00:00
kenton@google.com
b26684a900 Remove test that had undefined behavior and thus did not pass on some platforms. 2009-09-02 01:42:04 +00:00
kenton@google.com
3aa7a0dafe HPUX patch from Alexander Melnikov. 2009-08-17 20:34:29 +00:00
temporal
ad5672bad7 Update experimental SEBS file to support cross-compiling. 2009-08-17 09:42:47 +00:00
kenton@google.com
0bcfeb9dcd Don't use RTTI in down_cast if GOOGLE_PROTOBUF_NO_RTTI is defined. Patch from Chris Masone (of Google). 2009-08-14 01:21:01 +00:00
kenton@google.com
8169c7fcde Set version number to 2.2.1 in trunk. 2009-08-13 22:41:37 +00:00
kenton@google.com
201b9be95d Set release date. 2009-08-12 00:23:05 +00:00
kenton@google.com
0f831dca74 Add new headers to extract_includes.bat. 2009-08-11 03:25:55 +00:00
kenton@google.com
8aae2a2137 Oops, unittest_enormous_descriptor.proto still needs to be in the dist. 2009-08-11 00:23:25 +00:00
kenton@google.com
e133abd01c Don't build unittest_enormous_decsriptor.proto in C++ because it's very slow on older GCCs. This file was meant for testing Java anyway. 2009-08-11 00:18:23 +00:00
kenton@google.com
304b731da6 Hack to make gtest sub-package compile correctly on Sun Studio. 2009-08-10 23:52:27 +00:00
kenton@google.com
db0bf5a52f Fix MSVC projects to ensure that protoc is built before lite-test attempts to use it and that lite-test and tests don't attempt to generate the same .pb.* files at the same time. 2009-08-10 22:55:15 +00:00
kenton@google.com
09b9e99bd3 Make tests compile on Sun Studio. Patch from Monty Taylor. 2009-08-10 20:23:41 +00:00
temporal
bcb791a9d0 Experimental alternative build definition. 2009-08-10 08:12:18 +00:00
kenton@google.com
fdd9d3c8b5 Remove more of the stuff that was supposed to be removed in r190. 2009-08-08 03:39:26 +00:00