aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/common.cc
Commit message (Collapse)AuthorAge
* Merge pull request #4882 from google/3.6.xGravatar Adam Cozzette2018-07-09
|\ | | | | Merge 3.6.x into master
| * Fix initialization with Visual StudioGravatar Adam Cozzette2018-07-06
| | | | | | | | | | | | | | | | | | | | | | | | It appears that Visual Studio does not work well with std::once_flag because it has a bug causing it to initialize that during dynamic initialization instead of constant initialization. This change works around the problem by using function static initializers instead. @gerben-s originally wrote this change for the Google-internal codebase but I am just cherry-picking it here. This fixes #4773.
* | Remove the executable bit from several source code filesGravatar Sebastian Schuberth2018-06-25
|/ | | | This potentially avoids compiler warnings.
* Integrated internal changes from GoogleGravatar Adam Cozzette2018-03-13
|
* Removed using statements from common.hGravatar Adam Cozzette2018-01-26
| | | | | | These statements pulled a bunch of symbols from the std namespace into the global namespace. This commit removes all of them except for std::string, which is a bit trickier to remove.
* Add destructors for default instances to the shutdown code.Gravatar Gerben Stavenga2017-08-02
| | | | Verified test succeed under draconian heap checker
* Merge from Google internal for 3.4 releaseGravatar Jisi Liu2017-07-18
|
* Send all protobuf logging to logcat by default on AndroidGravatar Adam Cozzette2016-12-07
| | | | | | | | | | | Currently the default for protobuf on Android is to silently drop all log messages. This makes debugging difficult because things like GOOGLE_LOG(FATAL) will crash the process without actually logging a useful error. This CL changes the logging so that by default we send messages for all log levels to logcat (and stderr). Users can override this by setting GOOGLE_PROTOBUF_MIN_LOG_LEVEL. Also, that option was not being respected for non-Android platforms so I went ahead and fixed that to make things consistent.
* Down-integrate from internal branch.Gravatar Jisi Liu2015-08-21
| | | | Change-Id: Ieb7a2c2fbf35bc2a8fa65b915a5ecb68c83863e4
* Merge pull request #501 from xfxyjwf/downGravatar Feng Xiao2015-06-17
|\ | | | | Down-integrate from internal code base.
| * Fix broken builds.Gravatar Feng Xiao2015-06-17
| |
* | Make the code independent of config.hGravatar Jisi Liu2015-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | Now the Build tool needs to define -DHAVE_ZLIB and -DHAVE-PTHREAD rather than providing a config.h - Make pbconfig.h a manually written file to handle hash conditions according to platform related macros. - Remove #include "config.h" from source code. - Changed the configure.ac and Makefile.am to pass down the macros. - Change cmake to pass down the the macros. Change-Id: I537249d5df8fdeba189706aec436d1ab1104a4dc
| * Down-integrate from internal code base.Gravatar Feng Xiao2015-06-15
|/ | | | | | [ci skip] Change-Id: I9391c09640e0b0b2b21c45a97a1fc91814d95c5d
* Down-integrate from internal code base.Gravatar Feng Xiao2014-11-10
|
* Replace links to code.google.com/protobuf with ↵Gravatar Feng Xiao2014-10-01
| | | | developers.google.com/protocol-buffers
* Down-integrate pending changes from internal repository after previous release.Gravatar liujisi@google.com2014-05-28
|
* Down-integrate form internal opensource branchGravatar liujisi@google.com2012-12-19
|
* Make PROTOBUF_USE_EXCEPTIONS configurable from CPPFLAGS.Gravatar liujisi@google.com2012-12-04
|
* Fix issues: 342, 424, 428, 430, 436Gravatar xiaofeng@google.com2012-12-04
|
* Down-integrate from internal branchGravatar xiaofeng@google.com2012-09-22
|
* Add new files for vcprojs, fix issues: 165, 211, 228, 240Gravatar liujisi@google.com2010-12-07
|
* Fix issues: 200 202 211 215 237 246.Gravatar liujisi@google.com2010-12-06
|
* Decouple strutil from C++ lite library for a further 23k reduction.Gravatar kenton@google.com2009-07-29
|
* Fix compile error on Cygwin, where int32 is typedefed to long instead of ↵Gravatar kenton@google.com2009-05-06
| | | | int, and the compiler can't figure out which overload of this method to use in that case.
* Provide ShutdownProtobufLibrary() which frees all startup-allocated objects.Gravatar kenton@google.com2009-05-06
|
* Fix initialization ordering problem in logging code. Based on patch from ↵Gravatar kenton@google.com2009-04-18
| | | | Wink Saville.
* Integrate changes from internal Google-internal branch.Gravatar kenton@google.com2008-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | General * License changed from Apache 2.0 to New BSD. * It is now possible to define custom "options", which are basically annotations which may be placed on definitions in a .proto file. For example, you might define a field option called "foo" like so: import "google/protobuf/descriptor.proto" extend google.protobuf.FieldOptions { optional string foo = 12345; } Then you annotate a field using the "foo" option: message MyMessage { optional int32 some_field = 1 [(foo) = "bar"] } The value of this option is then visible via the message's Descriptor: const FieldDescriptor* field = MyMessage::descriptor()->FindFieldByName("some_field"); assert(field->options().GetExtension(foo) == "bar"); This feature has been implemented and tested in C++ and Java. Other languages may or may not need to do extra work to support custom options, depending on how they construct descriptors. C++ * Fixed some GCC warnings that only occur when using -pedantic. * Improved static initialization code, making ordering more predictable among other things. * TextFormat will no longer accept messages which contain multiple instances of a singular field. Previously, the latter instance would overwrite the former. * Now works on systems that don't have hash_map. Python * Strings now use the "unicode" type rather than the "str" type. String fields may still be assigned ASCII "str" values; they will automatically be converted. * Adding a property to an object representing a repeated field now raises an exception. For example: # No longer works (and never should have). message.some_repeated_field.foo = 1
* Initial checkin.Gravatar temporal2008-07-10