Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for _Ctype_union_ (0.16 sec)

  1. src/cmd/cgo/out.go

    		var buf bytes.Buffer
    		noSourceConf.Fprint(&buf, fset, def.Go)
    		if bytes.HasPrefix(buf.Bytes(), []byte("_Ctype_")) ||
    			strings.HasPrefix(name, "_Ctype_enum_") ||
    			strings.HasPrefix(name, "_Ctype_union_") {
    			// This typedef is of the form `typedef a b` and should be an alias.
    			fmt.Fprintf(fgo2, "= ")
    		}
    		fmt.Fprintf(fgo2, "%s", buf.Bytes())
    		fmt.Fprintf(fgo2, "\n\n")
    	}
    	if *gccgo {
    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

    func isStructUnionClass(x ast.Expr) bool {
    	id, ok := x.(*ast.Ident)
    	if !ok {
    		return false
    	}
    	name := id.Name
    	return strings.HasPrefix(name, "_Ctype_struct_") ||
    		strings.HasPrefix(name, "_Ctype_union_") ||
    		strings.HasPrefix(name, "_Ctype_class_")
    }
    
    // FuncArg returns a Go type with the same memory layout as
    // dtype when used as the type of a C function argument.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. src/cmd/cgo/godefs.go

    	//
    	// The most common case is union types, which begin with
    	// _Ctype_union and for which typedef[name] is a Go byte
    	// array of the appropriate size (such as [4]byte).
    	// Substitute those union types with byte arrays.
    	for name, id := range goIdent {
    		if id.Name == name && strings.Contains(name, "_Ctype_union") {
    			if def := typedef[name]; def != nil {
    				id.Name = gofmt(def)
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top