Commit Graph

5213 Commits

Author SHA1 Message Date
Bruce Dawson
210be267fd Use constexpr more with VC++ 2017 (#3707)
* Use constexpr more with VC++ 2017

Chrome's official builds have over 170 dynamic initializers for
variables of the form *::TableStruct::aux. Defining
PROTOBUF_CONSTEXPR_VAR to be constexpr for VS 2017 gets rid of all of
these and saves about 10 KB of binary size.

* Update generated_message_table_driven.h

Restore accidentally deleted line.
2017-10-02 14:43:05 -07:00
Johan Brandhorst
fc7a6a2931 Add GopherJS protobuf and gRPC links
Add a link to my third party protobuf/gRPC implementation for GopherJS.
2017-10-02 21:48:34 +01:00
Jisi Liu
bd798dfc81 Merge pull request #3690 from pherl/3.4.x
Remove ranged based for in io_win32.cc
2017-10-02 10:53:06 -07:00
Jisi Liu
a38f876d40 Merge pull request #3691 from pherl/stringback
Fix C++11 string accessors
2017-09-29 10:24:32 -07:00
Markus Heß
f7e209951e protobuf_generate: create include path only for proto files 2017-09-29 11:07:36 +02:00
Jisi Liu
d2738c04f5 Add spaces 2017-09-27 10:56:19 -07:00
Jisi Liu
5a501c64c7 Fix C++11 string accessors 2017-09-27 10:33:04 -07:00
Jisi Liu
6d0cf1b3fe Remove ranged based for in io_win32.cc 2017-09-27 10:27:58 -07:00
Feng Xiao
fc5aa5d910 Merge pull request #3676 from hesmar/hesmar/fixProtobufGeneratePython
generate python code when calling PROTOBUF_GENERATE_PYTHON
2017-09-25 10:39:31 -07:00
Markus Heß
0e069e5a2d generate python code when calling PROTOBUF_GENERATE_PYTHON 2017-09-25 11:08:12 +02:00
Paul Yang
ae55fd2cc5 Enforce all error report for php tests. (#3670)
* Enforce all error report for php tests.

* Import vendor/autoload.php in tests/bootstrap_phpunit.php
2017-09-22 14:08:01 -07:00
Feng Xiao
c20440222a Merge pull request #3675 from hesmar/hesmar/cmakeAddDllExport
protobuf_generate: add EXPORT_MACRO option
2017-09-22 11:38:19 -07:00
Markus Heß
9829b8f511 protobuf_generate: add EXPORT_MACRO option 2017-09-22 11:44:59 +02:00
Jisi Liu
c627530946 Merge pull request #3674 from pherl/shutdown
Test Shutdown can be called multiple times.
2017-09-21 15:24:31 -07:00
Joshua Haberman
4fc75296c7 Merge pull request #3627 from zanker/zanker/add-submsg-hash-init
Allow initializing a chain of protos using only a hash in Ruby
2017-09-21 15:08:45 -07:00
Jisi Liu
b091bfb07b Test Shutdown can be called multiple times. 2017-09-21 14:08:01 -07:00
Zachary Anker
633ef8bde9 Update message.c 2017-09-21 09:26:54 -07:00
Paul Yang
2b0ee3fdf6 Add $ before url_prefix_len to make it a variable. (#3668)
* Add $ before url_prefix_len to make it a variable.

* Remove unnecessary string length check

* Remove useless $type_url_len
2017-09-20 22:59:13 -07:00
Joshua Haberman
eade82c836 Merge pull request #3639 from zanker/zanker/fix-embedded-to_h
Fixed to_h with repeated messages to return hashes in Ruby
2017-09-20 15:35:28 -07:00
Zachary Anker
8eae3fe6e9 Update message.c 2017-09-20 12:45:42 -07:00
Zachary Anker
87714836e3 Allow initializing a chain of protos using only a hash 2017-09-20 11:39:46 -07:00
Zachary Anker
83264bd160 Fixed to_h with repeated messages to return hashes in Ruby 2017-09-20 11:38:05 -07:00
Feng Xiao
cf1b29dec8 Merge pull request #2377 from mcos/chore/conformance-null-tests
Conformance Tests for Null Timestamp and Duration JSON Values
2017-09-19 22:35:27 -07:00
Adam Cozzette
fa5a69e73b Merge pull request #3624 from acozzette/down-integrate
Integrated internal changes from Google
2017-09-18 08:34:54 -07:00
Jisi Liu
655cc830d9 Merge pull request #3651 from pherl/3.4.x
Bumping minor version for ruby gems
2017-09-15 14:27:31 -07:00
Jisi Liu
2eb1bacc26 Bumping minor version for ruby gems 2017-09-15 13:57:16 -07:00
Paul Yang
5dd818cd22 Merge pull request #3612 from TeBoring/php-bug
Add prefix to php reserved keywords.
2017-09-15 09:20:23 -07:00
Jisi Liu
b04e5cba35 Merge pull request #3642 from pherl/3.4.x
Bump version for minor release
2017-09-14 12:24:28 -07:00
Jisi Liu
dba647a6b2 Bump version for minor release 2017-09-14 11:12:55 -07:00
drivehappy
e3be1febf2 Clang warning cleanup for unused parameter. 2017-09-14 10:14:57 -07:00
Adam Cozzette
13fd045dbb Integrated internal changes from Google 2017-09-14 10:03:57 -07:00
Feng Xiao
d1bc27caef Merge pull request #3626 from xfxyjwf/fixgo
Fix go example test.
2017-09-13 17:57:10 -07:00
Feng Xiao
8136ccb296 Fix go example test.
It needs "-I" flag to find imported file google/protobuf/timestamp.proto
2017-09-13 17:04:13 -07:00
Feng Xiao
c0d88ae300 Merge pull request #3635 from drivehappy/clang_cleanup
Clang warning cleanup for unused parameter.
2017-09-13 16:40:01 -07:00
drivehappy
7f3ded663b Clang warning cleanup for unused parameter. 2017-09-13 16:10:35 -07:00
Feng Xiao
471b45e895 Merge pull request #3158 from yeswalrus/fix-policy-warning
Fix policy warning CMP0054
2017-09-13 15:15:04 -07:00
Paul Yang
3d78561402 Merge pull request #3634 from TeBoring/ruby-bug
Cherry pick bug fix for ruby
2017-09-13 14:37:18 -07:00
Aaron Patterson
a459b224b5 Storing the frame on the map means we don't need the array 2017-09-13 14:28:02 -07:00
Aaron Patterson
c1dd8e85a1 Move parse frame array to the Map object
This makes the frame stack per-parser, and per-thread.  Fixes #3250
2017-09-13 14:27:52 -07:00
Paul Yang
8741da3e45 Revert "Fix js conformance tests. (#3604)" (#3633)
This reverts commit 2bd55a9fbc.
2017-09-13 14:23:59 -07:00
Bo Yang
a425dd97f2 Rename ClassNamePrefix to ConstantNamePrefix 2017-09-13 10:45:37 -07:00
Paul Yang
2bd55a9fbc Fix js conformance tests. (#3604)
* Fix js conformance tests.

* Remove old incorrect compatibility tests
2017-09-12 15:09:47 -07:00
Bo Yang
f46a01d0c1 Exclude valid constant name from reserved name. 2017-09-12 15:04:34 -07:00
Jan Tattermusch
06aa8dc9e7 Merge pull request #3621 from jtattermusch/upport_3596
Google.Protobuf should target net45 (upport to upstream/master)
2017-09-12 22:46:52 +02:00
Feng Xiao
ed0a07eadd Merge pull request #3618 from hesmar/fix_protobuf_generate
fix protobuf_generate function
2017-09-12 11:09:02 -07:00
Jan Tattermusch
5de05654aa Google.Protobuf should target net45 2017-09-12 11:56:34 +02:00
Markus Heß
444aecd35a fix protobuf_generate function 2017-09-12 10:00:04 +02:00
Feng Xiao
b1befb08c0 Merge pull request #3613 from xfxyjwf/bazel_examples
Add bazel support for examples.
2017-09-11 18:19:06 -07:00
Feng Xiao
6945203300 Exclude addressbook.proto from C# boostrap test.
This addressbook.proto now belongs to its own bazel pacakge and can't be
accessed in bazel protobuf_test target.
2017-09-11 17:00:11 -07:00
Bo Yang
ddb9ef9cc3 Change array to map for reserved names in c extension 2017-09-11 15:51:57 -07:00