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
117064c1
Commit
117064c1
authored
Jan 11, 2013
by
liujisi@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing dll export macros for msvc.
parent
71caf8c2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
java_doc_comment.h
src/google/protobuf/compiler/java/java_doc_comment.h
+1
-1
subprocess.h
src/google/protobuf/compiler/subprocess.h
+1
-1
message.cc
src/google/protobuf/message.cc
+2
-2
once.h
src/google/protobuf/stubs/once.h
+1
-0
stringprintf.h
src/google/protobuf/stubs/stringprintf.h
+6
-6
No files found.
src/google/protobuf/compiler/java/java_doc_comment.h
View file @
117064c1
...
@@ -59,7 +59,7 @@ void WriteMethodDocComment(io::Printer* printer,
...
@@ -59,7 +59,7 @@ void WriteMethodDocComment(io::Printer* printer,
const
MethodDescriptor
*
method
);
const
MethodDescriptor
*
method
);
// Exposed for testing only.
// Exposed for testing only.
string
EscapeJavadoc
(
const
string
&
input
);
LIBPROTOC_EXPORT
string
EscapeJavadoc
(
const
string
&
input
);
}
// namespace java
}
// namespace java
}
// namespace compiler
}
// namespace compiler
...
...
src/google/protobuf/compiler/subprocess.h
View file @
117064c1
...
@@ -53,7 +53,7 @@ class Message;
...
@@ -53,7 +53,7 @@ class Message;
namespace
compiler
{
namespace
compiler
{
// Utility class for launching sub-processes.
// Utility class for launching sub-processes.
class
Subprocess
{
class
LIBPROTOC_EXPORT
Subprocess
{
public
:
public
:
Subprocess
();
Subprocess
();
~
Subprocess
();
~
Subprocess
();
...
...
src/google/protobuf/message.cc
View file @
117064c1
...
@@ -188,7 +188,7 @@ bool Message::SerializePartialToOstream(ostream* output) const {
...
@@ -188,7 +188,7 @@ bool Message::SerializePartialToOstream(ostream* output) const {
Reflection
::~
Reflection
()
{}
Reflection
::~
Reflection
()
{}
#define HANDLE_TYPE(TYPE, CPPTYPE, CTYPE) \
#define HANDLE_TYPE(TYPE, CPPTYPE, CTYPE) \
template<>
\
template<>
LIBPROTOBUF_EXPORT
\
const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
const Message& message, const FieldDescriptor* field) const { \
const Message& message, const FieldDescriptor* field) const { \
return *static_cast<RepeatedField<TYPE>* >( \
return *static_cast<RepeatedField<TYPE>* >( \
...
@@ -196,7 +196,7 @@ const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
...
@@ -196,7 +196,7 @@ const RepeatedField<TYPE>& Reflection::GetRepeatedField<TYPE>( \
field, CPPTYPE, CTYPE, NULL)); \
field, CPPTYPE, CTYPE, NULL)); \
} \
} \
\
\
template<>
\
template<>
LIBPROTOBUF_EXPORT
\
RepeatedField<TYPE>* Reflection::MutableRepeatedField<TYPE>( \
RepeatedField<TYPE>* Reflection::MutableRepeatedField<TYPE>( \
Message* message, const FieldDescriptor* field) const { \
Message* message, const FieldDescriptor* field) const { \
return static_cast<RepeatedField<TYPE>* >( \
return static_cast<RepeatedField<TYPE>* >( \
...
...
src/google/protobuf/stubs/once.h
View file @
117064c1
...
@@ -118,6 +118,7 @@ typedef internal::AtomicWord ProtobufOnceType;
...
@@ -118,6 +118,7 @@ typedef internal::AtomicWord ProtobufOnceType;
#define GOOGLE_PROTOBUF_ONCE_INIT ::google::protobuf::ONCE_STATE_UNINITIALIZED
#define GOOGLE_PROTOBUF_ONCE_INIT ::google::protobuf::ONCE_STATE_UNINITIALIZED
LIBPROTOBUF_EXPORT
void
GoogleOnceInitImpl
(
ProtobufOnceType
*
once
,
Closure
*
closure
);
void
GoogleOnceInitImpl
(
ProtobufOnceType
*
once
,
Closure
*
closure
);
inline
void
GoogleOnceInit
(
ProtobufOnceType
*
once
,
void
(
*
init_func
)())
{
inline
void
GoogleOnceInit
(
ProtobufOnceType
*
once
,
void
(
*
init_func
)())
{
...
...
src/google/protobuf/stubs/stringprintf.h
View file @
117064c1
...
@@ -50,25 +50,25 @@ namespace google {
...
@@ -50,25 +50,25 @@ namespace google {
namespace
protobuf
{
namespace
protobuf
{
// Return a C++ string
// Return a C++ string
extern
string
StringPrintf
(
const
char
*
format
,
...);
LIBPROTOBUF_EXPORT
extern
string
StringPrintf
(
const
char
*
format
,
...);
// Store result into a supplied string and return it
// Store result into a supplied string and return it
extern
const
string
&
SStringPrintf
(
string
*
dst
,
const
char
*
format
,
...);
LIBPROTOBUF_EXPORT
extern
const
string
&
SStringPrintf
(
string
*
dst
,
const
char
*
format
,
...);
// Append result to a supplied string
// Append result to a supplied string
extern
void
StringAppendF
(
string
*
dst
,
const
char
*
format
,
...);
LIBPROTOBUF_EXPORT
extern
void
StringAppendF
(
string
*
dst
,
const
char
*
format
,
...);
// Lower-level routine that takes a va_list and appends to a specified
// Lower-level routine that takes a va_list and appends to a specified
// string. All other routines are just convenience wrappers around it.
// string. All other routines are just convenience wrappers around it.
extern
void
StringAppendV
(
string
*
dst
,
const
char
*
format
,
va_list
ap
);
LIBPROTOBUF_EXPORT
extern
void
StringAppendV
(
string
*
dst
,
const
char
*
format
,
va_list
ap
);
// The max arguments supported by StringPrintfVector
// The max arguments supported by StringPrintfVector
extern
const
int
kStringPrintfVectorMaxArgs
;
LIBPROTOBUF_EXPORT
extern
const
int
kStringPrintfVectorMaxArgs
;
// You can use this version when all your arguments are strings, but
// You can use this version when all your arguments are strings, but
// you don't know how many arguments you'll have at compile time.
// you don't know how many arguments you'll have at compile time.
// StringPrintfVector will LOG(FATAL) if v.size() > kStringPrintfVectorMaxArgs
// StringPrintfVector will LOG(FATAL) if v.size() > kStringPrintfVectorMaxArgs
extern
string
StringPrintfVector
(
const
char
*
format
,
const
vector
<
string
>&
v
);
LIBPROTOBUF_EXPORT
extern
string
StringPrintfVector
(
const
char
*
format
,
const
vector
<
string
>&
v
);
}
// namespace protobuf
}
// namespace protobuf
}
// namespace google
}
// namespace google
...
...
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