extern int errno;
#endif
\f
-#ifndef FAILURE_EXIT_CODE
-#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */
-#endif
-
-#ifndef SUCCESS_EXIT_CODE
-#define SUCCESS_EXIT_CODE 0 /* 0 means success on Unix. */
-#endif
-
/* Name under which this program was invoked. */
static char *progname;
int fd = open (pend_files[i], O_RDONLY, 0666);
if (fd < 0) {
perror_with_name (pend_files[i]);
- return FAILURE_EXIT_CODE;
+ return FATAL_EXIT_CODE;
}
finclude (fd, pend_files[i], &outbuf, 0, NULL_PTR);
}
int fd = open (pend_includes[i], O_RDONLY, 0666);
if (fd < 0) {
perror_with_name (pend_includes[i]);
- return FAILURE_EXIT_CODE;
+ return FATAL_EXIT_CODE;
}
finclude (fd, pend_includes[i], &outbuf, 0, NULL_PTR);
}
fatal ("I/O error on output");
if (errors)
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
exit (SUCCESS_EXIT_CODE);
perror:
vfprintf (stderr, msg, args);
va_end (args);
fprintf (stderr, "\n");
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
}
/* More 'friendly' abort that prints the line and file.
#ifdef VMS
exit (vaxc$errno);
#else
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
#endif
}
if (fd < 0)
{
cpp_perror_with_name (pfile, pend->arg);
- return FAILURE_EXIT_CODE;
+ return FATAL_EXIT_CODE;
}
cpp_push_buffer (pfile, NULL, 0);
finclude (pfile, fd, pend->arg, 0, NULL_PTR);
if (fd < 0)
{
cpp_perror_with_name (pfile, pend->arg);
- return FAILURE_EXIT_CODE;
+ return FATAL_EXIT_CODE;
}
cpp_push_buffer (pfile, NULL, 0);
finclude (pfile, fd, pend->arg, 0, NULL_PTR);
typedef unsigned char U_CHAR;
-#ifndef FAILURE_EXIT_CODE
-#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */
-#endif
-
-#ifndef SUCCESS_EXIT_CODE
-#define SUCCESS_EXIT_CODE 0 /* 0 means success on Unix. */
-#endif
-
struct parse_file;
typedef struct cpp_reader cpp_reader;
typedef struct cpp_buffer cpp_buffer;
fprintf (stderr, "%s: %s: ", progname, inc_filename);
fprintf (stderr, str, arg);
fprintf (stderr, "\n");
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
}
void
char *name;
{
cpp_perror_with_name (pfile, name);
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
}
/* gen-protos.c - massages a list of prototypes, for use by fixproto.
- Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
char *s;
{
fprintf (stderr, "%s: %s\n", "gen-protos", s);
-#ifndef FAILURE_EXIT_CODE
-#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */
-#endif
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
}