Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for pcall (0.16 sec)

  1. 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 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/mips64.s

    	BEQ	R1, 2(PC)
    	JAL	1(PC)		// CALL 1(PC)	// 0c00000f
    	BEQ	R1, 2(PC)
    	JAL	label0+0	// CALL 3	// 0c000007
    
    //	LBRA addr
    //	{
    //		outcode(int($1), &nullgen, 0, &$2);
    //	}
    	BEQ	R1, 2(PC)
    	JMP	0(R1)		// JMP (R1)	// 00200008
    	BEQ	R1, 2(PC)
    	JMP	foo+0(SB)	// JMP foo(SB)	// 08000019
    	BEQ	R1, 2(PC)
    	JAL	0(R1)		// CALL (R1)	// 0020f809
    	BEQ	R1, 2(PC)
    	JAL	foo+0(SB)	// CALL foo(SB)	// 0c000021
    
    //
    // BEQ/BNE
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    // Copyright 2009 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.
    
    /*
    Cgo enables the creation of Go packages that call C code.
    
    # Using cgo with the go command
    
    To use cgo write normal Go code that imports a pseudo-package "C".
    The Go code can then refer to types such as C.size_t, variables such
    as C.stdout, or functions such as C.putchar.
    
    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)
  4. 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)
  5. doc/go1.17_spec.html

    the method.
    </p>
    
    <pre>
    math.Atan2(x, y)  // function call
    var pt *Point
    pt.Scale(3.5)     // method call with receiver pt
    </pre>
    
    <p>
    In a function call, the function value and arguments are evaluated in
    <a href="#Order_of_evaluation">the usual order</a>.
    After they are evaluated, the parameters of the call are passed by value to the function
    and the called function begins execution.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/s390x.s

    	RET
    	RET	foo(SB)
    
    TEXT main·init(SB),DUPOK|NOSPLIT,$0 // TEXT main.init(SB), DUPOK|NOSPLIT, $0
    	RET
    
    TEXT main·main(SB),DUPOK|NOSPLIT,$0 // TEXT main.main(SB), DUPOK|NOSPLIT, $0
    	BL      main·foo(SB)    // CALL main.foo(SB)
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 22 03:55:32 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/operand_test.go

    }
    
    func newParser(goarch string) *Parser {
    	architecture, ctxt := setArch(goarch)
    	return NewParser(ctxt, architecture, nil)
    }
    
    // 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) {
    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)
  8. src/cmd/cgo/internal/test/issue1435.go

    	C.trial(cts)
    	defer C.cleanup()
    
    	vs := []struct {
    		call           string
    		fn             func() error
    		filter, expect string
    	}{
    		{call: "Setegid(1)", fn: func() error { return syscall.Setegid(1) }, filter: "Gid:", expect: "\t0\t1\t0\t1"},
    		{call: "Setegid(0)", fn: func() error { return syscall.Setegid(0) }, filter: "Gid:", expect: "\t0\t0\t0\t0"},
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/arm.s

    	BL.GE	4(PC)  // CALL.GE 4(PC)    // 020000ab
    	BL.LT	3(PC)  // CALL.LT 3(PC)    // 010000bb
    	BL.GT	2(PC)  // CALL.GT 2(PC)    // 000000cb
    	BL.LE	1(PC)  // CALL.LE 1(PC)    // ffffffdb
    	ADD	$0, R0, R0
    	BL	-1(PC) // CALL -1(PC)      // fdffffeb
    	BL	-2(PC) // CALL -2(PC)      // fcffffeb
    	BL	-3(PC) // CALL -3(PC)      // fbffffeb
    	BL	-4(PC) // CALL -4(PC)      // faffffeb
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 15 20:51:01 GMT 2023
    - 69K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    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
    		}
    		start := f.offset(call.Call.Pos())
    		end := f.offset(call.Call.End())
    		str, nu := p.rewriteCall(f, call)
    		if str != "" {
    			f.Edit.Replace(start, end, str)
    			if nu {
    				needsUnsafe = true
    			}
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top