diff --git a/NEWS b/NEWS
index e69de29..bd1bae4 100644
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,76 @@
+==4 January 2010==
+
+I've just released gflags 1.3. gflags now compiles under MSVC, and
+all tests pass. I *really* never thought non-unix-y Windows folks
+would want gflags, but at least some of them do.
+
+The major news, though, is that I've separated out the python package
+into its own library, [http://code.google.com/p/python-gflags
+python-gflags]. If you're interested in the Python version of gflags,
+that's the place to get it now.
+
+===10 September 2009==
+
+I've just released gflags 1.2. The major change from gflags 1.1 is it
+now compiles under MinGW (as well as cygwin), and all tests pass. I
+never thought Windows folks would want unix-style command-line flags,
+since they're so different from the Windows style, but I guess I was
+wrong!
+
+The other changes are minor, such as support for --htmlxml in the
+python version of gflags.
+
+===15 April 2009===
+
+I've just released gflags 1.1. It has only minor changes fdrom gflags
+1.0 (see the
+[http://code.google.com/p/google-gflags/source/browse/tags/gflags-1.1/ChangeLog
+ChangeLog] for details). The major change is that I moved to a new
+system for creating .deb and .rpm files. This allows me to create
+x86_64 deb and rpm files.
+
+In the process of moving to this new system, I noticed an
+inconsistency: the tar.gz and .rpm files created libraries named
+libgflags.so, but the deb file created libgoogle-gflags.so. I have
+fixed the deb file to create libraries like the others. I'm no expert
+in debian packaging, but I believe this has caused the package name to
+change as well. Please let me know (at
+[mailto:google-gflags@googlegroups.com
+google-gflags@googlegroups.com]) if this causes problems for you --
+especially if you know of a fix! I would be happy to change the deb
+packages to add symlinks from the old library name to the new
+(libgoogle-gflags.so -> libgflags.so), but that is beyond my knowledge
+of how to make .debs.
+
+If you've tried to install a .rpm or .deb and it doesn't work for you,
+let me know. I'm excited to finally have 64-bit package files, but
+there may still be some wrinkles in the new system to iron out.
+
+===1 October 2008===
+
+gflags 1.0rc2 was out for a few weeks without any issues, so gflags
+1.0 is now released. This is much like gflags 0.9. The major change
+is that the .h files have been moved from `/usr/include/google` to
+`/usr/include/gflags`. While I have backwards-compatibility
+forwarding headeds in place, please rewrite existing code to say
+{{{
+ #include
+
+
Introduction, and Comparison to Other Commandline
Flags Libraries
@@ -122,6 +136,15 @@ HREF="#declare">DECLARE it in the others. Even better, DEFINE it
in foo.cc
and DECLARE it in foo.h
; then
everyone who #includes foo.h
can use the flag.
+Defining flags in libraries rather than in main() is powerful, but +does have some costs. One is that a library might not have a good +default value for its flags, for example if the flag holds a +filename that might not exist in some environments. To mitigate such problems, +you can use flag validators to ensure prompt +notification (in the form of a crash) of an invalid flag value. +
+Note that while most functions in this library are defined in the
google
namespace, DEFINE_foo
(and
DECLARE_foo
, below), should always
@@ -200,7 +223,7 @@ with the new value as an argument. The validator function should
return 'true' if the flag value is valid, and false otherwise.
If the function returns false for the new setting of the
flag, the flag will retain its current value. If it returns false for the
-default value, InitGoogle will die.
+default value, ParseCommandLineFlags will die.
Here is an example use of this functionality:
@@ -417,7 +440,7 @@ that file as if these flags had been specified on the commandline.In its simplest form,
f
should just be a list of flag assignments, one per line. Unlike on the commandline, the equals sign -separating a flagname from its argument is required for +separating a flagname from its argument is required for flagfiles. An example flagfile,/tmp/myflags
:--nobig_menus diff --git a/packages/deb/control b/packages/deb/control index dcfdd16..c2fee04 100644 --- a/packages/deb/control +++ b/packages/deb/control @@ -1,6 +1,6 @@ Source: gflags Priority: optional -Maintainer: Google Inc.+Maintainer: Google Inc. Build-Depends: debhelper (>= 4.0.0), binutils Standards-Version: 3.6.1 diff --git a/packages/rpm/rpm.spec b/packages/rpm/rpm.spec index 2a5d39e..ed92752 100644 --- a/packages/rpm/rpm.spec +++ b/packages/rpm/rpm.spec @@ -10,7 +10,7 @@ Group: Development/Libraries URL: http://code.google.com/p/google-gflags License: BSD Vendor: Google -Packager: Google Inc. +Packager: Google Inc. Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz Distribution: Redhat 7 and above. Buildroot: %{_tmppath}/%{name}-root diff --git a/src/gflags.cc b/src/gflags.cc index e1d5294..d233e50 100644 --- a/src/gflags.cc +++ b/src/gflags.cc @@ -106,7 +106,6 @@ #ifdef HAVE_FNMATCH_H #include #endif // HAVE_FNMATCH_H -#include // for cerr #include #include