]> Cypherpunks repositories - gostls13.git/commit
use _f007·filename for func literals.
authorRuss Cox <rsc@golang.org>
Fri, 3 Apr 2009 01:32:57 +0000 (18:32 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 3 Apr 2009 01:32:57 +0000 (18:32 -0700)
commit416b27548ed2c6ac89c28c192880900cbc2ffa6d
treee670a909c1f4452d0d0fb3b9f2fdde984496f420
parent9ef3d8e2e7abbf2b16e63a2b6168034bbe5ba802
use _f007·filename for func literals.
this avoids problems people have run into with
multiple closures in the same package.

when preparing filename, only cut off .go, not .anything.
this fixes a bug tgs ran into with foo.pb.go and foo.go
in the same package.

also turn bad identifier chars from filename into
underscores: a-b.pb.go => a_b_pb

R=ken
OCL=27050
CL=27050
src/cmd/gc/dcl.c
src/cmd/gc/lex.c