[dev.cc] cmd/new6g etc: reconvert from C
Reconvert using rsc.io/c2go rev 27b3f59.
(Same as last conversion, but C sources have changed
due to merging master into this branch.)
Change-Id: Ib314bb9ac14a726ceb83e2ecf4d1ad2d0b331c38
Reviewed-on: https://go-review.googlesource.com/5471
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/src/cmd/internal/gc/init.go b/src/cmd/internal/gc/init.go
index 2805f39..9202ac5 100644
--- a/src/cmd/internal/gc/init.go
+++ b/src/cmd/internal/gc/init.go
@@ -24,14 +24,14 @@
* it is called by the initialization before
* main is run. to make it unique within a
* package and also uncallable, the name,
- * normally "pkg.init", is altered to "pkg.init·1".
+ * normally "pkg.init", is altered to "pkg.init.1".
*/
var renameinit_initgen int
func renameinit() *Sym {
renameinit_initgen++
- namebuf = fmt.Sprintf("init·%d", renameinit_initgen)
+ namebuf = fmt.Sprintf("init.%d", renameinit_initgen)
return Lookup(namebuf)
}
@@ -48,7 +48,7 @@
* // over all matching imported symbols
* <pkg>.init() (7)
* { <init stmts> } (8)
- * init·<n>() // if any (9)
+ * init.<n>() // if any (9)
* initdone· = 2; (10)
* return (11)
* }
@@ -85,9 +85,8 @@
}
// is there an explicit init function
- namebuf = fmt.Sprintf("init·1")
+ s = Lookup("init.1")
- s = Lookup(namebuf)
if s.Def != nil {
return true
}
@@ -201,7 +200,7 @@
// (9)
// could check that it is fn of no args/returns
for i = 1; ; i++ {
- namebuf = fmt.Sprintf("init·%d", i)
+ namebuf = fmt.Sprintf("init.%d", i)
s = Lookup(namebuf)
if s.Def == nil {
break