Yaz Saito on W541
d630221933
Allow permission line in /proc/self/map to be "rwx", not just "r-x". At
...
least in Ubuntu14, a binary file that's writable by the process owner
has permission "rwx", not "r-x".
2016-04-11 14:35:42 -07:00
mayah
821d3e806e
Run src/windows/preprocess.sh
...
src/windows/glog/logging.h is not generated by the current source.
Let me run src/windows/preprocess.sh and update the source.
2016-03-31 17:29:36 +09:00
Abhishek Dasgupta
b27d0420fb
Added support for PowerPC.
2016-03-21 11:28:53 +00:00
Fumitoshi Ukai
4d391fe692
use namespace GFLAGS_NAMESPACE instead namespace gflags
...
only signalhandler_unittest.cc uses "using namespace gflags".
others use "using namespace GFLAGS_NAMESPACE", so
signalhandler_unittest.cc does the same way.
fixes #62
2015-12-17 16:31:55 +09:00
Fumitoshi Ukai
a63f466c48
win: use _fdopen instead of fdopen
...
The POSIX function fdopen is deprecated.
Use the ISO C++ conformant _fdopen instead.
https://msdn.microsoft.com/library/ms235351.aspx
fixes #73
2015-12-17 15:40:25 +09:00
Fumitoshi Ukai
1256d28554
win: FAILED macro can't be used with HANDLE.
...
FAILED macro is for HRESULT, not for HANDLE.
FindFirstFile returns INVALID_HANDLE_VALUE when error or not found.
https://msdn.microsoft.com/library/windows/desktop/aa364418(v=vs.85).aspx
fixes #79
2015-12-17 15:36:40 +09:00
Fumitoshi Ukai
0312301143
avoid calling new/malloc in signalhandler.
...
FlushLogFilesUnsafe would be called in FailureSignalHandler,
so should avoid calling new/malloc, which are not signal safe.
fixes #78
2015-12-17 15:26:15 +09:00
Yoshisato Yanagisawa
cda16b3443
Reset SIGABRT action only if FailureSignalHandler is installed.
...
When I set my own signal handler to SIGABRT, it did not executed
with CHECK. That is because SIGABRT handler is reset to default
just before glog calls abort.
Let me make it reset only if the handler is what glog installed
i.e. FailureSignalHandler.
2015-11-26 16:19:22 +09:00
Robert Hencke
c10e6ec19c
Fix double-free in unit test on Windows.
...
The LOG_SYSRESULT refers to result twice. Since, in this test,
result expands to FindClose(handle), the handle was being freed twice.
2015-09-06 09:53:22 -04:00
Fumitoshi Ukai
85e5c6edad
Merge pull request #47 from sergiud/master
...
Allow to disable multithreading support using CMake
2015-08-12 16:09:02 +09:00
Fumitoshi Ukai
a94afc6807
Merge pull request #26 from theopolis/feature-mode-flag
...
[#23 ] Add logfile_mode to control logfile permissions
2015-08-12 16:05:28 +09:00
Teddy Reed
58438d398f
[ #23 ] Add logfile_mode to control logfile permissions
2015-08-10 16:49:33 -07:00
Sergiu Dotenco
cb5487d901
cmake: allow to disable multithreading support
...
This commit additionally enables threading for win32 by default.
2015-08-08 21:26:17 +02:00
Fumitoshi Ukai
f7691955e8
Merge pull request #35 from bsilver8192/fix-mocklog-unused-arguments
...
Fix mocklog unused arguments
2015-08-06 17:17:55 +09:00
Fumitoshi Ukai
254db0ae1b
Merge pull request #34 from bsilver8192/fix-macro-redefinition
...
Fix redefinition of _XOPEN_SOURCE.
2015-08-06 17:15:44 +09:00
Fumitoshi Ukai
cd37eec302
Merge pull request #20 from UbimoLTD/patch-1
...
Don't call RAW_VLOG with locking vmodule_lock
SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.
This causes deadlock/segfault.
fixes #29
2015-08-06 17:09:02 +09:00
Fumitoshi Ukai
8db3ff0b75
Merge pull request #12 from ukai/fix_leak
...
delete LogDestination::sinks_ at DeleteLogDestinations().
fixes #8
2015-08-06 16:57:51 +09:00
Fumitoshi Ukai
fe136448ff
Merge pull request #7 from sergiud/master
...
Add CMake support. closes #4
2015-08-06 16:53:55 +09:00
Sergiu Dotenco
5aee7c7899
added missing include
2015-07-15 22:35:00 +02:00
Sergiu Dotenco
856ff81a82
fixed vc 14.0 ctp 6 compilation error
2015-07-15 22:34:59 +02:00
Sergiu Dotenco
b561c94b19
determine gflags namespace automatically
2015-07-15 22:34:59 +02:00
Sergiu Dotenco
f9def39a46
do not redefine snprintf if it's already available
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
fa4c5b50a9
do not redefine stl logging macros
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
ea628ae809
allow to define TEST_SRC_DIR as a macro
2015-07-15 22:34:58 +02:00
Sergiu Dotenco
3325258036
allow to use __declspec(noreturn)
2015-07-15 22:34:57 +02:00
Sergiu Dotenco
3d9fea9e84
export the Demangle function
2015-07-15 22:34:57 +02:00
Sergiu Dotenco
3c49b93201
added cmake support
2015-07-15 22:34:44 +02:00
Brian Silverman
beb55fa825
Fix redefinition of _XOPEN_SOURCE.
...
Under Debian Jessie, I get a warning about redefining _XOPEN_SOURCE
which is easy to fix.
2015-06-16 16:50:57 -07:00
Brian Silverman
180eaff781
Fix unused arguments warning in ScopedMockLog.
2015-06-16 16:50:01 -07:00
romange
2c5038470b
Update vlog_is_on.cc
...
SetVLOGLevel locks vmodule_lock however RAW_VLOG at the end also implicitly locks it via InitVLOG3__.
This causes deadlock/segfault.
2015-04-30 20:28:32 +03:00
Fumitoshi Ukai
ed072a55b8
don't remove sinks_ elements.
2015-04-11 00:05:05 +09:00
Abhishek Parmar
701dd7120d
Guard GOOGLE_PREDICT_TRUE|FALS with #ifndef to avoid collision with other google opensource projects like protobuf.
2015-04-08 10:19:06 -07:00
Fumitoshi Ukai
9c2acaaa49
delete LogDestination::sinks_ at DeleteLogDestinations().
...
fixes #8 AddLogSink memory leak
2015-03-27 17:23:20 +09:00
Fumitoshi Ukai
1b0b08c8dd
Merge pull request #10 from jmr/std_vector
...
LOG_STRING: use std::vector and std::string.
2015-03-27 16:43:58 +09:00
Jesse Rosenstock
162a8ef4ea
LOG_STRING: use std::vector and std::string.
...
Previously, plain vector and string were used.
This assumed that there were "using" directives or
declarations before the macro was used. This will
not always be the case.
2015-03-26 14:25:14 -04:00
Michael Tanner
66088e4787
Adds color output support for tmux terminals
2015-03-23 10:56:04 +00:00
tbennun
7553b4193d
Fix x64/Debug build on MSVS
2015-03-13 07:56:59 +02:00
78da3bf8fe
Fixes for the latest MSVS.
...
- ssize_t
Since Windows does not have ssize_t, we need to include BaseTsd.h and
use SSIZE_t instead.
- include algorithm
MSVS 2013 requests developers to include algorithm when they use
std::min.
By yyanagisawa
git-svn-id: https://google-glog.googlecode.com/svn/trunk@143 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-08-19 00:36:29 +00:00
09e8dd6289
Add libc++ support
...
Similar patch was provided in
https://code.google.com/p/google-glog/issues/detail?id=121
git-svn-id: https://google-glog.googlecode.com/svn/trunk@142 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-05 05:20:24 +00:00
a5ffa88413
Build issues in demangle.cc
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@141 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-02 01:37:08 +00:00
8367470aa5
Adding a callback mechanism to allow users of google.glog to provide
...
their own implementation of OpenObjectFileContainingPcAndGetStartAddress.
GTTF: Make stack trace symbolization code recognize more symbols.
One example is __libc_start_main (easy to check), there may be more.
Include the correct elf header on OpenBSD and Android.
Fix Coverity NO_EFFECT defect. Comparing unsigned greater than or equal zero is always true.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@140 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-01 00:33:41 +00:00
a0073e504b
Add StrError and replace posix_strerror_r calls
...
For now, we do not remove the declaration of posix_strerror_r,
but we might remove it in future.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@139 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-10-31 05:39:43 +00:00
0242c8e94d
Fix VC build by adding GOOGLE_GLOG_DLL_DECL
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@138 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-10-31 05:36:25 +00:00
a0bf19d0df
A style fix for C++11
...
This patch is given by Nico (thanks!)
git-svn-id: https://google-glog.googlecode.com/svn/trunk@137 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-07-29 06:27:17 +00:00
1518f230c6
Reduce dynamic allocation from 3 to 1 per log message
...
This patch was contributed in
https://code.google.com/p/google-glog/issues/detail?id=131
by engel. Thanks!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@136 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-05-29 14:10:49 +00:00
478a80caa0
Attempt to improve mingw-w64 support
...
- Set -Isrc/windows for mingw
- Check existence of sigaction, pread, and pwrite
- Provide alternative implementation of pread and pwrite
- Eliminate symlink code for OS_WINDOWS
- Don't check /proc/self/fd if the OS isn't linux
- Don't use MSVC specific declarations in port.h for mingw
git-svn-id: https://google-glog.googlecode.com/svn/trunk@135 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-18 10:56:53 +00:00
a106e61178
Support unordered_(map|set) by stl_logging
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@134 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-18 10:45:46 +00:00
069ee58a09
Fix Mac test failure
...
We need only the first line from signalhandler.out3
git-svn-id: https://google-glog.googlecode.com/svn/trunk@131 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-01 05:46:37 +00:00
e6af5ea5f1
Make sure stderr is not buffered.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@130 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 04:39:54 +00:00
fdc710e355
Add dllimport and dllexport for new symbols
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@129 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 03:49:40 +00:00
35ba669307
Revert http://code.google.com/p/google-glog/source/detail?r=127
...
Casting to (void) was bad because the return value of DCHECK_NOTNULL
cannot be used.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@128 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 03:48:24 +00:00
3297f04c13
Remove warning of DCHECK_NOTNULL
...
http://code.google.com/p/google-glog/issues/detail?id=87
git-svn-id: https://google-glog.googlecode.com/svn/trunk@127 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-25 07:59:25 +00:00
c4c25e85fd
Make glog ABI compatible with gflags
...
The ABI incompatibility is bad when
- Build glog without gflags (glog package in most distributions doesn't
depend on gflags)
- Use both glog and gflags
git-svn-id: https://google-glog.googlecode.com/svn/trunk@125 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-25 05:44:43 +00:00
3b59339f08
Follow up for the color log patch
...
- Rename colorstderr => colorlogtostderr
- Remove duplicated code
- Set colorlogtostderr=0 in the unittest
git-svn-id: https://google-glog.googlecode.com/svn/trunk@124 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-23 05:27:13 +00:00
ff96a5a827
Output logs with colors to stderr
...
This patch is provided by
http://code.google.com/p/google-glog/issues/detail?id=48
Thanks!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@123 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-23 05:25:56 +00:00
5fc80272da
Re-generate logging.h for windows
...
Thanks Kamil for your report!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@122 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-22 09:12:56 +00:00
74ae299924
Allow users to re-initialize glog
...
http://code.google.com/p/google-glog/issues/detail?id=83
http://code.google.com/p/google-glog/issues/detail?id=125
http://code.google.com/p/google-glog/issues/detail?id=142
git-svn-id: https://google-glog.googlecode.com/svn/trunk@121 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-10 07:46:20 +00:00
e8327746ef
Move LogMessageData from .h to .cc
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@120 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-10 07:19:05 +00:00
3aa45ed56e
Eliminate use of strstream based on internal changes
...
http://code.google.com/p/google-glog/issues/detail?id=110
git-svn-id: https://google-glog.googlecode.com/svn/trunk@119 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 16:06:21 +00:00
44c4b29de4
Fix glog/stl_logging for clang
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@118 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 13:59:45 +00:00
047426cf97
Run autoreconf on ubuntu precise
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@117 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 13:26:44 +00:00
96dac4fd02
Fixed files to support FreeBSD amd64 based on patches at:
...
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/glog/files/
Since FreeBSD do not have gettid system call unlikely to MacOSX, I
modified utilities.h not to use that on FreeBSD:
* FreeBSD lacks gettid syscall.
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/syscalls.master?rev=1.276;content-type=text%2Fplain
* MacOSX gettid == 286.
http://www.opensource.apple.com/source/xnu/xnu-1504.3.12/bsd/kern/syscalls.master
As for the fix of stacktrace, we use a different approach.
Even in FreeBSD, package gcc44/gcc46 has unwind.h.
As a result, checking unwind.h should be natural solution.
This patch was given by yyanagisawa
git-svn-id: https://google-glog.googlecode.com/svn/trunk@116 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-11-22 12:09:13 +00:00
711fcd27de
Don't #undef GLOG_MSVC_*
...
They are necessary because GLOG_MSVC_* will be expanded at DCHECK
git-svn-id: https://google-glog.googlecode.com/svn/trunk@115 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-17 10:51:15 +00:00
4f6088bc72
Reduce compiler warnings on Windows and MacOSX
...
DCHECK* causes "warning C4127: conditional expression is constant".
If compiled with -DWIN32_LEAN_AND_MEAN,
port.h: warning C4005: 'WIN32_LEAN_AND_MEAN': macro redefinition.
On MacOSX,
warning: "_END_GOOGLE_NAMESPACE_" redefined
warning: "_START_GOOGLE_NAMESPACE_" redefined
because config.h is included
from base/commandlineflags.h:51
from logging.cc:60
and
from utilities.h:81
from logging.cc:32
or so.
Contributed by ukai@
git-svn-id: https://google-glog.googlecode.com/svn/trunk@114 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-12 06:37:47 +00:00
7c613d6190
Fix LOG_SYSRESULT
...
result is expected to be GetLastError() or WSAGetLastError(), so
we have to convert it to HRESULT by HRESULT_FROM_WIN32 for FAILED()
macro.
Use FormatMesssageA (ANSI version). since glog may not work with
Unicode string.
Contributed by ukai@
git-svn-id: https://google-glog.googlecode.com/svn/trunk@113 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-03 05:25:54 +00:00
6d42536769
Reduce the number of warnings by VS2010
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@112 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-06-13 07:25:19 +00:00
e7712bf068
Compile error fix for QNX
...
This patch is given in
http://code.google.com/p/google-glog/issues/detail?id=114
git-svn-id: https://google-glog.googlecode.com/svn/trunk@111 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-05-14 07:46:20 +00:00
ad13dc67dd
VC11 build fix
...
http://code.google.com/p/google-glog/issues/detail?id=119
git-svn-id: https://google-glog.googlecode.com/svn/trunk@110 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-05-14 07:43:51 +00:00
475ec9b9c4
Add --disable-rtti
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@109 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-02-24 07:28:50 +00:00
73b0abc989
Remove trivial warnings produced by clang
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@107 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 08:41:09 +00:00
cd026f9eab
Add exception specification for operator new and operator delete
...
Unfortunately, clang produces warnings for them
git-svn-id: https://google-glog.googlecode.com/svn/trunk@106 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:50:28 +00:00
8b90f05746
Fix compile failures with clang in stl_logging_unittest.cc
...
This happens due to the reason I wrote in stl_logging.h.
We don't need utilities.h (which includes logging.h) so we can just
remove it.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@105 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:49:25 +00:00
fe0967b999
Fix the wrong use of sizeof
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@104 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:46:39 +00:00
11e78e4c66
Put __attribute__((noreturn)) for declartions of function pointers
...
Clang needs this change.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@103 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:45:39 +00:00
6febec361e
Define GLOG_ prefixed log severities
...
Users can control if usual log severity values will be defined by
GLOG_NO_ABBREVIATED_SEVERITIES.
For http://code.google.com/p/google-glog/issues/detail?id=105
git-svn-id: https://google-glog.googlecode.com/svn/trunk@101 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-11 09:17:04 +00:00
8a4c1663e3
Make public headers "warnings clean" in the sense of -Wall -Wextra -Wshadow
...
-Werror. Fixes issue 98.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@100 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-29 12:40:48 +00:00
d8944b1743
Fix logging_striplog_test.sh in debug mode. Fixes issue 108.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@99 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-29 12:36:09 +00:00
5a05c30365
Remove assumptions about function size in stacktrace_unittest.cc, which do not
...
hold when using certain compiler settings (for example, -O3 -g2 with GCC).
Fixes issue 107.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@98 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-12-28 15:45:05 +00:00
ac3e918969
Suppress warnings around return value of write and symlink.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@97 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 08:00:43 +00:00
c2cbc763ed
Destruct global objects in ShutdownGoogleLogging
...
http://code.google.com/p/google-glog/issues/detail?id=69
git-svn-id: https://google-glog.googlecode.com/svn/trunk@96 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 08:00:01 +00:00
b1afbe7b3c
Add google:: prefixes for COUNTER in glog's document
...
http://code.google.com/p/google-glog/issues/detail?id=92
git-svn-id: https://google-glog.googlecode.com/svn/trunk@95 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 07:58:38 +00:00
54421697f4
Create a new log files after pid has changed
...
http://code.google.com/p/google-glog/issues/detail?id=51
http://code.google.com/p/google-glog/issues/detail?id=74
http://code.google.com/p/google-glog/issues/detail?id=82
git-svn-id: https://google-glog.googlecode.com/svn/trunk@94 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-09-05 07:56:21 +00:00
204ef03af8
Add files left behind by certain tests to CLEANFILES.
...
Remove autogen.sh, since you can just use autoreconf instead.
Ran autoreconf and fixed a couple of issues that popped up in
configure.ac and m4/ac_rwlock.m4. This updates the configuration
files to automake/aclocal 1.11.1 (from 1.10.1) and to autoconf 2.65
(from 2.61).
git-svn-id: https://google-glog.googlecode.com/svn/trunk@93 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-05-11 02:47:46 +00:00
3ae5baa10b
Reduce stack consumption for Demangle(). Fixes issue 81.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@92 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-02-25 14:33:28 +00:00
0b4dcd23ac
Add partial C++0x support and recognition of GCC function clone suffixes to
...
demangle.cc. Fixes issue 80.
Make svn ignore autom4te.cache.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@91 eb4d4688-79bd-11dd-afb4-1d65580434c0
2011-02-07 14:43:05 +00:00
1e86eecaf6
Minor message update.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@90 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 07:04:56 +00:00
858a11d4e3
Add ShutdownGoogleLogging to close syslog.
...
This patch was contributed by DGunchev (thanks!)
http://code.google.com/p/google-glog/issues/detail?id=28
git-svn-id: https://google-glog.googlecode.com/svn/trunk@88 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 06:28:38 +00:00
b52f3fe2e4
s/ASSERT_EQ/CHECK_EQ/ .
...
We are not using gtests' ASSERT_* in our unittests.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@87 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 04:45:46 +00:00
c83adaa87d
Use sys/ucontext.h when it is found. Snow leopard needs this.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@86 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-06-15 04:12:19 +00:00
1f8dac87fc
Move TEST_SRC_DIR from googletest.h to config.h.
...
Now test passes out side tree.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@85 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:56:29 +00:00
9e15c473b7
Add DCHECK_NOTNULL macro to logging.h (points to CHECK_NOTNULL in debug mode)
...
http://code.google.com/p/google-glog/issues/detail?id=25
git-svn-id: https://google-glog.googlecode.com/svn/trunk@83 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:43:29 +00:00
b2704e9f07
Add __extension__ for GCC's statement expression.
...
http://code.google.com/p/google-glog/issues/detail?id=31
git-svn-id: https://google-glog.googlecode.com/svn/trunk@82 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:32:50 +00:00
85f35499a7
Add some more google:: namespaces.
...
http://code.google.com/p/google-glog/issues/detail?id=40
git-svn-id: https://google-glog.googlecode.com/svn/trunk@81 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-05-28 03:31:14 +00:00
cb35010215
Use GLOG_* environment variables even when gflags is installed.
...
Define GLOG_DEFINE_*, which checks if the GLOG_* environment variable
is defined. If defined, GLOG_DEFINE_* passes the value and otherwise,
it passes the original default value. In this way, GLOG_DEFINE_* macro
uses the value specified by gflags first, then GLOG_* environment
variables, and finally it uses the default value if neither of them are
specified.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@76 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-01-20 07:39:18 +00:00
327359662c
Handle ucontext.h properly in Snow leopard.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@75 eb4d4688-79bd-11dd-afb4-1d65580434c0
2010-01-18 06:15:33 +00:00
b71aa94381
Fix compilation error with -DNDEBUG.
...
This bug is reported in
http://code.google.com/p/google-glog/issues/detail?id=19
git-svn-id: https://google-glog.googlecode.com/svn/trunk@74 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-11-11 09:07:47 +00:00
effef71e00
Use numeric_limits instead of SSIZE_MAX.
...
It seems a version of arm-linux-gcc doesn't have this symbol.
http://code.google.com/p/google-glog/issues/detail?id=18
git-svn-id: https://google-glog.googlecode.com/svn/trunk@73 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-11-11 09:06:51 +00:00
90e7825e55
Use intptr_t instead of int to cast from char* for Snow Leopard.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@72 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-10-07 08:52:14 +00:00
7e54f5ab11
Make the order of check for OS_WINDOWS|OS_CYGWIN and HAVE_PTHREAD consistent.
...
git-svn-id: https://google-glog.googlecode.com/svn/trunk@70 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-31 05:25:27 +00:00
1b5a90b691
Cast from pthread_t to pid_t via uintptr_t.
...
On 64bit NetBSD, pthread_t is a pointer and pid_t is an integer so
we cannot cast from pthread_t to pid_t directoly due to difference of
their size.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@69 eb4d4688-79bd-11dd-afb4-1d65580434c0
2009-07-30 10:45:13 +00:00