aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | First pass (not yet compiling) at removing all the array handling code from ↵Jon Skeet2015-06-303-102/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Coded*Stream. Prod code works, but some tests are broken. Obviously those need fixing, then more tests, and review benchmarks.
| * | | | Fix for doubly-nested types - issue #307.Jon Skeet2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | No specific test case - if the generated code compiles, the issue is fixed :)
| * | | | More cleanup, based around searches for "Google.ProtocolBuffers"Jon Skeet2015-06-2626-31/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove some old proto2-based C#-only messages - Remove the "build" directory which only contained out-of-date files - Remove the csharp_namespace option from proto2 messages - Change "Google.ProtocolBuffers" to "Google.Protobuf" in other messages
| * | | | Tweaks and more tests for mapsJon Skeet2015-06-263-6/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change the default message hash code to 1 to be consistent with other code - Change the empty list/map hash code to 0 as "empty map" is equivalent to "no map" - Removed map fields from unittest_proto3.proto - Created map_unittest_proto3.proto which is like map_unittest.proto but proto3-only - Fixed factory methods in FieldCodec highlighted by using all field types :) - Added tests for map serialization: - Extra fields within entries - Entries with value then key - Non-contiguous entries for the same map - Multiple entries for the same key Changes to generated code coming in next commit
| * | | | More map tests, and various production code improvements.Jon Skeet2015-06-251-1/+2
| | | | | | | | | | | | | | | | | | | | Generated code in next commit.
| * | | | First pass at map support.Jon Skeet2015-06-2514-10/+263
| | | | | | | | | | | | | | | | | | | | More tests required. Generated code in next commit.
| * | | | Regenerated descriptor C++ codeJon Skeet2015-06-251-3/+2
| | | | |
| * | | | Revert the change to wire_format.h.Jon Skeet2015-06-245-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | It seems too much code relies on the broken behaviour. See issue #493. Instead, we reimplement MakeTag just for C#, temporarily.
| * | | | Implement freezing for messages and repeated fields.Jon Skeet2015-06-2413-8/+82
| | | | | | | | | | | | | | | | | | | | Fixes issue #523.
| * | | | Merge remote-tracking branch 'upstream/master' into fix_appveyorJan Tattermusch2015-06-242-9/+13
| |\ \ \ \
| * | | | | Implement requested changes for IMessage<T>Jon Skeet2015-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) New line at end of file 2) Make IMessage<T> itself extend IEquatable<T> and IDeepCloneable<T>
| * | | | | Implement Clone.Jon Skeet2015-06-2313-8/+95
| | | | | | | | | | | | | | | | | | | | | | | | Fixes issue #527.
| * | | | | Merge remote-tracking branch 'upstream/master' into proto3-onlyJon Skeet2015-06-1992-154/+28178
| |\ \ \ \ \
| * | | | | | Minor cleanup.Jon Skeet2015-06-193-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make some members internal - Remove a lot of FrameworkPortability that isn't required - Start adding documentation comments - Remove some more group-based members - Not passing in "the last tag read" into Read*Array, g
| * | | | | | Merged masterJon Skeet2015-06-1733-633/+615
| |\ \ \ \ \ \
| * | | | | | | Use the fact that we know the tag size and bytes at codegen time to optimize.Jon Skeet2015-06-178-30/+77
| | | | | | | |
| * | | | | | | Fix oneof generator - forgot to provide variables...Jon Skeet2015-06-121-0/+1
| | | | | | | |
| * | | | | | | Move Count checks into the serialization codeJon Skeet2015-06-123-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I wouldn't expect this to affect anything, but it appears to.
| * | | | | | | Optimization of CalculateSize: avoid foreach over empty lists.Jon Skeet2015-06-123-12/+10
| | | | | | | |
| * | | | | | | Use Length to check string/bytes fields for emptiness - it's faster than an ↵Jon Skeet2015-06-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | equality check.
| * | | | | | | Fix oneof behaviour in the face of default values.Jon Skeet2015-06-121-9/+4
| | | | | | | |
| * | | | | | | Coded*Stream streamlining.Jon Skeet2015-06-127-42/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove ICodedInputStream and ICodedOutputStream, and rewrite CodedInputStream and CodedOutputStream to be specific to the binary format. If we want to support text-based formats, that can be a whole different serialization mechanism.
| * | | | | | | Reimplement enums as int values, and get rid of EnumHelper.Jon Skeet2015-06-113-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes repeated fields really awkward at the moment - but when we reimplement RepeatedField<T> to be backed by an array, we can cast the array directly...
| * | | | | | | First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Jon Skeet2015-06-0913-107/+628
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pretty slow right now.
| * | | | | | | First stab at new proto3-only code generatorJon Skeet2015-06-0525-2091/+295
| | | | | | | |
* | | | | | | | Merge pull request #652 from TeBoring/objectivecPaul Yang2015-07-292-13/+12
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Move the definition of GOOGLE_FALLTHROUGH_INTENDED to port.h
| * | | | | | | | Move the definition of GOOGLE_FALLTHROUGH_INTENDED to port.hteboring2015-07-292-13/+12
| | |_|_|_|_|_|/ | |/| | | | | |
* | | | | | | | Windows is always little-endian.LitingLin2015-07-301-2/+2
| | | | | | | |
* | | | | | | | A bug about PROTOBUF_LITTLE_ENDIAN remain undefined on MSVC x64LitingLin2015-07-301-1/+1
|/ / / / / / /
* | | | | | / Remove two unused functions.Nico Weber2015-07-252-16/+0
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge pull request #621 from nico/staticassJisi Liu2015-07-201-2/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | Let GOOGLE_COMPILE_ASSERT use static_assert if available.
| * | | | | | Let GOOGLE_COMPILE_ASSERT use static_assert if available.Nico Weber2015-07-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation is that gcc 4.8+ and clang trunk warn on unused local typedefs, which COMPILE_ASSERT adds. After this change, the warning will be happy at least in C++11 builds. static_assert also produces a slighly nicer diagnostic than the typedef method. https://github.com/google/re2/commit/eb93e8bc43ac8d05322fb3e9fc885898ad924f8a did the same change in re2.
* | | | | | | Merge pull request #604 from haberman/ruby-conformanceJoshua Haberman2015-07-202-16/+24
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Added Ruby to conformance tests.
| * | | | | | | Added Ruby to conformance tests.Josh Haberman2015-07-162-16/+24
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This involved fixing a few important bugs in the Ruby implementation -- mostly cases of mixing upb field types and descriptor types (upb field types do not distinguish between int/sint/fixed/sfixed like descriptor types do). Also added protobuf-specific exceptions so parse errors can be caught specifically. Change-Id: Ib49d3db976900b2c6f3455c8b88af52cfb86e036
* | | | | | | Merge pull request #622 from pherl/splitheadersJisi Liu2015-07-172-0/+2
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Addming missing includes in stubs headers.
| * | | | | | Addming missing includes in stubs headers.Jisi Liu2015-07-172-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to prepare removing those additional headers in common.h Change-Id: I707d6d8eaf193eb28195a827c7fec738b968ab3e
* | | | | | | Merge pull request #613 from pherl/splitheadersJisi Liu2015-07-179-1404/+1631
|\| | | | | | | | | | | | | | | | | | | | Split up common.h headers
| * | | | | | Merge branch 'master' of github.com:google/protobuf into splitheaderJisi Liu2015-07-171-0/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5f6cbc2430200e3751ad754cc7ae604338db6f91
| * | | | | | | Update make file for extra headers.Jisi Liu2015-07-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifbc415755266ba3d0ffa5661fcd7c7d2e3b32a22
| * | | | | | | Split up common.h headersJisi Liu2015-07-168-1404/+1625
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | Change-Id: I223783111d743aa5193bf70fa1b9b54c7b4389c3
* | | | | | | Merge pull request #601 from anandolee/masterJie Luo2015-07-172-0/+35
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | ignore UTF-8 BOM
| * | | | | | ignore UTF-8 BOM if it is in the begining of a proto fileJie Luo2015-07-162-0/+35
| |/ / / / /
* / / / / / Install missing headersRob Earhart2015-07-141-0/+3
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Install google/protobuf/stubs/status.h, and google/protobuf/stubs/stringpiece.h -- these are required in order to include google/protobuf/util/type_resolver.h. Install google/protobuf/stubs/bytestream.h -- this is required in order to include google/protobuf/util/json_util.h.
* | | | | Internal local modifications.Bo Yang2015-07-0910-158/+160
| | | | |
* | | | | Merge pull request #500 from TeBoring/tempPaul Yang2015-07-013-62/+94
|\ \ \ \ \ | | | | | | | | | | | | Implement parsing for proto3 primitive repeated fields.
| * | | | | Implement parsing for proto3 primitive repeated fields. Previously, forBo Yang2015-06-153-62/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | proto3 primitive repeated fields, packed data cannot be parsed if definition is unpacked. Neither is the other way.
* | | | | | Merge pull request #551 from ostrovsky/masterFeng Xiao2015-07-016-31/+21
|\ \ \ \ \ \ | | | | | | | | | | | | | | MinGW64+MSYS2 compilation issues
| * | | | | | MinGW64+MSYS2 compilation issues and portable isnan using MathLimitsKarol Ostrovsky2015-07-016-31/+21
| | | | | | |
* | | | | | | Merge pull request #458 from xfxyjwf/memory_leakPaul Yang2015-06-301-0/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Delete default UnknownFieldSet when shuting down.
| * | | | | | | Delete default UnknownFieldSet when shuting down.Feng Xiao2015-06-021-0/+5
| | | | | | | |