Commit Graph

8247 Commits

Author SHA1 Message Date
Jon Skeet
3f9a6f2116 Implemented GeneratedExtension, although list handling may be incorrect. 2008-08-14 20:35:22 +01:00
Jon Skeet
575083ae9c Initial support for services and extensions. Incomplete, but enough to get generated unit test files to compile. 2008-08-14 20:35:21 +01:00
Jon Skeet
1353315ded Implemented TextFormatter 2008-08-14 20:35:20 +01:00
Jon Skeet
b84310e110 Field accessor implementations complete (hopefully) 2008-08-14 20:35:20 +01:00
Jon Skeet
023d7398d6 Update Makefile in terms of C# sources and keyfile command line option
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:35:19 +01:00
Jon Skeet
4e6215c734 Update Makefile in terms of C# sources and keyfile command line option
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:35:19 +01:00
Jon Skeet
00b0af0890 Fix default instance behaviour for repeated types 2008-08-14 20:35:18 +01:00
Jon Skeet
4f435a506e Build all projects in the solution 2008-08-14 20:35:18 +01:00
Jon Skeet
c1215c4660 Removed Descriptor.cs which was an early attempt at generation 2008-08-14 20:35:17 +01:00
Jon Skeet
a03ea11c52 Finish implementing GeneratedBuilder. 2008-08-14 20:35:17 +01:00
Jon Skeet
4d276b6c7c Added a .gitignore file to make life simpler 2008-08-14 20:35:16 +01:00
Jon Skeet
cd85190847 Two more which should have been in the last commit 2008-08-14 20:35:15 +01:00
Jon Skeet
3351bb63da Descriptors are pretty much complete, with a slight issue of how to find the default type for a repeated field. 2008-08-14 20:35:15 +01:00
Jon Skeet
5f7b68eb6f Modified addressbook example with new options 2008-08-14 20:35:14 +01:00
Jon Skeet
2b61cbf408 Autogeneration now hopefully close to correct. Library builds! (Not finished though...) 2008-08-14 20:35:14 +01:00
Jon Skeet
de21d2c92c Patch from Miguel de Icaza: This introduces auto-detection of Mono to configure, and if found, builds and installs the runtime library, and provides a pkg-config file so developers can easily use it on Unix. 2008-08-14 20:33:37 +01:00
Jon Skeet
9f4f0a56b1 Descriptor framework skeleton. Somewhat generic to avoid lots of code duplication. 2008-08-14 20:33:36 +01:00
Jon Skeet
c0daf10724 Changed fixed size methods to return unsigned integers. Finished FieldSet. Introduced mapping from FieldType to WireType and MappedType. 2008-08-14 20:33:35 +01:00
Jon Skeet
800f65e209 Patch from Miguel de Icaza - tweaks to generated C# 2008-08-14 20:33:35 +01:00
Jon Skeet
007f859664 First pass of the readme. Lots more to come. 2008-08-14 20:33:34 +01:00
Jon Skeet
ec8c395517 Gradually implementing FieldSet 2008-08-14 20:33:34 +01:00
Jon Skeet
b83aee759a Fix AbstractMessage and AbstractBuilder to get the explicit interface implementation sorted 2008-08-14 20:33:33 +01:00
Jon Skeet
621bb698e5 Some work on AbstractBuilder, and complete implementation of UnknownField and UnknownFieldSet 2008-08-14 20:33:33 +01:00
Jon Skeet
a7246897ab Fix Makefile.am to include the C# files.
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:32 +01:00
Jon Skeet
27727ab0fc Added C# projects. 2008-08-14 20:33:31 +01:00
Jon Skeet
560983ad1d Made TextFormatTest line-ending neutral 2008-08-14 20:33:31 +01:00
Jon Skeet
734746ed55 Added C# options 2008-08-14 20:33:30 +01:00
Jon Skeet
fe7bb26214 Implemented AbstractMethod and split the descriptors into a new package 2008-08-14 20:33:30 +01:00
Jon Skeet
c26b43d8cd Added copyright notices
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:29 +01:00
Jon Skeet
1dd0a61d09 More tests for CodedInputStream, and some more WireFormat
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:29 +01:00
Jon Skeet
b802a94f45 Half way through CodedInputStream
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:28 +01:00
Jon Skeet
70ff861764 Improved generation for C\# files
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:28 +01:00
Jon Skeet
baa2bf54c2 First part of dotnet library
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:27 +01:00
Jon Skeet
3c38991607 Fix variance in line endings
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:26 +01:00
Jon Skeet
f92c545f49 Initial commit of C# code developed before installing Git.
committer: Jon Skeet <skeet@pobox.com>
2008-08-14 20:33:26 +01:00
temporal
4e88f89ed5 Add missing file. 2008-08-13 16:40:30 +00:00
temporal
779f61c6a3 Integrate recent changes from google3.
protoc
- New flags --encode and --decode can be used to convert between protobuf text
  format and binary format from the command-line.
