summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-22 14:26:49 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-22 14:26:49 +0000
commitbab99def57f5138d7f4274bd198166f8bd57a3c3 (patch)
treeb16eb4ad0e5bd1c5298143a5c8945b064f4acdcd /Build/source
parent7b65cece0fb208512b6bde4ee1982f0ca46d7b1e (diff)
remove pre-ANSI C stuff
git-svn-id: svn://tug.org/texlive/trunk@13881 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/seetexk/ChangeLog5
-rw-r--r--Build/source/texk/seetexk/Makefile.am2
-rw-r--r--Build/source/texk/seetexk/Makefile.in2
-rw-r--r--Build/source/texk/seetexk/dviconcat.c3
-rw-r--r--Build/source/texk/seetexk/dviselect.c5
-rw-r--r--Build/source/texk/seetexk/types.h6
6 files changed, 10 insertions, 13 deletions
diff --git a/Build/source/texk/seetexk/ChangeLog b/Build/source/texk/seetexk/ChangeLog
index 2d83842246c..ca6ea6ffdbc 100644
--- a/Build/source/texk/seetexk/ChangeLog
+++ b/Build/source/texk/seetexk/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * Makefile.am (AM_CPPFLAGS): remove -DNeedFunctionPrototypes.
+ * dviconcat.c, dviselect.c, types.h: always use prototypes.
+
2009-06-17 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am (AM_CFLAGS): enable compiler warnings.
diff --git a/Build/source/texk/seetexk/Makefile.am b/Build/source/texk/seetexk/Makefile.am
index 4d8c9dc4c15..6f9f7e72b24 100644
--- a/Build/source/texk/seetexk/Makefile.am
+++ b/Build/source/texk/seetexk/Makefile.am
@@ -6,7 +6,7 @@
ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = $(KPATHSEA_INCLUDES)
-AM_CPPFLAGS = -DUNIX -DKPATHSEA -DNeedFunctionPrototypes
+AM_CPPFLAGS = -DUNIX -DKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)
noinst_LIBRARIES = libtex.a
diff --git a/Build/source/texk/seetexk/Makefile.in b/Build/source/texk/seetexk/Makefile.in
index 2705101357f..352b5d32d9e 100644
--- a/Build/source/texk/seetexk/Makefile.in
+++ b/Build/source/texk/seetexk/Makefile.in
@@ -266,7 +266,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = $(KPATHSEA_INCLUDES)
-AM_CPPFLAGS = -DUNIX -DKPATHSEA -DNeedFunctionPrototypes
+AM_CPPFLAGS = -DUNIX -DKPATHSEA
AM_CFLAGS = $(WARNING_CFLAGS)
noinst_LIBRARIES = libtex.a
libtex_a_SOURCES = \
diff --git a/Build/source/texk/seetexk/dviconcat.c b/Build/source/texk/seetexk/dviconcat.c
index 1d280ea12fd..de3681d967f 100644
--- a/Build/source/texk/seetexk/dviconcat.c
+++ b/Build/source/texk/seetexk/dviconcat.c
@@ -86,7 +86,6 @@ i16 DVIStackSize; /* max of all stack sizes */
/* save some string space: we use this a lot */
char writeerr[] = "error writing DVI file";
-#ifdef NeedFunctionPrototypes
static void HandleDVIFile(void);
#ifdef _AMIGA
#define bcmp(s1, s2, len) memcmp(s1, s2, len)
@@ -97,7 +96,7 @@ static void HandleDVIFile(void);
#ifndef KPATHSEA
char *malloc(), *realloc();
#endif
-#endif
+
/* extern int getopt(int, char **, char*); */
/*
diff --git a/Build/source/texk/seetexk/dviselect.c b/Build/source/texk/seetexk/dviselect.c
index 7485bf6ecf4..d83c8c82917 100644
--- a/Build/source/texk/seetexk/dviselect.c
+++ b/Build/source/texk/seetexk/dviselect.c
@@ -141,7 +141,6 @@ i32 Count[10]; /* the 10 \count variables */
/* save some string space: we use this a lot */
char writeerr[] = "error writing DVI file";
-#ifdef NeedFunctionPrototypes
#include <string.h>
static void WriteFont(struct fontinfo *);
static int evenodd(char *);
@@ -157,8 +156,8 @@ static void PutFontSelector(i32);
#ifndef KPATHSEA
char *malloc(), *realloc();
-#endif /* not WIN32 */
-#endif
+#endif /* not KPATHSEA */
+
/*
* You may get lint warnings about sprintf's return value.
* Older versions of 4BSD have `char *sprintf()'. ANSI and
diff --git a/Build/source/texk/seetexk/types.h b/Build/source/texk/seetexk/types.h
index 84e2de24196..d7716050c1c 100644
--- a/Build/source/texk/seetexk/types.h
+++ b/Build/source/texk/seetexk/types.h
@@ -44,12 +44,6 @@
#include <kpathsea/config.h>
#include <kpathsea/c-memstr.h>
-#ifdef HAVE_PROTOTYPES
-#define NeedFunctionPrototypes 1
-#else
-#undef NeedFunctionPrototypes
-#endif
-
#else
/*