#ifndef lint
-static char sccsid[] = "@(#)cpp.c 1.14 4/27/86";
+static char sccsid[] = "@(#)cpp.c 1.17 10/22/87";
#endif lint
#ifdef FLEXNAMES
#define NCPS 8
#endif
+# include "sys/param.h"
# include "stdio.h"
# include "ctype.h"
/* C command
/* some code depends on whether characters are sign or zero extended */
/* #if '\377' < 0 not used here, old cpp doesn't understand */
-#if pdp11 | vax | mc68000
+#if pdp11 | vax | mc68000 | tahoe
#define COFF 128
#else
#define COFF 0
dump();
if (sp==ulnloc) {
vp=acttxt; *vp++='\0';
- sprintf(vp,"%d",lineno[ifno]); while (*vp++);
+ (void)sprintf(vp,"%d",lineno[ifno]); while (*vp++);
} else if (sp==uflloc) {
vp=acttxt; *vp++='\0';
- sprintf(vp,"\"%s\"",fnames[ifno]); while (*vp++);
+ (void)sprintf(vp,"\"%s\"",fnames[ifno]); while (*vp++);
}
if (0!=(params= *--vp&0xFF)) {/* definition calls for params */
register char **pa;
# if unix
ysysloc=stsym("unix");
# endif
-# if gcos
- ysysloc=stsym ("gcos");
-# endif
-# if ibm
- ysysloc=stsym ("ibm");
-# endif
-# if pdp11
- varloc=stsym("pdp11");
-# endif
-# if vax
- varloc=stsym("vax");
-# endif
-# if interdata
- varloc=stsym ("interdata");
-# endif
-# if tss
- varloc=stsym ("tss");
-# endif
-# if os
- varloc=stsym ("os");
-# endif
-# if mert
- varloc=stsym ("mert");
-# endif
-# if mc68000
- varloc=stsym("mc68000");
-# endif
-# if sun
- varloc=stsym("sun");
-# endif
+ ysysloc=stsym(MACHINE);
ulnloc=stsym ("__LINE__");
uflloc=stsym ("__FILE__");