Lines Matching refs:godefs
17 // godefs returns the output for -godefs mode.
18 func (p *Package) godefs(f *File, srcfile string) string {
21 fmt.Fprintf(&buf, "// Created by cgo -godefs - DO NOT EDIT\n")
30 // able to treat them as byte arrays, so the godefs
33 // // +godefs map struct_in_addr [4]byte
34 // // +godefs map struct_in_addr6 [16]byte
38 i := strings.Index(c.Text, "+godefs map")
42 s := strings.TrimSpace(c.Text[i+len("+godefs map"):])
45 fmt.Fprintf(os.Stderr, "invalid +godefs map comment: %s\n", c.Text)