diff options
Diffstat (limited to 'src/cmd/cgo/ast.go')
-rw-r--r-- | src/cmd/cgo/ast.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/cgo/ast.go b/src/cmd/cgo/ast.go index 7d6221369..d96a8bd9d 100644 --- a/src/cmd/cgo/ast.go +++ b/src/cmd/cgo/ast.go @@ -19,7 +19,7 @@ import ( type Cref struct { Name string Expr *ast.Expr - Context string // "type", "expr", or "call" + Context string // "type", "expr", "const", or "call" TypeName bool // whether xxx is a C type name Type *Type // the type of xxx FuncType *FuncType @@ -36,6 +36,7 @@ type Prog struct { Vardef map[string]*Type Funcdef map[string]*FuncType Enumdef map[string]int64 + Constdef map[string]string PtrSize int64 GccOptions []string OutDefs map[string]bool |