From bab99def57f5138d7f4274bd198166f8bd57a3c3 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 22 Jun 2009 14:26:49 +0000 Subject: remove pre-ANSI C stuff git-svn-id: svn://tug.org/texlive/trunk@13881 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/seetexk/ChangeLog | 5 +++++ Build/source/texk/seetexk/Makefile.am | 2 +- Build/source/texk/seetexk/Makefile.in | 2 +- Build/source/texk/seetexk/dviconcat.c | 3 +-- Build/source/texk/seetexk/dviselect.c | 5 ++--- Build/source/texk/seetexk/types.h | 6 ------ 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 + + * Makefile.am (AM_CPPFLAGS): remove -DNeedFunctionPrototypes. + * dviconcat.c, dviselect.c, types.h: always use prototypes. + 2009-06-17 Peter Breitenlohner * 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 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 #include -#ifdef HAVE_PROTOTYPES -#define NeedFunctionPrototypes 1 -#else -#undef NeedFunctionPrototypes -#endif - #else /* -- cgit v1.2.3