4036 Commits (0ef0214161a0fd73a44c9dfc593d4ed89e5838a2)

Author SHA1 Message Date
Joshua Haberman 57d6353a3c Rename serializer -> encoder. 15 years ago
Joshua Haberman 088b995c9e Make msgsrc reversable. 15 years ago
kenton@google.com 529a843f2d Fix issues with Windows build: Always use ASCII version of CreateProcess (even if UNICODE is defined) and move GetMessage macro work-around to common.h so that it covers extension_set.h as well. Patch from Nick Carter. 15 years ago
Joshua Haberman 90e4f08678 Incremental work on serialization. 15 years ago
Joshua Haberman 50451ea441 Make onend upb_sink callback take the field as a parameter. 15 years ago
kenton@google.com c25f833baf Fixes compile on GCC 3.2 according to Sergey Tihansky. 15 years ago
Joshua Haberman d7d1b2a141 Move many serializing functions to .cc file, since they do not need to be exposed. 15 years ago
Joshua Haberman 02d2f8afb8 Implemented source for upb_msg. 15 years ago
Joshua Haberman b05205d224 Defined upb_sink interface and ported the parser to it. 15 years ago
kenton@google.com 2113840aa0 Fix bogus sign-compare warnings in header at request of user. 15 years ago
Joshua Haberman 527c094500 Reduced the complexity of the cbparser interface. 15 years ago
kenton@google.com ea75323710 Update version number in trunk to 2.3.1. 15 years ago
kenton@google.com f9fa0590bc Fix memory leak in CommandLineInterface, not that it really matters. 15 years ago
kenton@google.com 38fcd39227 Minor compatibility tweaks for FreeBSD. 15 years ago
kenton@google.com 7b7a80eae4 Tweak doc comments. 15 years ago
kenton@google.com 2773bdf239 Add missing file to dist. 15 years ago
kenton@google.com 535301894e Address comments from various code reviews. 15 years ago
Joshua Haberman d751973758 Ported/fixed tests to new data types. 15 years ago
kenton@google.com 2429e3a0de Monty Taylor claims this helps the drizzle compile for some reason. 15 years ago
Joshua Haberman 6a8dfa5f26 upb_array -> upb_arrayptr. 15 years ago
kenton@google.com d78ca9c74f Fixed DLL compile under MSVC. 15 years ago
kenton@google.com c619a3da2a Fix syntax of function definition in shell script so that it hopefully works on Solaris. 15 years ago
kenton@google.com d2fcbba230 Improve zip/jar support: 15 years ago
Joshua Haberman 15604083c7 Move string representations back upb.h -> upb_data.h. 15 years ago
Joshua Haberman fa5710f1ca upb_string* -> upb_strptr, to follow aliasing rules. 15 years ago
Joshua Haberman ece08710a6 Bugfixes: descriptorgen works without leaks! 15 years ago
Joshua Haberman 2fdc9df97e Other than a couple memory leaks, "make descriptorgen" works again! 15 years ago
Joshua Haberman c33d51581a upbc compiles and links! But probably doesn't work yet. 15 years ago
Joshua Haberman f6cc21bc2d Doesn't compile, but all the code to be adapted is there. 15 years ago
Joshua Haberman ab0f2b8bba Moved string library functions to .c instead of inlined, because they're not that small. 15 years ago
Joshua Haberman 3f0d126b2a Only remaining undefined symbol is upb_msg_parsestr. 15 years ago
Joshua Haberman cc39625767 Getting closer, only a few functions undefined now. 15 years ago
Joshua Haberman afe911ea00 Removed upb_mm. 15 years ago
Joshua Haberman 8978661a76 upbc compiles, but doesn't link due to unimplemented stuff in upb_data. 15 years ago
Joshua Haberman e5debfa1c9 More incremental work; ported some of upbc. 15 years ago
kenton@google.com 5066322074 Allow protoc to output directly to zip/jar/par/war files. 15 years ago
Joshua Haberman 602e093504 Core compiles, though with warnings, and is still incomplete. 15 years ago
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. 15 years ago
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. 15 years ago
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
Joshua Haberman f49f7f94c1 More progress, upb_data and upb_def compile (but are incomplete). 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 d6e84b3ed8 When serializing to an ostream, verify that there were no stream-level errors before returning success. 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
Joshua Haberman a230cf5053 More work. 15 years ago
kenton@google.com c0ee4d2ed9 Build DLLs on Cygwin and MinGW. 15 years ago
kenton@google.com d1ce7a2839 Fix build on MSVC. 15 years ago
Joshua Haberman 7dd113baa8 Added upb_data.*, left out of last commit. 15 years ago