]> Cypherpunks repositories - gostls13.git/commit
gc: fix init of packages named main
authorGustavo Niemeyer <gustavo@niemeyer.net>
Wed, 2 Mar 2011 21:18:17 +0000 (16:18 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 2 Mar 2011 21:18:17 +0000 (16:18 -0500)
commitdaffc2d2ef1b68eae0a7e79d015fe33339f19534
tree628224fbc772bd6d34275fab33fb3aeba28cdf5a
parentff1d89d6003272585093cfbab630c534fbba69bd
gc: fix init of packages named main

This change removes the special case which existed
for handling the initalization of the main package,
so that other modules named 'main' get properly
initialized when imported.

Note that gotest of main packages will break in most
cases without this.

R=rsc
CC=golang-dev
https://golang.org/cl/4190050
src/cmd/gc/export.c
src/cmd/gc/init.c
src/cmd/gc/subr.c
test/init.go [new file with mode: 0644]