summaryrefslogtreecommitdiffstats
path: root/bin/sh
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-18 06:08:23 +0000
committerimp <imp@FreeBSD.org>2002-02-18 06:08:23 +0000
commitd4f0b8fef8f6fa030813916f22655469d334bb5f (patch)
treef64821a43981c9871fa8f3c3dbcda18fc4e06138 /bin/sh
parent15dc81ca3d20b599b737bfabcec943a08ee40ccf (diff)
downloadFreeBSD-src-d4f0b8fef8f6fa030813916f22655469d334bb5f.zip
FreeBSD-src-d4f0b8fef8f6fa030813916f22655469d334bb5f.tar.gz
Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and
include stdlib.h for NULL.
Diffstat (limited to 'bin/sh')
-rwxr-xr-xbin/sh/mkbuiltins1
-rw-r--r--bin/sh/output.h4
-rw-r--r--bin/sh/shell.h10
3 files changed, 1 insertions, 14 deletions
diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins
index e53f2b3..e4beb76 100755
--- a/bin/sh/mkbuiltins
+++ b/bin/sh/mkbuiltins
@@ -54,6 +54,7 @@ cat <<\!
* This file was generated by the mkbuiltins program.
*/
+#include <stdlib.h>
#include "shell.h"
#include "builtins.h"
diff --git a/bin/sh/output.h b/bin/sh/output.h
index 5991115..e525a62 100644
--- a/bin/sh/output.h
+++ b/bin/sh/output.h
@@ -39,11 +39,7 @@
#ifndef OUTPUT_INCL
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
struct output {
char *nextc;
diff --git a/bin/sh/shell.h b/bin/sh/shell.h
index 0d00a91..07c0ec5 100644
--- a/bin/sh/shell.h
+++ b/bin/sh/shell.h
@@ -57,17 +57,7 @@
#endif
/* #define DEBUG 1 */
-#ifdef __STDC__
typedef void *pointer;
-#ifndef NULL
-#define NULL (void *)0
-#endif
-#else /* not __STDC__ */
-typedef char *pointer;
-#ifndef NULL
-#define NULL 0
-#endif
-#endif /* not __STDC__ */
#define STATIC static
#define MKINIT /* empty */
OpenPOWER on IntegriCloud