mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cgo: include line number information to keep go/printer happy
Fixes #443. R=dho CC=golang-dev https://golang.org/cl/179095
This commit is contained in:
parent
d85bb81878
commit
044ebae2f0
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@ func main() {
|
||||||
case "call":
|
case "call":
|
||||||
if !cref.TypeName {
|
if !cref.TypeName {
|
||||||
// Is an actual function call.
|
// Is an actual function call.
|
||||||
*cref.Expr = &ast.Ident{Value: "_C_" + cref.Name}
|
pos := (*cref.Expr).Pos()
|
||||||
|
*cref.Expr = &ast.Ident{Position: pos, Value: "_C_" + cref.Name}
|
||||||
p.Funcdef[cref.Name] = cref.FuncType
|
p.Funcdef[cref.Name] = cref.FuncType
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue