mirror of
https://github.com/golang/go
synced 2024-11-12 04:40:22 -07:00
do not generate Init proto for sys and unsafe.
R=ken OCL=24455 CL=24455
This commit is contained in:
parent
89fc8465a8
commit
aab26a5248
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user