Commit Graph

90 Commits

Author SHA1 Message Date
kenton@google.com
b43727981c Fix final leak (win32 only). 2009-05-18 18:38:56 +00:00
kenton@google.com
1fb3d394e5 Update version number in trunk. 2009-05-13 23:20:03 +00:00
kenton@google.com
1d4df6caa4 Fix compile error on Cygwin, where int32 is typedefed to long instead of int, and the compiler can't figure out which overload of this method to use in that case. 2009-05-06 22:17:46 +00:00
kenton@google.com
e21c5734ec Make sure examples link properly. 2009-05-06 20:41:30 +00:00
kenton@google.com
63e646b7ad Provide ShutdownProtobufLibrary() which frees all startup-allocated objects. 2009-05-06 19:27:03 +00:00
kenton@google.com
9824eda6b5 enable cross-compiling 2009-05-06 17:49:37 +00:00
kenton@google.com
42c81e1a76 Set better default CXXFLAGS and don't use optimization when compiling tests
(takes too long).
2009-05-06 01:15:06 +00:00
kenton@google.com
3d694ad2d8 Fix test failure on 64-bit python. 2009-05-01 23:33:31 +00:00
kenton@google.com
a8923cdd9a More Sun CC hacks. Contributed by Monty Taylor. 2009-05-01 21:53:10 +00:00
kenton@google.com
2fd1208b34 Hopefully make autogen.sh run on solaris. 2009-05-01 21:41:32 +00:00
kenton@google.com
2cdba5baee Add Emacs editor mode. Contributed by Alexandre Vassalotti. 2009-05-01 21:03:20 +00:00
temporal
1589b1d8c1 Fix startup crash when statically linking on Mac. 2009-04-28 08:09:44 +00:00
kenton@google.com
c5ff06cc74 Add second run of cpp_unittest which verifies that descriptors are constructed lazily. This is accomplished by avoiding any use of descriptors while testing a bunch of other operations, then checking at the end that descriptors have not been constructed. 2009-04-28 03:06:41 +00:00
kenton@google.com
503a4dd705 Convert some \u escape sequences to UTF-8 because MSVC interprets them differently. 2009-04-28 02:16:53 +00:00
kenton@google.com
30be0a8758 Don't use dll-export declspec on class-nested extensions. 2009-04-28 02:10:27 +00:00
kenton@google.com
41c3760f2f Update extract_includes.bat to include new public headers in rev 120. 2009-04-28 01:51:27 +00:00
kenton@google.com
ccc11678c7 Make building libprotobuf as a DLL work again. 2009-04-28 01:48:06 +00:00
kenton@google.com
ef3730c2df Add test verifying that protoc accepts trailing backslashes on Windows, which some users claim doesn't work. Seems to work on my machine. 2009-04-28 00:49:36 +00:00
kenton@google.com
d33e53ad4c That last rev shouldn't have compiled, but apparently did, for some reason. Fixed. 2009-04-28 00:44:15 +00:00
kenton@google.com
db4b583084 Protect a new death test with GTEST_HAS_DEATH_TEST, since MinGW doesn't support it. 2009-04-28 00:42:42 +00:00
kenton@google.com
50ede8ba17 Update MSVC project files for rev 120, and add instructions for compiling with zlib. 2009-04-27 22:28:10 +00:00
kenton@google.com
d37d46dfbc Integrate recent changes from Google-internal code tree. See CHANGES.txt
for details.
2009-04-25 02:53:47 +00:00
kenton@google.com
709ea28f32 Work around windows.h #defining GetMessage(). 2009-04-22 20:06:20 +00:00
kenton@google.com
6f9bc71ffd Add missing LIBPROTOBUF_EXPORT. 2009-04-22 04:04:27 +00:00
kenton@google.com
679edc415e Remove scoped_memory_log.h from MSVC project files -- it has not existed for some time. 2009-04-22 03:23:51 +00:00
kenton@google.com
4152d554c4 Handle .exe extension when looking for protoc in setup.py. 2009-04-22 03:20:21 +00:00
kenton@google.com
bbbd4d309c Update MSVC project files to work with new gtest bundling strategy. 2009-04-22 01:34:07 +00:00
kenton@google.com
37ad00d2c4 Update bundled gtest to latest version (1.3.0) and include it as a
nested autoconf package rather than as raw source.  This way we can
trivially update it again in the future.

Actually, this change doesn't even include gtest in protobuf's SVN.
Instead, we auto-download it when autogen.sh is invoked.  Note that
it will be included in release distributions, though.

TODO:
* Add a configure option to use the system's installed gtest rather
  than the bundled copy.  Apparently the gtest maintainers are working
  on some general-purpose autoconf macros which will do this
  automagically.