- New flag --descriptor_set_out can be used to write FileDescriptorProtos for
  all parsed files directly into a single output file.  This is particularly
  useful if you wish to parse .proto files from programs written in languages
  other than C++: just run protoc as a background process and have it output
  a FileDescriptorList, then parse that natively.

C++
- Reflection objects are now per-class rather than per-instance.  To make this
  possible, the Reflection interface had to be changed such that all methods
  take the Message instance as a parameter.  This change improves performance
  significantly in memory-bandwidth-limited use cases, since it makes the
  message objects smaller.  Note that source-incompatible interface changes
  like this will not be made again after the library leaves beta.

Python
- MergeFrom(message) and CopyFrom(message) are now implemented.
- SerializeToString() raises an exception if the message is missing required
  fields.
- Code organization improvements.
- Fixed doc comments for RpcController and RpcChannel, which had somehow been
  swapped.
2008-08-13 03:15:00 +00:00
temporal
a0f27fcd96 Heuristically detect sub-messages when printing unknown fields.
Patch mostly written by Dilip Joseph <dilip.antony.joseph@gmail.com>.
2008-08-06 01:12:21 +00:00
temporal
8ccb79057e Apply Leandro Lucarella <llucax@gmail.com>'s patches for VIM highlighting
and not setting execute bit on protoc outputs.
2008-07-31 01:43:34 +00:00
temporal
24856db0e9 Applied Ulrich Kunitz's patches to slightly optimize Python serialization code. 2008-07-27 18:38:54 +00:00
temporal
6fdb0964e3 Fix static initialization ordering bug that caused crashes at startup when
compiling on Mac with static linking.
2008-07-25 04:38:05 +00:00
temporal
f206351d14 Sync code with Google-internal branch. Changes:
Protoc (parser)
- Improved error message when an enum value's name conflicts with another
  symbol defined in the enum type's scope, e.g. if two enum types declared
  in the same scope have values with the same name.  This is disallowed for
  compatibility with C++, but this wasn't clear from the error.
C++
- Restored the set_foo(const char*) accessor for "bytes" type because some
  code inside Google depends on it.  However, set_foo(const char*, int) is
  still there (and actually is changed to take const void*).
- Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
- Other irrelevant tweaks.
Java
- Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
- Fixed TextFormat's parsing of "inf" and "nan".
- Fixed TextFormat's parsing of comments.
Python
- Fixed text_format_test on Windows where floating-point exponents sometimes
  contain extra zeros.
2008-07-23 01:19:07 +00:00
temporal
cc930432c2 misc. stuff:
- Improved readmes.
- Fixed incorrect definition of kint32min.
- Fixed absolute output paths on Windows.
- Added info to Java POM that will be required when we upload the
  package to a Maven repo.
2008-07-21 20:28:30 +00:00
temporal
e8564291e2 Fix Python service CallMethod() implementation.
Patch from Johan Euphrosine <proppy@aminche.com>
2008-07-18 16:35:38 +00:00
temporal
e773b43253 Allow trailing slashes in --proto_path mappings.
Patch by Kevin Ko <kevin.s.ko@gmail.com>.
2008-07-16 20:57:56 +00:00
temporal
928ebb6b55 Fix bytes type setter to work with byte sequences with embedded NULLs.
Patch from Alkis Evlogimenos <alkis@evlogimenos.com>.
2008-07-16 02:00:27 +00:00
temporal
40ee551715 Initial checkin. 2008-07-10 02:12:20 +00:00