Commit aab26a52 authored by Russ Cox's avatar Russ Cox

do not generate Init proto for sys and unsafe.

R=ken
OCL=24455
CL=24455
parent 89fc8465
......@@ -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)
......
......@@ -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";
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