1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:10:21 -07:00

do not generate Init proto for sys and unsafe.

R=ken
OCL=24455
CL=24455
This commit is contained in:
Russ Cox 2009-02-05 14:49:53 -08:00
parent 89fc8465a8
commit aab26a5248
2 changed files with 5 additions and 2 deletions

View File

@ -1050,6 +1050,11 @@ fninit(Node *n)
uint32 h;
Sym *s;
if(strcmp(package, "PACKAGE") == 0) {
// sys.go or unsafe.go during compiler build
return;
}
r = N;
// (1)

View File

@ -59,12 +59,10 @@ char *sysimport =
"func sys.Goexit ()\n"
"func sys.Exit (? int)\n"
"func sys.Caller (n int) (pc uint64, file string, line int, ok bool)\n"
"func sys.Init·sys ()\n"
"\n"
"$$\n";
char *unsafeimport =
"package unsafe\n"
"type unsafe.Pointer *any\n"
"func unsafe.Init·unsafe ()\n"
"\n"
"$$\n";