Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for strdup (0.28 sec)

  1. src/cmd/cgo/ast.go

    						error_(sel.Pos(), `cannot define new methods on non-local type %s`, &buf)
    					}
    				}
    			}
    		}
    
    	}
    	if !sawC {
    		error_(ast1.Package, `cannot find import "C"`)
    	}
    
    	// In ast2, strip the import "C" line.
    	if *godefs {
    		w := 0
    		for _, decl := range ast2.Decls {
    			d, ok := decl.(*ast.GenDecl)
    			if !ok {
    				ast2.Decls[w] = decl
    				w++
    				continue
    			}
    			ws := 0
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    	)
    
    Any package using cgo imports "runtime/cgo", which provides
    initializations for these variables. It sets iscgo to true, _cgo_init
    to a gcc-compiled function that can be called early during program
    startup, and _cgo_thread_start to a gcc-compiled function that can be
    used to create a new thread, in place of the runtime's usual direct
    system calls.
    
    Internal and External Linking
    
    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)
  3. src/cmd/asm/internal/asm/operand_test.go

    				isFuncSym := strings.HasSuffix(test.input, "(SB)") &&
    					// Ignore static symbols.
    					!strings.Contains(test.input, "<>")
    
    				wantName := ""
    				if isFuncSym {
    					// Strip $|* and (SB) and +Int.
    					wantName = test.output[:len(test.output)-4]
    					if strings.HasPrefix(wantName, "$") || strings.HasPrefix(wantName, "*") {
    						wantName = wantName[1:]
    					}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  4. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const ARPHRD_IEEE802 = 6
    pkg syscall (netbsd-arm64-cgo), const ARPHRD_IEEE802 ideal-int
    pkg syscall (netbsd-arm64-cgo), const ARPHRD_STRIP = 23
    pkg syscall (netbsd-arm64-cgo), const ARPHRD_STRIP ideal-int
    pkg syscall (netbsd-arm64-cgo), const B0 = 0
    pkg syscall (netbsd-arm64-cgo), const B0 ideal-int
    pkg syscall (netbsd-arm64-cgo), const B110 = 110
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue20910.c

    #include <stdlib.h>
    #include <string.h>
    #include "_cgo_export.h"
    
    /* Test calling a Go function with multiple return values.  */
    
    void
    callMulti(void)
    {
    	struct multi_return result = multi();
    	assert(strcmp(result.r0, "multi") == 0);
    	assert(result.r1 == 0);
    	free(result.r0);
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 459 bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    // slice or array being indexed, but no other part of the memory allocation.
    func (p *Package) checkIndex(sb, sbCheck *bytes.Buffer, arg ast.Expr, i int) bool {
    	// Strip type conversions.
    	x := arg
    	for {
    		c, ok := x.(*ast.CallExpr)
    		if !ok || len(c.Args) != 1 {
    			break
    		}
    		if !p.isType(c.Fun) && !p.isUnsafeData(c.Fun, false) {
    			break
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. api/go1.1.txt

    pkg syscall (netbsd-386), const ARPHRD_FRELAY = 15
    pkg syscall (netbsd-386), const ARPHRD_IEEE1394 = 24
    pkg syscall (netbsd-386), const ARPHRD_IEEE802 = 6
    pkg syscall (netbsd-386), const ARPHRD_STRIP = 23
    pkg syscall (netbsd-386), const B0 = 0
    pkg syscall (netbsd-386), const B110 = 110
    pkg syscall (netbsd-386), const B115200 = 115200
    pkg syscall (netbsd-386), const B1200 = 1200
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/slice.go

    	//	#define A #define B(x) x
    	// and
    	//	#define A #define B (x) x
    	// The first definition of B has an argument, the second doesn't. Because we let
    	// text/scanner strip the blanks for us, this is extremely rare, hard to fix, and not worth it.
    	return s.pos
    }
    
    func (s *Slice) Close() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg syscall (netbsd-386), const ARPHRD_FRELAY ideal-int
    pkg syscall (netbsd-386), const ARPHRD_IEEE1394 ideal-int
    pkg syscall (netbsd-386), const ARPHRD_IEEE802 ideal-int
    pkg syscall (netbsd-386), const ARPHRD_STRIP ideal-int
    pkg syscall (netbsd-386), const B0 ideal-int
    pkg syscall (netbsd-386), const B110 ideal-int
    pkg syscall (netbsd-386), const B115200 ideal-int
    pkg syscall (netbsd-386), const B1200 ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
Back to top