Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for cdecl (0.04 sec)

  1. src/syscall/syscall_windows.go

    func NewCallback(fn any) uintptr {
    	return compileCallback(fn, true)
    }
    
    // NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
    // This is useful when interoperating with Windows code requiring callbacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    func NewCallback(fn interface{}) uintptr {
    	return syscall.NewCallback(fn)
    }
    
    // NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
    // This is useful when interoperating with Windows code requiring callbacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  3. src/go/printer/testdata/parser.go

    		// init() functions cannot be referred to and there may
    		// be more than one - don't put them in the pkgScope
    		if ident.Name != "init" {
    			p.declare(decl, p.pkgScope, ast.Fun, ident)
    		}
    	}
    
    	return decl
    }
    
    func (p *parser) parseDecl() ast.Decl {
    	if p.trace {
    		defer un(trace(p, "Declaration"))
    	}
    
    	var f parseSpecFunction
    	switch p.tok {
    	case token.CONST:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  4. src/go/printer/nodes.go

    		p.print(blank)
    	}
    	p.expr(d.Name)
    	p.signature(d.Type)
    	p.funcBody(p.distanceFrom(d.Pos(), startCol), vtab, d.Body)
    }
    
    func (p *printer) decl(decl ast.Decl) {
    	switch d := decl.(type) {
    	case *ast.BadDecl:
    		p.setPos(d.Pos())
    		p.print("BadDecl")
    	case *ast.GenDecl:
    		p.genDecl(d)
    	case *ast.FuncDecl:
    		p.funcDecl(d)
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    			}
    		}
    	}
    
    	pos := p.pos()
    	p.want(close)
    	return pos
    }
    
    // appendGroup(f) = f | "(" { f ";" } ")" . // ";" is optional before ")"
    func (p *parser) appendGroup(list []Decl, f func(*Group) Decl) []Decl {
    	if p.tok == _Lparen {
    		g := new(Group)
    		p.clearPragma()
    		p.next() // must consume "(" after calling clearPragma!
    		p.list("grouped declaration", _Semi, _Rparen, func() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.DeclList {
    		fdecl, ok := decl.(*syntax.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Value {
    		case "m":
    			dm = def
    			syntax.Inspect(fdecl.Body, func(n syntax.Node) bool {
    				if call, ok := n.(*syntax.CallExpr); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.Decls {
    		fdecl, ok := decl.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Name {
    		case "m":
    			dm = def
    			ast.Inspect(fdecl.Body, func(n ast.Node) bool {
    				if call, ok := n.(*ast.CallExpr); ok {
    					sel := call.Fun.(*ast.SelectorExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. src/go/parser/parser.go

    	default:
    		p.expectSemi()
    	}
    
    	decl := &ast.FuncDecl{
    		Doc:  doc,
    		Recv: recv,
    		Name: ident,
    		Type: &ast.FuncType{
    			Func:       pos,
    			TypeParams: tparams,
    			Params:     params,
    			Results:    results,
    		},
    		Body: body,
    	}
    	return decl
    }
    
    func (p *parser) parseDecl(sync map[token.Token]bool) ast.Decl {
    	if p.trace {
    		defer un(trace(p, "Declaration"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  9. src/go/types/expr.go

    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    }
    
    // templateParamDecl parses:
    //
    //	<template-param-decl> ::= Ty                          # type parameter
    //	                      ::= Tn <type>                   # non-type parameter
    //	                      ::= Tt <template-param-decl>* E # template parameter
    //	                      ::= Tp <template-param-decl>    # parameter pack
    //
    // Returns the new AST to include in the AST we are building and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
Back to top