Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 170 for gofunc (0.15 sec)

  1. src/cmd/cgo/internal/testso/testdata/so/cgoso.go

    #cgo darwin LDFLAGS: -L. libcgosotest.dylib
    #cgo windows LDFLAGS: -L. libcgosotest.a
    #cgo aix LDFLAGS: -L. -l cgosotest
    
    void init(void);
    void sofunc(void);
    */
    import "C"
    
    func Test() {
    	C.init()
    	C.sofunc()
    }
    
    //export goCallback
    func goCallback() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:41 UTC 2023
    - 761 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/symtab.go

    	}
    
    	groupSym := func(name string, t sym.SymKind) loader.Sym {
    		s := ldr.CreateSymForUpdate(name, 0)
    		s.SetType(t)
    		s.SetSize(0)
    		s.SetAlign(int32(ctxt.Arch.PtrSize))
    		s.SetLocal(true)
    		setCarrierSym(t, s.Sym())
    		return s.Sym()
    	}
    	var (
    		symgostring = groupSym("go:string.*", sym.SGOSTRING)
    		symgofunc   = groupSym("go:func.*", sym.SGOFUNC)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  3. test/ken/mfunc.go

    // license that can be found in the LICENSE file.
    
    // Test simple multi-argument multi-valued function.
    
    package main
    
    func
    main() {
    	var x,y int;
    
    	x,y = simple(10,20,30);
    	if x+y != 65 { panic(x+y); }
    }
    
    func
    simple(ia,ib,ic int) (oa,ob int) {
    	return ia+5, ib+ic;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 386 bytes
    - Viewed (0)
  4. src/cmd/link/internal/sym/symkind.go

    var ReadOnly = []SymKind{
    	STYPE,
    	SSTRING,
    	SGOSTRING,
    	SGOFUNC,
    	SGCBITS,
    	SRODATA,
    	SFUNCTAB,
    }
    
    // RelROMap describes the transformation of read-only symbols to rel-ro
    // symbols.
    var RelROMap = map[SymKind]SymKind{
    	STYPE:     STYPERELRO,
    	SSTRING:   SSTRINGRELRO,
    	SGOSTRING: SGOSTRINGRELRO,
    	SGOFUNC:   SGOFUNCRELRO,
    	SGCBITS:   SGCBITSRELRO,
    	SRODATA:   SRODATARELRO,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/func.go

    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. src/go/types/operand.go

    //
    // commaerr   <expr> (<untyped kind> <mode>                    )
    // commaerr   <expr> (               <mode>       of type <typ>)
    //
    // cgofunc    <expr> (<untyped kind> <mode>                    )
    // cgofunc    <expr> (               <mode>       of type <typ>)
    func operandString(x *operand, qf Qualifier) string {
    	// special-case nil
    	if isTypes2 {
    		if x.mode == nilvalue {
    			switch x.typ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. src/cmd/cover/func.go

    //	fmt/format.go:57:	clearflags		100.0%
    //	...
    //	fmt/scan.go:1046:	doScan			100.0%
    //	fmt/scan.go:1075:	advance			96.2%
    //	fmt/scan.go:1119:	doScanf			96.8%
    //	total:		(statements)			91.9%
    
    func funcOutput(profile, outputFile string) error {
    	profiles, err := cover.ParseProfiles(profile)
    	if err != nil {
    		return err
    	}
    
    	dirs, err := findPkgs(profiles)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/func.cc

    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. test/fixedbugs/issue56923.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type Eq[T any] interface {
    	Eqv(a T, b T) bool
    }
    
    type EqFunc[T any] func(a, b T) bool
    
    func (r EqFunc[T]) Eqv(a, b T) bool {
    	return r(a, b)
    }
    
    func New[T any](f func(a, b T) bool) Eq[T] {
    	return EqFunc[T](f)
    }
    
    func Equal(a, b []byte) bool {
    	return string(a) == string(b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 496 bytes
    - Viewed (0)
  10. src/syscall/js/func.go

    func (c Func) Release() {
    	funcsMu.Lock()
    	delete(funcs, c.id)
    	funcsMu.Unlock()
    }
    
    // setEventHandler is defined in the runtime package.
    func setEventHandler(fn func() bool)
    
    func init() {
    	setEventHandler(handleEvent)
    }
    
    // handleEvent retrieves the pending event (window._pendingEvent) and calls the js.Func on it.
    // It returns true if an event was handled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top