- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isMangledName (0.17 sec)
-
src/cmd/cgo/ast.go
} pieces = append(pieces, c) } return strings.Join(pieces, "") } func (f *File) validateIdents(x interface{}, context astContext) { if x, ok := x.(*ast.Ident); ok { if f.isMangledName(x.Name) { error_(x.Pos(), "identifier %q may conflict with identifiers generated by cgo", x.Name) } } } // Save various references we are going to need later.
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
// that the C code can refer to. prefix := "_C" if *gccgo && n.IsVar() { prefix = "C" } n.Mangle = prefix + n.Kind + "_" + n.Go } func (f *File) isMangledName(s string) bool { prefix := "_C" if strings.HasPrefix(s, prefix) { t := s[len(prefix):] for _, k := range nameKinds { if strings.HasPrefix(t, k+"_") { return true } } }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0)