* Update MSVC project files.
2009-04-21 21:00:39 +00:00
kenton@google.com
a6de64aef3 setup.py shouldn't fail if protoc path contains whitespace. 2009-04-18 02:28:15 +00:00
kenton@google.com
9af2f4c50b Update ez_setup.py to latest version, so it works with Python 2.6. 2009-04-18 02:16:43 +00:00
kenton@google.com
a8e8ccf29c Improve performance of Python serialization. Patch from Will Pierce. 2009-04-18 02:01:27 +00:00
kenton@google.com
6dcd46c8d2 Fix initialization ordering problem in logging code. Based on patch from Wink Saville. 2009-04-18 01:24:27 +00:00
kenton@google.com
cfa2d8aa87 Generate field number constants. Patch from Michael Poole. 2009-04-18 00:02:12 +00:00
kenton@google.com
eb26a1efde Commit Michael Poole's patch for explicitly constructing all class fields in
generated code.
2009-04-16 22:43:40 +00:00
kenton@google.com
e59427a62c Commit Brian Olson's gzip stream implementations. 2009-04-16 22:30:56 +00:00
kenton@google.com
f663b1602d Adds a flag to protoc called --error_format which specifies what
convention to use when printing errors.  Default is GCC, but Microsoft
Visual Studio is another option.  This allows errors to be clickable in
the MSVS error log.
2009-04-15 19:50:54 +00:00
jonathan.skeet
90bdae226e Update benchmark data. 2009-03-05 23:16:14 +00:00
jonathan.skeet
8604c745fc Added copyright notice, made constants constant, added GC call before each test. 2009-03-05 11:10:35 +00:00
jonathan.skeet
ff9c9e4d93 Initial benchmarking. 2009-03-05 11:00:49 +00:00
kenton@google.com
1556623fad Submit files missing from previous submit. 2009-02-10 17:47:02 +00:00
kenton@google.com
2d6daa72ab Push out changes from internal codebase.
All Languages
* Repeated fields of primitive types (types other that string, group, and
  nested messages) may now use the option [packed = true] to get a more
  efficient encoding.  In the new encoding, the entire list is written
  as a single byte blob using the "length-delimited" wire type.  Within
  this blob, the individual values are encoded the same way they would
  be normally except without a tag before each value (thus, they are
  tightly "packed").

C++
* UnknownFieldSet now supports STL-like iteration.
* Message interface has method ParseFromBoundedZeroCopyStream() which parses
  a limited number of bytes from an input stream rather than parsing until
  EOF.

Java
* Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
* Message interface has new method toBuilder() which is equivalent to
  newBuilderForType().mergeFrom(this).
* All enums now implement the ProtocolMessageEnum interface.
* Setting a field to null now throws NullPointerException.
* Fixed tendency for TextFormat's parsing to overflow the stack when
  parsing large string values.  The underlying problem is with Java's
  regex implementation (which unfortunately uses recursive backtracking
  rather than building an NFA).  Worked around by making use of possesive
  quantifiers.

Python
* Updated RPC interfaces to allow for blocking operation.  A client may
  now pass None for a callback when making an RPC, in which case the
  call will block until the response is received, and the response
  object will be returned directly to the caller.  This interface change
  cannot be used in practice until RPC implementations are updated to
  implement it.
2009-01-22 01:27:00 +00:00
pesho.petrov
87e64e1cee Adding slicing support for repeated scalar fields and get/delete slice for composite fields. 2008-12-24 01:07:22 +00:00
kenton@google.com
d41578239c Update trunk version to 2.0.4-SNAPSHOT. 2008-12-05 22:04:06 +00:00
kenton@google.com
2f3d8de767 Submit script used to post-process dist files. 2008-12-05 18:05:46 +00:00
kenton@google.com
25bc5cdc9c Support "Solaris 10 using recent Sun Studio".
Patch from Monty Taylor <monty.taylor@gmail.com>.
2008-12-04 20:34:50 +00:00
kenton@google.com
1ea526879c Add full-system test for custom enum value options. (Previously, only a
parsing test in parser_unittest.cc existed.)
2008-12-02 20:08:45 +00:00
kenton@google.com
2f669cbe75 * Avoid using pushd/popd in generate_descriptor_proto.sh because they are
bash-only features, and /bin/sh is not a symlink to bash on all systems.
* If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
  the import path only contains "." (or contains "." but does not contain
  the file), protoc incorrectly thought that the file was under ".", because
  it thought that the path was relative (since it didn't start with a slash).
  This has been fixed.
2008-12-02 05:59:15 +00:00
kenton@google.com
eb241fadf2 Fix call to superclass.__init__() to work on newer versions of Python. 2008-12-02 02:33:13 +00:00
kenton@google.com
a001ed0c03 * Update version compatibility stuff -- 2.0.3 is in no way compatible with
2.0.2.
* Minor Tru64 fix.
2008-12-01 23:47:49 +00:00
kenton@google.com
9f1752889c Update CHANGES.txt with stuff from 2.0.3. 2008-11-25 19:37:10 +00:00