summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-09-07 04:51:02 +0000
committerwlemb <wlemb>2002-09-07 04:51:02 +0000
commitc6cc41386e05bffef2798977a691cd6655593942 (patch)
tree3b7df4a9a45fd4fb65345a60da5416ccef46db44
parent42372dc8010c1d2acf0791c472b1ad0f49357fba (diff)
downloadgroff-c6cc41386e05bffef2798977a691cd6655593942.tar.gz
* src/include/config.hin: Add `HAVE_ISATTY'.
* src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for `fname' member. * src/libs/libgroff/tmpname.cc: Include `time.h'. * src/libs/libdriver/input.cc (Char): Add `operator==' and `operator!=' for `char'. * doc/groff.texinfo: Replace @ifnottex block for top node with @ifhtml block.
-rw-r--r--ChangeLog11
-rw-r--r--doc/groff.texinfo8
-rw-r--r--src/include/config.hin3
-rw-r--r--src/libs/libdriver/input.cc2
-rw-r--r--src/libs/libgroff/tmpfile.cc4
-rw-r--r--src/libs/libgroff/tmpname.cc1
6 files changed, 23 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 09f561bd..aafcd735 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2002-09-07 Werner LEMBERG <wl@gnu.org>
+
+ * src/include/config.hin: Add `HAVE_ISATTY'.
+ * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
+ `fname' member.
+ * src/libs/libgroff/tmpname.cc: Include `time.h'.
+ * src/libs/libdriver/input.cc (Char): Add `operator==' and
+ `operator!=' for `char'.
+ * doc/groff.texinfo: Replace @ifnottex block for top node with
+ @ifhtml block.
+
2002-09-06 Werner LEMBERG <wl@gnu.org>
* doc/Makefile.in (.texinfo.html): Add -I switch.
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index 3d25cb23..67e0317f 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -393,19 +393,19 @@ Software Foundation raise funds for GNU development.''
@contents
-@ifnottex
+@ifinfo
@node Top, Introduction, (dir), (dir)
@top GNU troff
@insertcopying
-@end ifnottex
+@end ifinfo
-@ifinfo
+@ifhtml
@node Top, Introduction, (dir), (dir)
@top GNU troff
@insertcopying
-@end ifinfo
+@end ifhtml
@menu
* Introduction::
diff --git a/src/include/config.hin b/src/include/config.hin
index 3d2e360c..850e3176 100644
--- a/src/include/config.hin
+++ b/src/include/config.hin
@@ -45,6 +45,9 @@
/* Define if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
+/* Define if you have the `isatty' function. */
+#undef HAVE_ISATTY
+
/* Define if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
diff --git a/src/libs/libdriver/input.cc b/src/libs/libdriver/input.cc
index 3fae3304..a02c139c 100644
--- a/src/libs/libdriver/input.cc
+++ b/src/libs/libdriver/input.cc
@@ -297,9 +297,11 @@ class Char {
public:
Char(void) : data('\0') {}
Char(const int c) : data(c) {}
+ bool operator==(char c) const { return (data == c) ? true : false; }
bool operator==(int c) const { return (data == c) ? true : false; }
bool operator==(const Char c) const
{ return (data == c.data) ? true : false; }
+ bool operator!=(char c) const { return !(*this == c); }
bool operator!=(int c) const { return !(*this == c); }
bool operator!=(const Char c) const { return !(*this == c); }
operator int() const { return (int) data; }
diff --git a/src/libs/libgroff/tmpfile.cc b/src/libs/libgroff/tmpfile.cc
index d9a5dfe2..41b7f064 100644
--- a/src/libs/libgroff/tmpfile.cc
+++ b/src/libs/libgroff/tmpfile.cc
@@ -114,9 +114,9 @@ char *xtmptemplate(const char *postfix_long, const char *postfix_short)
// This should be portable to all platforms.
struct xtmpfile_list {
- const char *fname;
+ char *fname;
xtmpfile_list *next;
- xtmpfile_list(const char *fn) : fname(fn), next(0) {}
+ xtmpfile_list(char *fn) : fname(fn), next(0) {}
};
xtmpfile_list *xtmpfiles_to_delete = 0;
diff --git a/src/libs/libgroff/tmpname.cc b/src/libs/libgroff/tmpname.cc
index fd8f16dc..213b0eea 100644
--- a/src/libs/libgroff/tmpname.cc
+++ b/src/libs/libgroff/tmpname.cc
@@ -27,6 +27,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stddef.h>
#include <stdlib.h>
#include <errno.h>
+#include <time.h>
#include "posix.h"
#include "nonposix.h"