Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Walls (0.18 sec)

  1. src/cmd/api/testdata/src/pkg/p1/p1.go

    	// Deprecated: use B.
    	A         = 1
    	a         = 11
    	A64 int64 = 1
    
    	AIsLowerA = a // previously declared
    )
    
    const (
    	ConversionConst = MyInt(5)
    )
    
    // Variables from function calls.
    var (
    	V = ptwo.F()
    	// Deprecated: use WError.
    	VError = BarE()
    	V1     = Bar1(1, 2, 3)
    	V2     = ptwo.G()
    )
    
    // Variables with conversions:
    var (
    	StrConv  = string("foo")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/cgo/internal/swig/swig_test.go

    var (
    	swigOnce sync.Once
    	haveSwig bool
    )
    
    func mustHaveSwig(t *testing.T) {
    	swigOnce.Do(func() {
    		mustHaveSwigOnce(t)
    		haveSwig = true
    	})
    	// The first call will skip t with a nice message. On later calls, we just skip.
    	if !haveSwig {
    		t.Skip("swig not found")
    	}
    }
    
    func mustHaveSwigOnce(t *testing.T) {
    	swig, err := exec.LookPath("swig")
    	if err != nil {
    		t.Skipf("swig not in PATH: %s", err)
    	}
    
    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. doc/go1.17_spec.html

    No <a href="#Run_time_panics">run-time panic</a> occurs in this case.
    </p>
    
    
    <h3 id="Calls">Calls</h3>
    
    <p>
    Given an expression <code>f</code> of function type
    <code>F</code>,
    </p>
    
    <pre>
    f(a1, a2, … an)
    </pre>
    
    <p>
    calls <code>f</code> with arguments <code>a1, a2, … an</code>.
    Except for one special case, arguments must be single-valued expressions
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. misc/wasm/wasm_exec.js

    			this.importObject = {
    				_gotest: {
    					add: (a, b) => a + b,
    				},
    				gojs: {
    					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  6. src/bufio/bufio_test.go

    			data, err := r.ReadString(delim)
    			return []byte(data), err
    		},
    		// ReadLine doesn't fit the data/pattern easily
    		// so we leave it out. It should be covered via
    		// the ReadSlice test since ReadLine simply calls
    		// ReadSlice, and it's that function that handles
    		// the last byte.
    	}
    
    	// Try all readers with UnreadByte.
    	for rno, read := range readers {
    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)
  7. src/cmd/cgo/doc.go

    	// C data with explicit length to Go []byte
    	func C.GoBytes(unsafe.Pointer, C.int) []byte
    
    As a special case, C.malloc does not call the C library malloc directly
    but instead calls a Go helper function that wraps the C library malloc
    but guarantees never to return nil. If C's malloc indicates out of memory,
    the helper function crashes the program, like when Go itself runs out
    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)
  8. src/cmd/cgo/internal/test/callback.go

    var callbackMutex sync.Mutex
    var callbackToken int
    var callbackFuncs = make(map[int]func())
    
    // nestedCall calls into C, back into Go, and finally to f.
    func nestedCall(f func()) {
    	// callback(x) calls goCallback(x)
    	callbackMutex.Lock()
    	callbackToken++
    	i := callbackToken
    	callbackFuncs[i] = f
    	callbackMutex.Unlock()
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    // tryParse executes parse func in panicOnError=true context.
    // parse is expected to call any parsing methods that may panic.
    // Returns error gathered from recover; nil if no parse errors occurred.
    //
    // For unexpected panics, calls t.Fatal.
    func tryParse(t *testing.T, parse func()) (err error) {
    	panicOnError = true
    	defer func() {
    		panicOnError = false
    
    		e := recover()
    		var ok bool
    		if err, ok = e.(error); e != nil && !ok {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    	return false
    }
    
    // rewriteCalls rewrites all calls that pass pointers to check that
    // they follow the rules for passing pointers between Go and C.
    // This reports whether the package needs to import unsafe as _cgo_unsafe.
    func (p *Package) rewriteCalls(f *File) bool {
    	needsUnsafe := false
    	// Walk backward so that in C.f1(C.f2()) we rewrite C.f2 first.
    	for _, call := range f.Calls {
    		if call.Done {
    			continue
    		}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top