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
fe97d79a
Commit
fe97d79a
authored
Mar 30, 2017
by
Feng Xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MSVC DLL build.
parent
fab8812c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
8 deletions
+10
-8
extension_set.h
src/google/protobuf/extension_set.h
+1
-3
extension_set_heavy.cc
src/google/protobuf/extension_set_heavy.cc
+4
-0
generated_message_reflection.h
src/google/protobuf/generated_message_reflection.h
+1
-1
generated_message_util.h
src/google/protobuf/generated_message_util.h
+1
-1
map_entry.h
src/google/protobuf/map_entry.h
+1
-1
map_entry_lite.h
src/google/protobuf/map_entry_lite.h
+2
-2
No files found.
src/google/protobuf/extension_set.h
View file @
fe97d79a
...
...
@@ -438,9 +438,7 @@ class LIBPROTOBUF_EXPORT ExtensionSet {
// SpaceUsed()).
size_t
SpaceUsedExcludingSelfLong
()
const
;
int
SpaceUsedExcludingSelf
()
const
{
return
internal
::
FromIntSize
(
SpaceUsedExcludingSelfLong
());
}
int
SpaceUsedExcludingSelf
()
const
;
private
:
...
...
src/google/protobuf/extension_set_heavy.cc
View file @
fe97d79a
...
...
@@ -340,6 +340,10 @@ bool ExtensionSet::ParseMessageSet(io::CodedInputStream* input,
}
}
int
ExtensionSet
::
SpaceUsedExcludingSelf
()
const
{
return
internal
::
FromIntSize
(
SpaceUsedExcludingSelfLong
());
}
size_t
ExtensionSet
::
SpaceUsedExcludingSelfLong
()
const
{
size_t
total_size
=
extensions_
.
size
()
*
sizeof
(
ExtensionMap
::
value_type
);
...
...
src/google/protobuf/generated_message_reflection.h
View file @
fe97d79a
...
...
@@ -255,7 +255,7 @@ struct MigrationSchema {
// of whatever type the individual field would be. Strings and
// Messages use RepeatedPtrFields while everything else uses
// RepeatedFields.
class
GeneratedMessageReflection
PROTOBUF_FINAL
:
public
Reflection
{
class
LIBPROTOBUF_EXPORT
GeneratedMessageReflection
PROTOBUF_FINAL
:
public
Reflection
{
public
:
// Constructs a GeneratedMessageReflection.
// Parameters:
...
...
src/google/protobuf/generated_message_util.h
View file @
fe97d79a
...
...
@@ -177,7 +177,7 @@ LIBPROTOBUF_EXPORT inline const ::std::string& GetEmptyString() {
return
GetEmptyStringAlreadyInited
();
}
size_t
StringSpaceUsedExcludingSelfLong
(
const
string
&
str
);
LIBPROTOBUF_EXPORT
size_t
StringSpaceUsedExcludingSelfLong
(
const
string
&
str
);
// True if IsInitialized() is true for all elements of t. Type is expected
...
...
src/google/protobuf/map_entry.h
View file @
fe97d79a
...
...
@@ -83,7 +83,7 @@ namespace internal {
template
<
typename
Derived
,
typename
Key
,
typename
Value
,
WireFormatLite
::
FieldType
kKeyFieldType
,
WireFormatLite
::
FieldType
kValueFieldType
,
int
default_enum_value
>
class
LIBPROTOBUF_EXPORT
MapEntry
class
MapEntry
:
public
MapEntryImpl
<
Derived
,
Message
,
Key
,
Value
,
kKeyFieldType
,
kValueFieldType
,
default_enum_value
>
{
public
:
...
...
src/google/protobuf/map_entry_lite.h
View file @
fe97d79a
...
...
@@ -92,7 +92,7 @@ struct MoveHelper<false, false, true, T> { // strings and similar
template
<
typename
Derived
,
typename
Base
,
typename
Key
,
typename
Value
,
WireFormatLite
::
FieldType
kKeyFieldType
,
WireFormatLite
::
FieldType
kValueFieldType
,
int
default_enum_value
>
class
LIBPROTOBUF_EXPORT
MapEntryImpl
:
public
Base
{
class
MapEntryImpl
:
public
Base
{
protected
:
// Provide utilities to parse/serialize key/value. Provide utilities to
// manipulate internal stored type.
...
...
@@ -537,7 +537,7 @@ class LIBPROTOBUF_EXPORT MapEntryImpl : public Base {
template
<
typename
Key
,
typename
Value
,
WireFormatLite
::
FieldType
kKeyFieldType
,
WireFormatLite
::
FieldType
kValueFieldType
,
int
default_enum_value
>
class
LIBPROTOBUF_EXPORT
MapEntryLite
class
MapEntryLite
:
public
MapEntryImpl
<
MapEntryLite
<
Key
,
Value
,
kKeyFieldType
,
kValueFieldType
,
default_enum_value
>
,
MessageLite
,
Key
,
Value
,
kKeyFieldType
,
...
...
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