Remove now-obsolete __STDC__ ifdefs, remove redundant NULL definition and
include stdlib.h for NULL.
This commit is contained in:
parent
5638baf0c6
commit
1a24391866
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90832
@ -54,6 +54,7 @@ cat <<\!
|
||||
* This file was generated by the mkbuiltins program.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "shell.h"
|
||||
#include "builtins.h"
|
||||
|
||||
|
@ -39,11 +39,7 @@
|
||||
|
||||
#ifndef OUTPUT_INCL
|
||||
|
||||
#ifdef __STDC__
|
||||
#include <stdarg.h>
|
||||
#else
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
|
||||
struct output {
|
||||
char *nextc;
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user