Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
b262575b
Commit
b262575b
authored
Feb 18, 2015
by
Chris Fallin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #212 from haberman/update-from-google
Integrated changes from Google opensource branch.
parents
2cb2358c
55cf8abe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
13 deletions
+33
-13
configure.ac
configure.ac
+1
-1
arena.h
src/google/protobuf/arena.h
+2
-0
parser_unittest.cc
src/google/protobuf/compiler/parser_unittest.cc
+21
-7
python_generator.cc
src/google/protobuf/compiler/python/python_generator.cc
+3
-2
python_generator.h
src/google/protobuf/compiler/python/python_generator.h
+2
-1
ruby_generator.cc
src/google/protobuf/compiler/ruby/ruby_generator.cc
+2
-1
map_entry.h
src/google/protobuf/map_entry.h
+2
-1
No files found.
configure.ac
View file @
b262575b
...
...
@@ -54,7 +54,7 @@ AC_PROG_CC
AC_PROG_CXX
AC_LANG([C++])
ACX_USE_SYSTEM_EXTENSIONS
AM_PROG_AR
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_CONDITIONAL(GCC, test "$GCC" = yes) # let the Makefile know if we're gcc
# test_util.cc takes forever to compile with GCC and optimization turned on.
...
...
src/google/protobuf/arena.h
View file @
b262575b
...
...
@@ -313,6 +313,8 @@ class LIBPROTOBUF_EXPORT Arena {
static
const
size_t
kHeaderSize
=
sizeof
(
Block
);
static
google
::
protobuf
::
internal
::
SequenceNumber
lifecycle_id_generator_
;
#ifdef PROTOBUF_USE_DLLS
// Thread local variables cannot be exposed through DLL interface but we can
// wrap them in static functions.
static
ThreadCache
&
thread_cache
();
#else
static
GOOGLE_THREAD_LOCAL
ThreadCache
thread_cache_
;
...
...
src/google/protobuf/compiler/parser_unittest.cc
View file @
b262575b
...
...
@@ -401,13 +401,27 @@ TEST_F(ParseMessageTest, FieldDefaults) {
" field { type:TYPE_BOOL default_value:
\"
true
\"
"
ETC
" }"
" field { type_name:
\"
Foo
\"
default_value:
\"
FOO
\"
"
ETC
" }"
" field { type:TYPE_INT32 default_value:
\"
2147483647
\"
"
ETC
" }"
" field { type:TYPE_INT32 default_value:
\"
-2147483648
\"
"
ETC
" }"
" field { type:TYPE_UINT32 default_value:
\"
4294967295
\"
"
ETC
" }"
" field { type:TYPE_INT64 default_value:
\"
9223372036854775807
\"
"
ETC
" }"
" field { type:TYPE_INT64 default_value:
\"
-9223372036854775808
\"
"
ETC
" }"
" field { type:TYPE_UINT64 default_value:
\"
18446744073709551615
\"
"
ETC
" }"
" field { type:TYPE_DOUBLE default_value:
\"
43981
\"
"
ETC
" }"
" field {"
" type:TYPE_INT32 default_value:
\"
2147483647
\"
"
ETC
" }"
" field {"
" type:TYPE_INT32 default_value:
\"
-2147483648
\"
"
ETC
" }"
" field {"
" type:TYPE_UINT32 default_value:
\"
4294967295
\"
"
ETC
" }"
" field {"
" type:TYPE_INT64 default_value:
\"
9223372036854775807
\"
"
ETC
" }"
" field {"
" type:TYPE_INT64 default_value:
\"
-9223372036854775808
\"
"
ETC
" }"
" field {"
" type:TYPE_UINT64 default_value:
\"
18446744073709551615
\"
"
ETC
" }"
" field {"
" type:TYPE_DOUBLE default_value:
\"
43981
\"
"
ETC
" }"
"}"
);
#undef ETC
}
...
...
src/google/protobuf/compiler/python/python_generator.cc
View file @
b262575b
...
...
@@ -581,14 +581,15 @@ void Generator::PrintServiceDescriptor(
}
void
Generator
::
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
)
const
{
void
Generator
::
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
)
const
{
printer_
->
Print
(
"$descriptor_key$ = $descriptor_name$,
\n
"
,
"descriptor_key"
,
kDescriptorKey
,
"descriptor_name"
,
ModuleLevelServiceDescriptorName
(
descriptor
));
printer_
->
Print
(
"__module__ = '$module_name$'
\n
"
,
"module_name"
,
ModuleName
(
file_
->
name
()));
"module_name"
,
ModuleName
(
file_
->
name
()));
}
void
Generator
::
PrintServiceClass
(
const
ServiceDescriptor
&
descriptor
)
const
{
...
...
src/google/protobuf/compiler/python/python_generator.h
View file @
b262575b
...
...
@@ -127,7 +127,8 @@ class LIBPROTOC_EXPORT Generator : public CodeGenerator {
void
PrintServiceDescriptor
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintServiceClass
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintServiceStub
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintDescriptorKeyAndModuleName
(
const
ServiceDescriptor
&
descriptor
)
const
;
void
PrintEnumValueDescriptor
(
const
EnumValueDescriptor
&
descriptor
)
const
;
string
OptionsValue
(
const
string
&
class_name
,
...
...
src/google/protobuf/compiler/ruby/ruby_generator.cc
View file @
b262575b
...
...
@@ -378,7 +378,8 @@ bool Generator::Generate(
std
::
string
filename
=
StripDotProto
(
file
->
name
())
+
".rb"
;
scoped_ptr
<
io
::
ZeroCopyOutputStream
>
output
(
generator_context
->
Open
(
filename
));
scoped_ptr
<
io
::
ZeroCopyOutputStream
>
output
(
generator_context
->
Open
(
filename
));
io
::
Printer
printer
(
output
.
get
(),
'$'
);
GenerateFile
(
file
,
&
printer
);
...
...
src/google/protobuf/map_entry.h
View file @
b262575b
...
...
@@ -45,7 +45,8 @@ namespace internal {
// Register all MapEntry default instances so we can delete them in
// ShutdownProtobufLibrary().
void
LIBPROTOBUF_EXPORT
RegisterMapEntryDefaultInstance
(
MessageLite
*
default_instance
);
void
LIBPROTOBUF_EXPORT
RegisterMapEntryDefaultInstance
(
MessageLite
*
default_instance
);
// This is the common base class for MapEntry. It is used by MapFieldBase in
// reflection api, in which the static type of key and value is unknown.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment