Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and

include stdlib.h for NULL.
This commit is contained in:
Warner Losh 2002-02-18 06:08:23 +00:00
parent 5638baf0c6
commit 1a24391866
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90832
3 changed files with 1 additions and 14 deletions

View File

@ -54,6 +54,7 @@ cat <<\!
* This file was generated by the mkbuiltins program.
*/
#include <stdlib.h>
#include "shell.h"
#include "builtins.h"

View File

@ -39,11 +39,7 @@
#ifndef OUTPUT_INCL
#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
struct output {
char *nextc;

View File

@ -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 */