#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#ifdef HAVE_STRING_H
#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#define EXTEND 1 /* alias for TRUE */
struct commandline {
+ int ansic_flag;
int cflag;
int hflag;
int lflag;
char *OutFileFlag = "";
char OutFile[256];
char Sflag = 0, Cflag = 0, hflag = 0, cflag = 0, kflag = 0, uflag = 0;
+char ansic_flag = 0; /* If set, build ANSI C style prototypes */
char zflag = 0; /* If set, abort server stub if rpc call returns non-zero */
char xflag = 0; /* if set, add stats code to stubs */
char yflag = 0; /* if set, only emit function name arrays to xdr file */
int debug = 0;
static char *cmdname;
-#ifdef __PROG_CPP__
-static char CPP[] = __PROG_CPP__;
+#ifdef PATH_CPP
+static char CPP[] = PATH_CPP;
#else
static char CPP[] = "/lib/cpp";
#endif
for (j = 1; argv[i][j] != 0; j++) {
c = argv[i][j];
switch (c) {
+ case 'A':
case 'c':
case 'h':
case 'l':
;
}
}
+ cmd->ansic_flag = ansic_flag = flag['A'];
cmd->cflag = cflag = flag['c'];
cmd->hflag = hflag = flag['h'];
cmd->sflag = flag['s'];