Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTypes (0.22 sec)

  1. src/cmd/cgo/doc.go

    The definitions of those identifiers, written as Go functions, types,
    or variables, are provided in _cgo_gotypes.go.
    
    Here is a _cgo_gotypes.go containing definitions for needed C types:
    
    	type _Ctype_char int8
    	type _Ctype_int int32
    	type _Ctype_void [0]byte
    
    The _cgo_gotypes.go file also contains the definitions of the
    functions. They all have similar bodies that invoke runtime·cgocall
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    		}
    		if def := typedef[t.Name]; def != nil {
    			return p.hasPointer(f, def.Go, top)
    		}
    		if t.Name == "string" {
    			return !top
    		}
    		if t.Name == "error" {
    			return true
    		}
    		if goTypes[t.Name] != nil {
    			return false
    		}
    		// We can't figure out the type. Conservative
    		// approach is to assume it has a pointer.
    		return true
    	case *ast.SelectorExpr:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top