44#if defined(pdp11) || defined(vax) || defined(ns16000) || defined(mc68000) || defined(ibm032)
52extern char *outp, *inp, *newp, *pend;
65 register char *p, savec;
66 static boolean setupdone =
FALSE;
77 for (p = newp; *p;
p++)
88 ptrtab = slotab + COFF;
96struct symtab **lookup(
char *symbol)
98 static struct symtab *undefined;
109void pperror(
int tag,
int x0,
int x1,
int x2,
int x3,
int x4)
115void yyerror(
register char *
s)
138 sprintf(prefix,
"\"%s\":%d",
filename, lineno);
139 prefixlen = strlen(prefix);
140 fprintf(stderr,
"%s: warning: %s", prefix, pd->
line);
142 if (i > 0 && pd->
line[i-1] !=
'\n') {
145 for (i += prefixlen + 11; i > 0; i--) {
148 fprintf(stderr,
"^--- expecting %s\n", expecting);
154#define MAXNAMELEN 256
164 strncpy(tmpbuf, var, len);
177#define isvarfirstletter(ccc) (isalpha(ccc) || (ccc) == '_')
193 return strtol(var,
NULL, 0);
208 ip.
data = (
char *) & pd;
int cppsetup(register char *line, register struct filepointer *filep, register struct inclist *inc)
#define isvarfirstletter(ccc)
static int my_eval_defined(IfParser *ip, const char *var, int len)
static const char * my_if_errors(IfParser *ip, const char *cp, const char *expecting)
static long my_eval_variable(IfParser *ip, const char *var, int len)
static struct symtab ** lookup_variable(IfParser *ip, const char *var, int len)
struct symtab ** isdefined(char *, struct inclist *, struct inclist **)
void fatalerr(char *,...)
const char * ParseIfExpression()
struct _if_parser IfParser
struct _if_parser::@027027246057006304321352073053150242041373171134 funcs
long(* eval_variable)(struct _if_parser *, const char *, int)
const char *(* handle_error)(struct _if_parser *, const char *, const char *)
int(* eval_defined)(struct _if_parser *, const char *, int)
struct filepointer * filep