Todd Lipcon
302f42f239
Convert dashes to underscores for unknown flags ( #177 )
2016-10-12 10:23:42 -07:00
David Lam
cce68f0c9c
Fix error messages to not truncate to 255 characters ( #175 )
2016-10-05 08:25:50 +01:00
Andreas Schuh
f4eace1331
fix: Validate modified flags only once ( #173 )
2016-09-17 17:17:24 +01:00
田欧
408061b469
fix make error for lacking namespace ( #170 )
2016-08-31 06:39:41 +01:00
Aaryaman Sagar
7d31c02de8
Fix unsigned comparison error in gflags_reporting.cc ( #168 )
2016-08-24 18:03:08 +01:00
Dreamer
a69b2544d6
Fix Windows linker errors and warnings. ( #166 )
2016-08-03 08:25:38 +01:00
dreamer.dead
7ba9921866
Fix wrong type comparison and outdated OfType() usage.
2016-08-01 16:45:49 +03:00
dreamer.dead
30519426c3
Fix indentation and remove outdated assert.
2016-08-01 15:47:46 +03:00
dreamer.dead
3c0ad4fc9e
Extract common code from FlagRegisterer to reduce size.
2016-08-01 14:52:26 +03:00
dreamer.dead
a1e461d61d
Change template FlagValue::OfType() to Type() getter.
2016-08-01 14:51:11 +03:00
dreamer.dead
46ea10f071
Do not pass flag type as a char literal when registering a new flag.
...
It is possible to create a type-safe version of FlagRegisterer
ctor (as well as some internal gflags classes), that will deduce
type of the new flag automatically.
This results in removing quite a few calls to strcmp() when new
flag is created.
No existing behavior change.
2016-07-29 21:02:29 +03:00
Andreas Schuh
fe57e5af4d
Merge pull request #156 from dreamer-dead/fix-flag-value-typename
...
Fix incorrect flag value typename for uint32.
2016-07-20 10:24:14 +01:00
dreamer.dead
5ef4c3c076
Fix uint32 type name.
2016-07-20 12:16:34 +03:00
dreamer.dead
3e946c9ebc
Add missing reference symbol to a function parameter.
2016-07-18 18:44:20 +03:00
liuchang0812
0c17f1ee02
fix bug about LRLF
2016-06-28 17:57:02 +08:00
Allan L. Bazinet
81d8a9234b
Correct FV_MAX_INDEX
2016-04-05 10:56:57 -07:00
Allan L. Bazinet
eaf05340dc
Support uint32 as flag type
...
From #99 , “Given that there is an unsigned flag type for 64-bit
integers, it is probably reasonable to request/expect the same for
32-bit integers.”
2016-04-05 10:50:21 -07:00
Andreas Schuh
545e9df567
fix: Add missing include guards to gflags/config.h
2016-02-29 19:17:00 +00:00
Andreas Schuh
92865cee87
#51 #138 Use std::string instead const char * for global "constants"
2016-02-29 16:15:11 +00:00
Andreas Schuh
7a69001868
#51 Use static StringFlagDestructor to destruct string objects allocated by placement new
2016-02-19 12:59:05 +00:00
Rob Earhart
40b85b18de
Add bazel support
2016-02-18 18:28:31 -08:00
Sergey Sharybin
366e9d335c
Fix some compilation warnings with MSVC 2015
...
MSVC 2015 already defines vsnprintf() and va_copy().
2015-12-31 17:16:26 +05:00
Sergey Sharybin
4f100cb6a0
Resolve several missing declarations warnings
2015-12-31 17:09:59 +05:00
Andreas Schuh
9db828953a
#125 Fix unused typedef/variable warning for static assertion
2015-10-28 00:19:33 +00:00
Andreas Schuh
4e61c45ef9
#124 Remove using namespace from mutex.h
2015-10-27 23:00:58 +00:00
Kjell Schubert
4a56d614cf
support for msvs 2015
2015-05-19 16:01:38 -07:00
Andreas Schuh
2b81a76bed
fix: Include guard of alternative "gflags" namespace header.
2014-07-17 02:14:41 +01:00
Andreas Schuh
659b440f9e
Support alternative namespaces in GFLAGS_NAMESPACE CMake variable.
...
The first element in the GFLAGS_NAMESPACE list is used as primary/default namespace. The symbols are then imported from this primary namespace into each of the other alternative namespaces with the using keyword. This is in particular used to maintain backwards compatibility with previous gflags library versions that used the "google" namespace instead of the new default "gflags" namespace.
2014-05-02 14:56:58 +01:00
Andreas Schuh
a93de007a6
Define GFLAGS_NAMESPACE in public headers.
...
This avoids any mistakes where once @GFLAGS_NAMESPACE@ was used in public .h.in files, or the #define GFLAGS_NAMESPACE in internal source files.
2014-05-02 12:00:35 +01:00
Andreas Schuh
38213112a5
Replace GFLAGS_NAMESPACE by @GFLAGS_NAMESPACE@ in gflags_declare.h (Fixes issue #79 ).
2014-03-26 19:37:01 +00:00
Andreas Schuh
cb62c00354
Change mode of text file.
2014-03-20 02:14:30 +00:00
Andreas Schuh
9ecc4cab3b
Enable packaging of library using CPack.
2014-03-20 02:11:44 +00:00
Andreas Schuh
ddc5357419
Add link dependency on shlwapi.lib during build configuration instead of #pragma comment statement. Use this library also on MinGW.
2014-03-19 17:32:23 +00:00
Andreas Schuh
acb460af9e
Use strtoll as defined by windows_port.h for strto64.
2014-03-19 16:53:19 +00:00
Andreas Schuh
41181669d1
Use OS_WINDOWS #define instead of _WIN32 and WINDOWS.
...
The OS_WINDOWS #define has previously been used in gflags.cc before the CMake migration.
2014-03-19 16:46:56 +00:00
Andreas Schuh
13025b119f
Remove GFLAGS_NAMESPACE and version macros from public headers again.
2014-03-19 16:05:02 +00:00
Andreas Schuh
8566bcf1eb
Replace GFLAGS_HAVE_* #defines by HAVE_* again.
2014-03-19 14:24:52 +00:00
Andreas Schuh
6e9f41669e
No need to export CommandLineFlagInfo data only structure from DLL.
2014-03-19 11:35:30 +00:00
Andreas Schuh
d8c6a552aa
Fix bug in SafeFOpen showing up in Cygwin. Errno only guaranteed to be set on failure.
2014-03-19 11:29:43 +00:00
Andreas Schuh
492ac156bc
Fix DLL build on Windows and use PathMatchSpec instead of fnmatch.
...
Expose as few system variables as possible through public interface.
Perform STRIP_FLAGS_HELP test using CMake instead of Bash.
Change file path separator used by gflags_reporting.cc to backslash on Windwos.
2014-03-18 22:03:10 +00:00
Andreas Schuh
e491f0161d
Add missing errno.h include statement and use int instead of errno_t.
2014-03-17 21:38:21 +00:00
Andreas Schuh
e31f179ae0
Fix up use of SafeFOpen.
2014-03-17 21:27:01 +00:00
Andreas Schuh
a0dca4df0c
Create temporary directory for unit tests in specified --test_tmpdir if possible.
2014-03-17 21:21:59 +00:00
Andreas Schuh
eeb4db3234
Use _strtoi64 and _strtoui64 on Windows.
2014-03-17 21:21:21 +00:00
Andreas Schuh
107681258b
Fix VS linker warning regarding locally defined FLAGS_tryfromenv symbol.
2014-03-17 21:20:24 +00:00
Andreas Schuh
8d3797cd15
Fix VS security warnings using SafeGetEnv and SafeFOpen utility functions.
2014-03-17 21:19:35 +00:00
Andreas Schuh
7b63ae8f8a
Fix preprocessor conditions to use new GFLAGS_* defines.
2014-03-17 13:33:26 +00:00
Andreas Schuh
a4c4a01a37
Check if pthread_rwlock_t is available and use it if so.
2014-03-15 14:31:21 +00:00
Andreas Schuh
8477f3174e
Fix build with Xcode 5, system checks, set LANGUAGE to CXX.
2014-03-15 14:15:33 +00:00
Andreas Schuh
15bc2d6c15
Issue #73 Merge gflags_config.h into gflags_declare.h. Configuration of gflags.h no longer needed.
2014-03-14 16:29:51 +00:00