summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2004-04-24 04:20:21 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2004-04-24 04:20:21 +0000
commitcace71391294339f29d3d957b9a0cf7e64a34b62 (patch)
tree3b817b293642e4ca04448ad969e87782b8c2c07e /apps
parent1f04f36ac248c467eb6bb6c7efe49a17c0f63970 (diff)
downloadATCD-cace71391294339f29d3d957b9a0cf7e64a34b62.tar.gz
ChangeLogTag:Fri Apr 23 21:18:17 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'apps')
-rw-r--r--apps/gperf/ChangeLog7
-rw-r--r--apps/gperf/src/Options.cpp5
-rw-r--r--apps/gperf/src/Options.h4
3 files changed, 13 insertions, 3 deletions
diff --git a/apps/gperf/ChangeLog b/apps/gperf/ChangeLog
index c5870a24dc3..3c14acb63b1 100644
--- a/apps/gperf/ChangeLog
+++ b/apps/gperf/ChangeLog
@@ -1,3 +1,10 @@
+Fri Apr 23 21:18:17 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * src/Options.h (operator !=):
+ * src/Options.cpp (operator !=):
+
+ Changed return type to bool, as is the norm in modern C++.
+
Tue Jan 20 17:13:29 2004 Steve Huston <shuston@riverace.com>
* version.texi: Something in the autoconf build thought it wise to
diff --git a/apps/gperf/src/Options.cpp b/apps/gperf/src/Options.cpp
index 8aaf4de2d7c..427a1c0e7c8 100644
--- a/apps/gperf/src/Options.cpp
+++ b/apps/gperf/src/Options.cpp
@@ -730,10 +730,13 @@ Options::operator = (enum Option_Type opt)
// Disables option OPT.
-void
+bool
Options::operator != (enum Option_Type opt)
{
+ // @@ Why is this inequality comparison operator clearing bits?
ACE_CLR_BITS (option_word_, opt);
+
+ return true;
}
// Initializes the key Iterator.
diff --git a/apps/gperf/src/Options.h b/apps/gperf/src/Options.h
index 783c1304663..a8daaafb2cc 100644
--- a/apps/gperf/src/Options.h
+++ b/apps/gperf/src/Options.h
@@ -105,7 +105,7 @@ public:
int operator[] (Option_Type option);
int parse_args (int argc, char *argv[]);
void operator= (enum Option_Type);
- void operator!= (enum Option_Type);
+ bool operator!= (enum Option_Type);
static void print_options (void);
static void asso_max (int r);
static int asso_max (void);
@@ -157,7 +157,7 @@ private:
static const char *function_name_;
// Names used for generated lookup function.
-
+
static const char *fill_default_;
// Expression used to assign default values in keyword table.