]> Cypherpunks repositories - gostls13.git/commitdiff
remove compat stuff
authorRob Pike <r@golang.org>
Fri, 14 Aug 2009 21:55:22 +0000 (14:55 -0700)
committerRob Pike <r@golang.org>
Fri, 14 Aug 2009 21:55:22 +0000 (14:55 -0700)
R=rsc
DELTA=70  (16 added, 52 deleted, 2 changed)
OCL=33295
CL=33299

src/cmd/5a/Makefile
src/cmd/5a/a.h
src/cmd/5a/lex.c

index 6508d94115b6c3d05940ae33fc49bb75612d00ad..ac2931ed04a424cc085d2e59c8fa166cf9791c96 100644 (file)
@@ -11,12 +11,10 @@ HFILES=\
        a.h\
        y.tab.h\
        ../5l/5.out.h\
-       compat.h\
 
 OFILES=\
        y.tab.$O\
        lex.$O\
-       compat.$O\
 #      ../5l/enam.$O\
 
 YFILES=\
index 939ae563e4d8e4f509265d89f9ad38e985c08d76..a8456b248531b2ae555412d95602ccb1eb90a256 100644 (file)
@@ -31,7 +31,6 @@
 #include <lib9.h>
 #include <bio.h>
 #include "../5l/5.out.h"
-#include "compat.h"
 
 #ifndef        EXTERN
 #define        EXTERN  extern
index 2184cdccf6a635c8933da0183a7cf366a4a047e5..8a28c7d55591b6ed8a58d5a17008ed9ca86f0c52 100644 (file)
 #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[])
 {
@@ -127,7 +143,7 @@ assemble(char *file)
        int i, of;
 
        strcpy(ofile, file);
-       p = utfrrune(ofile, pathchar());
+       p = utfrrune(ofile, '/');
        if(p) {
                include[0] = ofile;
                *p++ = 0;
@@ -656,7 +672,7 @@ outhist(void)
        int n;
 
        g = nullgen;
-       c = pathchar();
+       c = '/';
        for(h = hist; h != H; h = h->link) {
                p = h->name;
                op = 0;