mirror of
https://github.com/golang/go
synced 2024-11-20 06:24:40 -07:00
undo CL 5330066 / 6a5647d82728
I promised it wouldn't last very long. People who really need this can sync to 6a5647d82728. ««« original CL description gc: add GOEXPERIMENT=os.Error This won't last long, I promise. R=ken2 CC=golang-dev https://golang.org/cl/5330066 »»» R=ken2 CC=golang-dev https://golang.org/cl/5333053
This commit is contained in:
parent
47f4bf763d
commit
4c3ea0008c
@ -852,7 +852,6 @@ EXTERN int typecheckok;
|
|||||||
EXTERN int compiling_runtime;
|
EXTERN int compiling_runtime;
|
||||||
|
|
||||||
EXTERN int rune32;
|
EXTERN int rune32;
|
||||||
EXTERN int oserror;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* y.tab.c
|
* y.tab.c
|
||||||
|
@ -38,7 +38,6 @@ static struct {
|
|||||||
int *val;
|
int *val;
|
||||||
} exper[] = {
|
} exper[] = {
|
||||||
{"rune32", &rune32},
|
{"rune32", &rune32},
|
||||||
{"os.Error", &oserror},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -2967,17 +2967,6 @@ mkpkg(Strlit *path)
|
|||||||
p->prefix = pathtoprefix(path->s);
|
p->prefix = pathtoprefix(path->s);
|
||||||
p->link = phash[h];
|
p->link = phash[h];
|
||||||
phash[h] = p;
|
phash[h] = p;
|
||||||
|
|
||||||
// If the compiler was built with
|
|
||||||
// GOEXPERIMENT=os.Error
|
|
||||||
// define os.Error as an alias for error.
|
|
||||||
// Terrible and won't last long, but useful for transitions.
|
|
||||||
if(oserror && strcmp(path->s, "os") == 0) {
|
|
||||||
Sym *s;
|
|
||||||
s = pkglookup("Error", p);
|
|
||||||
s->def = typenod(errortype);
|
|
||||||
}
|
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user