diff options
author | wlemb <wlemb> | 2002-09-07 04:51:02 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2002-09-07 04:51:02 +0000 |
commit | c6cc41386e05bffef2798977a691cd6655593942 (patch) | |
tree | 3b7df4a9a45fd4fb65345a60da5416ccef46db44 /src | |
parent | 42372dc8010c1d2acf0791c472b1ad0f49357fba (diff) | |
download | groff-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/config.hin | 3 | ||||
-rw-r--r-- | src/libs/libdriver/input.cc | 2 | ||||
-rw-r--r-- | src/libs/libgroff/tmpfile.cc | 4 | ||||
-rw-r--r-- | src/libs/libgroff/tmpname.cc | 1 |
4 files changed, 8 insertions, 2 deletions
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" |