Commit 63aeaa2a authored by Russ Cox's avatar Russ Cox

fix import dot bug

R=ken
OCL=33526
CL=33528
parent 0f17fc0e
......@@ -956,7 +956,6 @@ NodeList* initfix(NodeList*);
/*
* export.c
*/
void renameimports(void);
void autoexport(Node*, int);
int exportname(char*);
void exportsym(Node*);
......
......@@ -239,7 +239,7 @@ importdot(Sym *opkg)
for(s = hash[h]; s != S; s = s->link) {
if(s->package[0] != c)
continue;
if(!exportname(s->name))
if(!exportname(s->name) || utfrune(s->name, 0xb7)) // 0xb7 = center dot
continue;
if(strcmp(s->package, opkg->name) != 0)
continue;
......
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package a
func init() {
println("a");
}
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package b
func init() {
println("b");
}
// $G $D/bug191.dir/a.go && $G $D/bug191.dir/b.go && $G $D/$F.go && $L $F.$A
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import . "./a"
import . "./b"
func main() {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment