Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
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
glog
Commits
6d6d3187
Commit
6d6d3187
authored
Jan 22, 2019
by
Shinichiro Hamaji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run src/windows/preprocess.sh
parent
5d46e1bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
logging.h
src/windows/glog/logging.h
+10
-10
No files found.
src/windows/glog/logging.h
View file @
6d6d3187
...
...
@@ -935,7 +935,8 @@ struct CompileAssert {
struct
CrashReason
;
// Returns true if FailureSignalHandler is installed.
bool
IsFailureSignalHandlerInstalled
();
// Needs to be exported since it's used by the signalhandler_unittest.
GOOGLE_GLOG_DLL_DECL
bool
IsFailureSignalHandlerInstalled
();
}
// namespace glog_internal_namespace_
#define LOG_EVERY_N(severity, n) \
...
...
@@ -1107,16 +1108,11 @@ namespace base_logging {
// buffer to allow for a '\n' and '\0'.
class
GOOGLE_GLOG_DLL_DECL
LogStreamBuf
:
public
std
::
streambuf
{
public
:
// REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\
n
'.
// REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\
0
'.
LogStreamBuf
(
char
*
buf
,
int
len
)
{
setp
(
buf
,
buf
+
len
-
2
);
}
// Resets the buffer. Useful if we reuse it by means of TLS.
void
reset
()
{
setp
(
pbase
(),
epptr
());
}
// This effectively ignores overflow.
virtual
int_type
overflow
(
int_type
ch
)
{
return
ch
;
...
...
@@ -1155,9 +1151,14 @@ public:
// 2005 if you are deriving from a type in the Standard C++ Library"
// http://msdn.microsoft.com/en-us/library/3tdb471s(VS.80).aspx
// Let's just ignore the warning.
GLOG_MSVC_PUSH_DISABLE_WARNING
(
4275
)
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4275)
#endif
class
GOOGLE_GLOG_DLL_DECL
LogStream
:
public
std
::
ostream
{
GLOG_MSVC_POP_WARNING
()
#ifdef _MSC_VER
# pragma warning(pop)
#endif
public
:
LogStream
(
char
*
buf
,
int
len
,
int
ctr
)
:
std
::
ostream
(
NULL
),
...
...
@@ -1175,7 +1176,6 @@ GLOG_MSVC_POP_WARNING()
size_t
pcount
()
const
{
return
streambuf_
.
pcount
();
}
char
*
pbase
()
const
{
return
streambuf_
.
pbase
();
}
char
*
str
()
const
{
return
pbase
();
}
void
reset
()
{
streambuf_
.
reset
();
}
private
:
LogStream
(
const
LogStream
&
);
...
...
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