R=rsc
DELTA=70 (16 added, 52 deleted, 2 changed)
OCL=33295
CL=33299
a.h\
y.tab.h\
../5l/5.out.h\
- compat.h\
OFILES=\
y.tab.$O\
lex.$O\
- compat.$O\
# ../5l/enam.$O\
YFILES=\
#include <lib9.h>
#include <bio.h>
#include "../5l/5.out.h"
-#include "compat.h"
#ifndef EXTERN
#define EXTERN extern
#include "y.tab.h"
#include <ctype.h>
+enum
+{
+ Plan9 = 1<<0,
+ Unix = 1<<1,
+ Windows = 1<<2,
+};
+
+int
+systemtype(int sys)
+{
+ return sys&Plan9;
+}
+
+void* alloc(int32);
+void* allocn(void*, int32, int32);
+
void
main(int argc, char *argv[])
{
int i, of;
strcpy(ofile, file);
- p = utfrrune(ofile, pathchar());
+ p = utfrrune(ofile, '/');
if(p) {
include[0] = ofile;
*p++ = 0;
int n;
g = nullgen;
- c = pathchar();
+ c = '/';
for(h = hist; h != H; h = h->link) {
p = h->name;
op = 0;