From 58f7fc331f4e4fe62370a4bedfaeebf45d8b3d2b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 24 Mar 2009 18:04:19 -0700 Subject: [PATCH] make 8a, 8c build again. add 8a 8c 8l to the build to keep us honest. R=r DELTA=33 (28 added, 0 deleted, 5 changed) OCL=26694 CL=26711 --- src/cmd/8a/lex.c | 31 +++++++++++++++++++++++++------ src/cmd/8c/Makefile | 2 +- src/cmd/clean.bash | 2 +- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/cmd/8a/lex.c b/src/cmd/8a/lex.c index 139ab0a328..d4c61af07d 100644 --- a/src/cmd/8a/lex.c +++ b/src/cmd/8a/lex.c @@ -33,11 +33,30 @@ #include "y.tab.h" #include +enum +{ + Plan9 = 1<<0, + Unix = 1<<1, + Windows = 1<<2, +}; + +int +systemtype(int sys) +{ + return sys&Plan9; +} + +int +pathchar(void) +{ + return '/'; +} + void main(int argc, char *argv[]) { char *p; - int nout, nproc, status, i, c; + int nout, nproc, i, c; thechar = '8'; thestring = "386"; @@ -162,7 +181,7 @@ assemble(char *file) pass = 1; pinit(file); - + Bprint(&obuf, "%s\n", thestring); for(i=0; i