Commit Graph

298 Commits

Author SHA1 Message Date
kenton@google.com
2113840aa0 Fix bogus sign-compare warnings in header at request of user. 2010-01-11 18:38:22 +00:00
temporal
d4e38c7fc9 Fix date in CHANGES.txt. Sigh. 2010-01-09 07:35:50 +00:00
kenton@google.com
ea75323710 Update version number in trunk to 2.3.1. 2010-01-09 01:02:25 +00:00
kenton@google.com
38b744eaa7 Update CHANGES.txt to reflect actual expected release date of 2.3.0. 2010-01-08 05:54:29 +00:00
kenton@google.com
f9fa0590bc Fix memory leak in CommandLineInterface, not that it really matters. 2010-01-08 05:47:13 +00:00
kenton@google.com
38fcd39227 Minor compatibility tweaks for FreeBSD. 2010-01-08 04:48:19 +00:00
kenton@google.com
7b7a80eae4 Tweak doc comments. 2010-01-08 03:56:03 +00:00
kenton@google.com
83aba29ebe Detect and avoid broken unordered_map on OSX 10.5 / GCC 4.0.1. 2010-01-07 04:40:54 +00:00
kenton@google.com
2773bdf239 Add missing file to dist. 2010-01-07 04:14:34 +00:00
kenton@google.com
535301894e Address comments from various code reviews. 2010-01-07 02:08:03 +00:00
kenton@google.com
2429e3a0de Monty Taylor claims this helps the drizzle compile for some reason. 2010-01-05 22:30:28 +00:00
kenton@google.com
0225b352ea Mention zip/jar output in CHANGES.txt. 2010-01-04 22:07:09 +00:00
kenton@google.com
d78ca9c74f Fixed DLL compile under MSVC. 2010-01-04 21:15:47 +00:00
kenton@google.com
c619a3da2a Fix syntax of function definition in shell script so that it hopefully works on Solaris. 2010-01-04 20:03:09 +00:00
kenton@google.com
fe7314e0cc Another Sun Studio fix from Monty Taylor. 2010-01-04 19:52:53 +00:00
kenton@google.com
d2fcbba230 Improve zip/jar support:
- Don't support par or war since par is not a standard format and outputting to
  war doesn't make sense.
- Add boilerplate manifest when outputting to Jar.
- Remove "XXX check conversion" comments because I don't care.
- Add a test.
2010-01-04 19:47:18 +00:00
kenton@google.com
5066322074 Allow protoc to output directly to zip/jar/par/war files. 2009-12-24 02:12:15 +00:00
kenton@google.com
45258ff4e2 Fix 32/64-bit confusion on Solaris 10 x86. Patch from Oliver Jowett. 2009-12-23 22:12:22 +00:00
kenton@google.com
bf06bb24bc Try again to fix build on Sun Studio -- Monty Taylor claims this will do it. 2009-12-23 22:02:18 +00:00
kenton@google.com
5f12164f54 Refactor the way output is handled in CommandLineInterface -- now it will be stored in-memory until all code generators have completed, then dumped to disk all at once. While this means that protoc uses more memory, the code is much simpler, and handles insertions much faster. Also, this made it easier to implement a useful feature: insertions will be indented to match the insertion point line. Therefore, when inserting into Python code, you don't have to figure out how much to indent your inserted code. The refactoring should also make it easier to implement output-to-jar at some point. 2009-12-23 07:03:06 +00:00
kenton@google.com
46ed74e8d4 Actually, that last revision can be simpler -- we don't need to parse strings at all, as simply entering 1e1000 as a float literal in Python will be evaluated as infinity. 2009-12-23 02:08:05 +00:00
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. 2009-12-23 02:01:01 +00:00
kenton@google.com
eef5f8396d Same as r275 except for Python. 2009-12-23 01:32:45 +00:00
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. 2009-12-23 01:23:06 +00:00
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. 2009-12-22 23:51:20 +00:00
kenton@google.com
7f4938b244 Mark plugins as experimental for now. 2009-12-22 22:57:39 +00:00
kenton@google.com
25cf9e3153 getExtension() on an empty repeated field should return an empty list, not a singular default value. 2009-12-22 19:54:06 +00:00
kenton@google.com
d6e84b3ed8 When serializing to an ostream, verify that there were no stream-level errors before returning success. 2009-12-22 19:43:41 +00:00
kenton@google.com
28e46df3e9 Clarify that pushLimit() does not limit the number of bytes CodedInputStream will read from the underlying InputStream. 2009-12-22 19:35:07 +00:00
kenton@google.com
6f12e3e29a Accept form feeds as whitespace. 2009-12-22 18:11:09 +00:00
kenton@google.com
f9c5978f5d Hopefully fix build on Sun Studio. 2009-12-22 18:04:23 +00:00
kenton@google.com
c0ee4d2ed9 Build DLLs on Cygwin and MinGW. 2009-12-22 02:05:33 +00:00
kenton@google.com
94fd2ad771 Make sure test_plugin.vcproj is included in dist. 2009-12-21 21:46:25 +00:00
kenton@google.com
d1ce7a2839 Fix build on MSVC. 2009-12-21 21:19:05 +00:00
kenton@google.com
f2a732938e Fix build on GCC 3.3/Linux. 2009-12-21 19:44:57 +00:00
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
kenton@google.com
6493368285 CodedInputStream.getTotalBytesRead(); patch from Michael Kucharski. 2009-11-12 18:13:33 +00:00