commit 24115e49ef8bf2611c90b196e675991b90e8c397
parent 995f59a8ec67f9a385a471aeae14a7d87e3e9595
Author: Kyle Milz <krwmilz@gmail.com>
Date: Mon, 16 Aug 2021 17:19:33 +0000
Assume X_NOT_STDC_ENV=0
Diffstat:
10 files changed, 0 insertions(+), 56 deletions(-)
diff --git a/events.c b/events.c
@@ -132,10 +132,6 @@ NOTE:
#include <errno.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
#ifndef X11HEIGHT
#define X11HEIGHT 8 /* Height of server default font */
#endif
diff --git a/filf-app.h b/filf-app.h
@@ -33,10 +33,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <errno.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
#define FFDEBUG (debug & DBG_OPEN)
#define EXTERN_FFLINE 1 /* xdvi provides this */
#define EXTERN_GETPW 1 /* this, too */
diff --git a/font-open.c b/font-open.c
@@ -33,11 +33,6 @@ NOTE:
#include <errno.h>
#include <signal.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-extern char *getenv ARGS((const char *));
-#endif
-
/*
* If you think you have to change DEFAULT_TAIL, then you haven't read the
* documentation closely enough.
diff --git a/popups.c b/popups.c
@@ -54,10 +54,6 @@ IN THE SOFTWARE.
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#endif
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
#if NeedVarargsPrototypes
# include <stdarg.h>
#else
diff --git a/psdps.c b/psdps.c
@@ -38,10 +38,6 @@ NOTES:
#include <DPS/dpsexcept.h>
#include <DPS/dpsclient.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
#if defined(sun) || defined(__sun)
#ifndef SUNHACK
#define SUNHACK 1
diff --git a/psnews.c b/psnews.c
@@ -52,10 +52,6 @@ NOTES:
/* Condition for retrying a write */
#include <errno.h>
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-#endif
-
#ifdef EWOULDBLOCK
#ifdef EAGAIN
#define AGAIN_CONDITION (errno == EWOULDBLOCK || errno == EAGAIN)
diff --git a/special.c b/special.c
@@ -62,14 +62,6 @@ extern char *strtok ARGS((char *, const char *));
extern double floor ARGS((double));
#define rint(x) floor((x) + 0.5)
-#ifdef X_NOT_STDC_ENV
-#ifndef atof
-extern double atof ARGS((const char *));
-#endif
-
-extern char *getenv ARGS((const char *));
-#endif /* X_NOT_STDC_ENV */
-
#if PS
# if HAVE_VFORK_H
# include <vfork.h>
@@ -86,10 +78,6 @@ extern char *getenv ARGS((const char *));
# ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
# endif
-
-# ifdef X_NOT_STDC_ENV
-extern int errno;
-# endif
#endif /* PS */
#define MAXPOINTS 300 /* Max points in a path */
diff --git a/util.c b/util.c
@@ -44,12 +44,6 @@ NOTE:
#include <rmsdef.h>
#endif /* VMS */
-#ifdef X_NOT_STDC_ENV
-extern int errno;
-extern void *malloc();
-extern void *realloc();
-#endif
-
#if defined(macII) && !__STDC__ /* stdlib.h doesn't define these */
extern void *malloc();
extern void *realloc();
diff --git a/xdvi.c b/xdvi.c
@@ -119,12 +119,6 @@ static char copyright[] UNUSED =
#include "version.h"
-#ifdef X_NOT_STDC_ENV
-#ifndef atof
-extern double atof ARGS((const char *));
-#endif
-#endif
-
/* Xlib and Xutil are already included */
#include <X11/cursorfont.h>
#include <X11/keysym.h>
diff --git a/xdvi.h b/xdvi.h
@@ -56,13 +56,6 @@ NOTE:
/* the following works around the wchar_t problem */
#include <X11/X.h>
#include <X11/Xosdefs.h>
-#ifdef X_NOT_STDC_ENV
-# undef X_NOT_STDC_ENV
-# undef X_WCHAR
-# include <X11/Xlib.h>
-# define X_NOT_STDC_ENV
-#endif
-
#include <X11/Xlib.h> /* include Xfuncs.h, if available */
#include <X11/Xutil.h> /* needed for XDestroyImage */
#include <X11/Xos.h>