rename sys functions to runtime,
because they are in package runtime.
another step to enforcing package boundaries.
R=r
DELTA=732 (114 added, 93 deleted, 525 changed)
OCL=35811
CL=35824
diff --git a/src/cmd/gc/go.y b/src/cmd/gc/go.y
index 35084c0..02e941c 100644
--- a/src/cmd/gc/go.y
+++ b/src/cmd/gc/go.y
@@ -139,13 +139,13 @@
}
/*
- * this loads the definitions for the sys functions,
+ * this loads the definitions for the low-level runtime functions,
* so that the compiler can generate calls to them,
- * but does not make the name "sys" visible as a package.
+ * but does not make the name "runtime" visible as a package.
*/
loadsys:
{
- cannedimports("sys.6", sysimport);
+ cannedimports("runtime.builtin", runtimeimport);
}
import_package
import_there
@@ -245,7 +245,7 @@
// statements have to go away in programs building
// against the release. Once the programs have converted
// it should probably just go away.
- if(strcmp($2->name, package) == 0)
+ if(strcmp($2->name, package) == 0 && strcmp(package, "runtime") != 0)
yyerror("package cannot import itself (anymore)");
}