Commit b0a0e3c4 authored by Rob Pike's avatar Rob Pike

remove compat stuff

R=rsc
DELTA=70  (16 added, 52 deleted, 2 changed)
OCL=33295
CL=33299
parent dc6b4f47
...@@ -11,12 +11,10 @@ HFILES=\ ...@@ -11,12 +11,10 @@ HFILES=\
a.h\ a.h\
y.tab.h\ y.tab.h\
../5l/5.out.h\ ../5l/5.out.h\
compat.h\
OFILES=\ OFILES=\
y.tab.$O\ y.tab.$O\
lex.$O\ lex.$O\
compat.$O\
# ../5l/enam.$O\ # ../5l/enam.$O\
YFILES=\ YFILES=\
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <lib9.h> #include <lib9.h>
#include <bio.h> #include <bio.h>
#include "../5l/5.out.h" #include "../5l/5.out.h"
#include "compat.h"
#ifndef EXTERN #ifndef EXTERN
#define EXTERN extern #define EXTERN extern
......
...@@ -33,6 +33,22 @@ ...@@ -33,6 +33,22 @@
#include "y.tab.h" #include "y.tab.h"
#include <ctype.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 void
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
...@@ -127,7 +143,7 @@ assemble(char *file) ...@@ -127,7 +143,7 @@ assemble(char *file)
int i, of; int i, of;
strcpy(ofile, file); strcpy(ofile, file);
p = utfrrune(ofile, pathchar()); p = utfrrune(ofile, '/');
if(p) { if(p) {
include[0] = ofile; include[0] = ofile;
*p++ = 0; *p++ = 0;
...@@ -656,7 +672,7 @@ outhist(void) ...@@ -656,7 +672,7 @@ outhist(void)
int n; int n;
g = nullgen; g = nullgen;
c = pathchar(); c = '/';
for(h = hist; h != H; h = h->link) { for(h = hist; h != H; h = h->link) {
p = h->name; p = h->name;
op = 0; op = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment