Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _Ctype_void (0.17 sec)

  1. src/cmd/cgo/gcc.go

    		// Add the second result type, if any.
    		if twoResults {
    			if name.FuncType.Result == nil {
    				// An explicit void result looks odd but it
    				// seems to be how cgo has worked historically.
    				sb.WriteString("_Ctype_void")
    			}
    			sb.WriteString(", error)")
    		}
    	}
    
    	sb.WriteString("{ ")
    
    	// Define _cgoN for each argument value.
    	// Write _cgoCheckPointer calls to sbCheck.
    	var sbCheck bytes.Buffer
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    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
    to make a switch from the Go runtime world to the system C (GCC-based)
    world.
    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)
Back to top