diff options
author | wlemb <wlemb> | 2001-08-19 21:32:25 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-08-19 21:32:25 +0000 |
commit | eaf33277027de8b8f5a104db588b38e2eddb0ceb (patch) | |
tree | 20e1b89778b74e4665e7820eda994786caeebd2b /src/utils | |
parent | 553ad14abef58812d0b3c49b610dd82c54c30637 (diff) | |
download | groff-eaf33277027de8b8f5a104db588b38e2eddb0ceb.tar.gz |
Use a config.h file.
* src/include/lib.h: Include config.h.
* All C files: Ditto (if necessary).
* All C++ source and header files: Include lib.h first (if
necessary).
* src/include/config.hin: New file (autogenerated by autoheader).
* stamp-h.in: New file.
* configure.ac: Updated.
* aclocal.m4: Add third parameters to AC_DEFINE macros.
(GROFF_ARRAY_DELETE): Simplified.
* Makefile.sub (DISTCLEANFILES): Updated.
Added targets for remaking config.status, config.hin, config.h,
stamp-h.in, and stamp-h.
* configure: Regenerated.
* NEWS: Updated.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/addftinfo/addftinfo.cc | 5 | ||||
-rw-r--r-- | src/utils/hpftodit/hpftodit.cc | 5 | ||||
-rw-r--r-- | src/utils/indxbib/indxbib.cc | 5 | ||||
-rw-r--r-- | src/utils/indxbib/signal.c | 6 | ||||
-rw-r--r-- | src/utils/lkbib/lkbib.cc | 5 | ||||
-rw-r--r-- | src/utils/lookbib/lookbib.cc | 5 | ||||
-rw-r--r-- | src/utils/pfbtops/pfbtops.c | 4 | ||||
-rw-r--r-- | src/utils/tfmtodit/tfmtodit.cc | 5 |
8 files changed, 21 insertions, 19 deletions
diff --git a/src/utils/addftinfo/addftinfo.cc b/src/utils/addftinfo/addftinfo.cc index eb222d9b..931d8365 100644 --- a/src/utils/addftinfo/addftinfo.cc +++ b/src/utils/addftinfo/addftinfo.cc @@ -18,13 +18,12 @@ You should have received a copy of the GNU General Public License along with groff; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdio.h> +#include "lib.h" + #include <ctype.h> -#include <string.h> #include <assert.h> #include <stdlib.h> #include <errno.h> -#include "lib.h" #include "errarg.h" #include "error.h" #include "stringclass.h" diff --git a/src/utils/hpftodit/hpftodit.cc b/src/utils/hpftodit/hpftodit.cc index 15f6f7fe..15de3c30 100644 --- a/src/utils/hpftodit/hpftodit.cc +++ b/src/utils/hpftodit/hpftodit.cc @@ -28,13 +28,12 @@ make it work with TrueType fonts put filename in error messages (or fix lib) */ -#include <stdio.h> +#include "lib.h" + #include <stdlib.h> #include <math.h> -#include <string.h> #include <errno.h> #include "assert.h" -#include "lib.h" #include "posix.h" #include "errarg.h" #include "error.h" diff --git a/src/utils/indxbib/indxbib.cc b/src/utils/indxbib/indxbib.cc index 635d99df..0cc6c7ce 100644 --- a/src/utils/indxbib/indxbib.cc +++ b/src/utils/indxbib/indxbib.cc @@ -18,14 +18,13 @@ You should have received a copy of the GNU General Public License along with groff; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdio.h> +#include "lib.h" + #include <stdlib.h> -#include <string.h> #include <assert.h> #include <errno.h> #include "posix.h" -#include "lib.h" #include "errarg.h" #include "error.h" #include "stringclass.h" diff --git a/src/utils/indxbib/signal.c b/src/utils/indxbib/signal.c index 8078472f..fccd2892 100644 --- a/src/utils/indxbib/signal.c +++ b/src/utils/indxbib/signal.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. +/* Copyright (C) 1992, 2001 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) This file is part of groff. @@ -20,6 +20,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Unfortunately vendors seem to have problems writing a <signal.h> that is correct for C++, so we implement all signal handling in C. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <sys/types.h> #include <signal.h> #ifdef HAVE_UNISTD_H diff --git a/src/utils/lkbib/lkbib.cc b/src/utils/lkbib/lkbib.cc index 50e4e9b9..42156eaa 100644 --- a/src/utils/lkbib/lkbib.cc +++ b/src/utils/lkbib/lkbib.cc @@ -18,13 +18,12 @@ You should have received a copy of the GNU General Public License along with groff; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdio.h> +#include "lib.h" + #include <stdlib.h> #include <errno.h> -#include <string.h> #include <assert.h> -#include "lib.h" #include "errarg.h" #include "error.h" diff --git a/src/utils/lookbib/lookbib.cc b/src/utils/lookbib/lookbib.cc index b742a4bd..4cac219e 100644 --- a/src/utils/lookbib/lookbib.cc +++ b/src/utils/lookbib/lookbib.cc @@ -18,15 +18,14 @@ You should have received a copy of the GNU General Public License along with groff; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <stdio.h> +#include "lib.h" + #include <stdlib.h> -#include <string.h> #include <assert.h> #include <errno.h> #include "errarg.h" #include "error.h" -#include "lib.h" #include "cset.h" #include "refid.h" diff --git a/src/utils/pfbtops/pfbtops.c b/src/utils/pfbtops/pfbtops.c index 0964edec..f087e912 100644 --- a/src/utils/pfbtops/pfbtops.c +++ b/src/utils/pfbtops/pfbtops.c @@ -19,6 +19,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This translates ps fonts in .pfb format to ASCII ps files. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <stdio.h> #include <getopt.h> #include <limits.h> diff --git a/src/utils/tfmtodit/tfmtodit.cc b/src/utils/tfmtodit/tfmtodit.cc index 06b5d185..9fbbe25f 100644 --- a/src/utils/tfmtodit/tfmtodit.cc +++ b/src/utils/tfmtodit/tfmtodit.cc @@ -47,12 +47,11 @@ This need only be done for a font for which math_fitting is false; When it's true, the left_correction and subscript_correction should both be zero. */ -#include <stdio.h> +#include "lib.h" + #include <stdlib.h> #include <math.h> -#include <string.h> #include <errno.h> -#include "lib.h" #include "errarg.h" #include "error.h" #include "assert.h" |