Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _C_malloc (0.1 sec)

  1. src/cmd/cgo/out.go

    }
    
    // fixGo converts the internal Name.Go field into the name we should show
    // to users in error messages. There's only one for now: on input we rewrite
    // C.malloc into C._CMalloc, so change it back here.
    func fixGo(name string) string {
    	if name == "_CMalloc" {
    		return "malloc"
    	}
    	return name
    }
    
    var isBuiltin = map[string]bool{
    	"_Cfunc_CString":   true,
    	"_Cfunc_CBytes":    true,
    	"_Cfunc_GoString":  true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    				}
    				break
    			}
    			error_(r.Pos(), "call of non-function C.%s", fixGo(r.Name.Go))
    			break
    		}
    		if r.Context == ctxCall2 {
    			if r.Name.Go == "_CMalloc" {
    				error_(r.Pos(), "no two-result form for C.malloc")
    				break
    			}
    			// Invent new Name for the two-result function.
    			n := f.Name["2"+r.Name.Go]
    			if n == nil {
    				n = new(Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top