aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* print() function for Python 3cclauss2017-08-181-10/+14
|
* print() function and lose the semicolons (;)cclauss2017-08-181-4/+7
|
* from __future__ import print_functioncclauss2017-08-181-8/+11
| | | The future import is required to support the print(x, end=" ") parameter in Python 2.
* print() function & define raw_input() for Python 3cclauss2017-08-181-3/+10
|
* file() was removed in Python 3, use open() insteadcclauss2017-08-181-2/+2
| | | http://python-future.org/compatible_idioms.html#file
* Merge pull request #3511 from cclauss/patch-3Jie Luo2017-08-171-1/+1
|\ | | | | Old style exception --> new style exception
| * Old style exception --> new style exceptioncclauss2017-08-171-1/+1
|/
* Merge pull request #3494 from drivehappy/clang_warning_macroJisi Liu2017-08-151-2/+5
|\ | | | | Fixing -Wexpansion-to-defined Clang warning
| * Fixing warning under Clang 6.x (-Wexpansion-to-defined) where the macro ↵drivehappy2017-08-151-2/+5
|/ | | | expansion producing 'defined' was warning on undefined behavior.
* Detect invalid tags with a field number of 0 in C#Jon Skeet2017-08-113-7/+16
| | | | | | | | Previously we only rejected the tag if the tag itself was 0, i.e. field=0, type=varint. The type doesn't matter: field 0 is always invalid. This removes the last of the C# conformance failures.
* Merge pull request #3480 from bklarson/masterFeng Xiao2017-08-101-21/+14
|\ | | | | Clean up typedefs for Atomic32/Atomic64
| * Clean up typedefs for Atomic32/Atomic64Brad Larson2017-08-101-21/+14
|/ | | | | | | | | | | | The typedefs for Atomic32 and Atomic64 were sometimes causing Atomic32 to be an int32 rather than an intptr_t on 32-bit platforms. On some of these platforms (ARM/CortexM building with GCC 6 in one case) int32 is a long int, while intptr_t is an int, which causes a compiler error even though long int and int are both 4 bytes. Having Atomic32 always be intptr_t on 32-bit platforms and Atomic64 always be intptr_t on 64-bit platforms should resolve any of these types of errors.
* Merge pull request #3473 from AlanBurlison/masterFeng Xiao2017-08-081-1/+1
|\ | | | | PROTBUF-3394 Potential SIGBUS with UnsafeUtil.getLong
| * PROTBUF-3394 Potential SIGBUS with UnsafeUtil.getLongalanbur2017-08-081-1/+1
| |
* | Merge pull request #3467 from thomasvl/bump_xcode_versionThomas Van Lenten2017-08-082-4/+2
|\ \ | |/ |/| Xcode 8.3.x cleanups and use on travis
| * Move travis to the Xcode 8.3 (8.3.3) image.Thomas Van Lenten2017-08-071-1/+1
| |
| * Fix up Xcode 8.3.x support.Thomas Van Lenten2017-08-071-3/+1
| | | | | | | | | | | | | | | | | | | | - Xcode 8.3.3 bumped the simulators to 10.3.1, so 10.3 fails. Just use the "latest" naming instead to avoid issues. - Also switch to just testing an old 32bit build and new 64bit build as there isn't any code in protobuf that should care about form facts. (Looks like the iPad Pro simulator names aren't always constantly, on some developer machines they are "iPad Pro (9.7 inch)" while on others they are "iPad Pro (9.7-inch)"; so just avoid using them.)
* | Merge pull request #3454 from anandolee/masterJie Luo2017-08-074-8/+16
|\ \ | | | | | | Add python 2.6 test back for cpp implementation.
| * | PY26 tests compatibilityJie Luo2017-08-042-4/+12
| | | | | | | | | | | | | | | | | | | | | 1, Some tests in reflection_test PY26 raise TypeError but other versions raise ValueError for convert negative long to unsigned 2, Change compare exception type to compare exception str for testDuplicateExtensionNumber. Original code raise 'Double registration of Extensions' is not an instance of (<type 'exceptions.AssertionError'>, <type 'exceptions.ValueError'>) for PY26 cpp implementation t
| * | Skip setUpClass which is newly added in python2.7 for python2.6Jie Luo2017-08-041-2/+3
| | |
| * | Add python 2.6 test back for cpp implementation. Json format issue was fixed ↵Jie Luo2017-08-031-2/+1
| | | | | | | | | | | | in #869
* | | Merge pull request #3465 from vladmos/list_plus_equalsFeng Xiao2017-08-071-3/+3
|\ \ \ | | | | | | | | Make .bzl files compatible with future versions of Bazel
| * | | Make .bzl files compatible with future versions of BazelVladimir Moskva2017-08-071-3/+3
|/ / /
* | | Update commit id in Dockerfile to reflect change in #3391 (#3459)Paul Yang2017-08-042-2/+2
| | |
* | | Fix the bug in php c extension that setting one field can change ↵Paul Yang2017-08-047-33/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | another field's value. (#3455) * Fix the bug in php c extension that setting one field can change another field's value. The reason is that previously, in c extension, it was assumed that the order that fields were declared in php is the same as the order of fields in upb. This is not true. Now, for every field in upb, we will look up the actual property that is corresponding to the upb field. * Cleanup pull request * Fix indentation * Port to php5 * Port with php7.1 * Port to zts
* | | Update PHP descriptors (#3391)michaelbausor2017-08-0417-21/+617
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add descriptors test * Update descriptors tests * Add public descriptors * Add test_desriptors.proto to test script * Update composer files * Remove references to GPBType, update tests to be compatible with c * Update for c extension compatibility * Remove nested enums for descriptor, update tests * Strip leading '.' from descriptor name * Update tests with test for getClass, fix OneofDescriptor * Add new files to Makefile.am
* | | Merge pull request #3456 from giorgioazzinnaro/patch-1Feng Xiao2017-08-041-0/+1
|\ \ \ | | | | | | | | Update third party addons with ProfaneDB
| * | | Update third party addons with ProfaneDBGiorgio Azzinnaro2017-08-041-0/+1
|/ / / | | | | | | | | | I added my project ProfaneDB, it is a database for Protocol Buffers objects. Written in C++, it uses gRPC as an interface for other languages. It is still work in progress, but I'd love to get some feedback on it while I progress!
* | | Add getClass for php Descriptor in c extension (#3443)Paul Yang2017-08-023-1/+16
| | |
* | | Fixing HHVM Compatibility (#3437)Ryan Gordon2017-08-021-4/+2
| | |
* | | Expose descriptor API in php c extension (#3422)Paul Yang2017-08-028-27/+841
| | |
* | | Change divideInt64ToInt32 to static (#3436)Tony Wong2017-08-011-1/+1
| | | | | | | | | | | | | | | divideInt64ToInt32 is called statically from protobuf/php/src/Google/Protobuf/Internal/CodedOutputStream.php (the only reference) This causes fatal error in PHP 7.1 (32-bit only because 64-bit doesn't use this function)
* | | Removes unnecessary pass-by-references in PHP internal classes (#3433)Brent Shaffer2017-08-013-10/+10
| | |
* | | Merge pull request #3429 from king6cong/masterFeng Xiao2017-07-312-1/+8
|\ \ \ | |_|/ |/| | Add classpath for java example Makefile
| * | Add classpath for java example Makefileking6cong2017-07-312-1/+8
|/ /
* | Merge pull request #3421 from thomasvl/update_commentThomas Van Lenten2017-07-263-5/+9
|\ \ | | | | | | Update the comment on the message_type to cover what it should be.
| * | Update the comment on the message_type to cover what it should be.Thomas Van Lenten2017-07-263-5/+9
|/ /
* | Merge pull request #3420 from thomasvl/objc_proto2_conformanceThomas Van Lenten2017-07-263-23/+26
|\ \ | | | | | | Objc proto2 conformance test support
| * | Review feedback.Thomas Van Lenten2017-07-261-8/+6
| | | | | | | | | | | | | | | - Better error message for unknown messageType. - Remove unneeded if.
| * | Add the proto2 message conformance support for ObjC.Thomas Van Lenten2017-07-261-10/+12
| | |
| * | Generate the proto2 test file and link it in for ObjC.Thomas Van Lenten2017-07-261-9/+11
| | |
| * | Add a objc_class_prefix to test_messages_proto3.proto.Thomas Van Lenten2017-07-262-3/+4
|/ / | | | | | | | | | | | | | | | | | | Both test_messages_proto3.proto & test_messages_proto2.proto define message ForeignMessage {...} and enum ForeignEnum {...} but since objc doesn't use the proto package in the naming, these end up conflicting. Adding the objc_class_prefix option to the proto3 file ensure the generated objc types are all unique.
* | Merge pull request #3410 from adam-26/1745Adam Cozzette2017-07-251-0/+1
|\ \ | | | | | | Fix issue #1745 - javascript allow dot in filename
| * | Fix quotation marksAdam2017-07-241-1/+1
| | |
| * | Fix issue #1745 - javascript allow dot in filenameAdam2017-07-241-0/+1
| | |
* | | need for php math functions. used in mergeFromJsonString (#3409)Sergey2017-07-251-0/+3
| | |
* | | Merge pull request #3407 from bklarson/masterAdam Cozzette2017-07-2515-1/+29
|\ \ \ | | | | | | | | Add declaration for AddDescriptorsImpl()
| * | | Put AddDescriptorsImpl() in anonymous namespaceBrad Larson2017-07-2414-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AddDescriptorsImpl() is a private static implementation detail, and needs to be declared but won't be used from outside the source file. Place it inside an anonymous namespace to fix a previous build error that would result in more restrictive build enviornments that use -Werror=missing-declarations or similar compiler flags.
| * | | Add -Werror=missing-declarations to test buildsBrad Larson2017-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Treat missing declarations as an error for test builds, to prevent future updates which add functions without properly declaring them. This will prevent broken builds in more restrictive build environments.
* | | | Fix cycle dependency for repeated field not collected by gc (#3399)Paul Yang2017-07-258-64/+243
| |_|/ |/| |