Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for Ball (0.15 sec)

  1. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	cb := NewCallback()
    
    	c.SetCallback(cb)
    	s := c.Call()
    	if s != "Callback::run" {
    		fatal("unexpected string from Call: %q", s)
    	}
    	c.DelCallback()
    }
    
    func testCallback() {
    	c := NewCaller()
    	cb := NewDirectorCallback(&GoCallback{})
    	c.SetCallback(cb)
    	s := c.Call()
    	if s != "GoCallback.Run" {
    		fatal("unexpected string from Call with callback: %q", s)
    	}
    	c.DelCallback()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    All the cgo CPPFLAGS and CFLAGS directives in a package are concatenated and
    used to compile C files in that package. All the CPPFLAGS and CXXFLAGS
    directives in a package are concatenated and used to compile C++ files in that
    package. All the CPPFLAGS and FFLAGS directives in a package are concatenated
    and used to compile Fortran files in that package. All the LDFLAGS directives
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/swig/swig_test.go

    }
    
    func TestCall(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Call")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Call") })
    }
    
    func TestCallback(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Callback")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/arena/arena.go

    // NewArena allocates a new arena.
    func NewArena() *Arena {
    	return &Arena{a: runtime_arena_newArena()}
    }
    
    // Free frees the arena (and all objects allocated from the arena) so that
    // memory backing the arena can be reused fairly quickly without garbage
    // collection overhead. Applications must not call any method on this
    // arena after it has been freed.
    func (a *Arena) Free() {
    	runtime_arena_arena_Free(a.a)
    	a.a = nil
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/s390x.go

    		"CMPBNE",
    		"CMPUBEQ",
    		"CMPUBGE",
    		"CMPUBGT",
    		"CMPUBLE",
    		"CMPUBLT",
    		"CMPUBNE",
    		"CRJ",
    		"CGRJ",
    		"CLRJ",
    		"CLGRJ",
    		"CIJ",
    		"CGIJ",
    		"CLIJ",
    		"CLGIJ",
    		"CALL",
    		"JMP":
    		return true
    	}
    	return false
    }
    
    func s390xRegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "AR":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_AR0 + n, true
    		}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 17 14:55:25 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/ast.go

    		Context: context,
    	})
    }
    
    // Save calls to C.xxx for later processing.
    func (f *File) saveCall(call *ast.CallExpr, context astContext) {
    	sel, ok := call.Fun.(*ast.SelectorExpr)
    	if !ok {
    		return
    	}
    	if l, ok := sel.X.(*ast.Ident); !ok || l.Name != "C" {
    		return
    	}
    	c := &Call{Call: call, Deferred: context == ctxDefer}
    	f.Calls = append(f.Calls, c)
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/arch/ppc64.go

    	case "BC", "BCL", "BEQ", "BGE", "BGT", "BL", "BLE", "BLT", "BNE", "BR", "BVC", "BVS", "BDNZ", "BDZ", "CALL", "JMP":
    		return true
    	}
    	return false
    }
    
    // IsPPC64CMP reports whether the op (as defined by an ppc64.A* constant) is
    // one of the CMP instructions that require special handling.
    func IsPPC64CMP(op obj.As) bool {
    	switch op {
    	case ppc64.ACMP, ppc64.ACMPU, ppc64.ACMPW, ppc64.ACMPWU, ppc64.AFCMPU:
    		return true
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Sep 07 20:53:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue18146.go

    		cmd.Stdout = buf
    		cmd.Stderr = buf
    		if err := cmd.Start(); err != nil {
    			// We are starting so many processes that on
    			// some systems (problem seen on Darwin,
    			// Dragonfly, OpenBSD) the fork call will fail
    			// with EAGAIN.
    			if pe, ok := err.(*os.PathError); ok {
    				err = pe.Err
    			}
    			if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) {
    				time.Sleep(time.Millisecond)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    		line, isPrefix, err := b.ReadLine()
    		if !bytes.Equal(line, e.line) {
    			t.Errorf("%q call %d, line == %q, want %q", input, i, line, e.line)
    			return
    		}
    		if isPrefix != e.isPrefix {
    			t.Errorf("%q call %d, isPrefix == %v, want %v", input, i, isPrefix, e.isPrefix)
    			return
    		}
    		if err != e.err {
    			t.Errorf("%q call %d, err == %v, want %v", input, i, err, e.err)
    			return
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue23555a/a.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue23555
    
    // #include <stdlib.h>
    import "C"
    
    func X() {
    	C.free(C.malloc(10))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 250 bytes
    - Viewed (0)
Back to top