Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for yerine (0.32 sec)

  1. src/cmd/go/testdata/script/cgo_badmethod_issue57926.txt

    [short] skip
    [!cgo] skip
    
    # Test that cgo rejects attempts to declare methods
    # on the types C.T or *C.T; see issue #57926.
    
    ! go build
    stderr 'cannot define new methods on non-local type C.T'
    stderr 'cannot define new methods on non-local type \*C.T'
    ! stderr 'Alias'
    
    -- go.mod --
    module example.com
    go 1.12
    
    -- a.go --
    package a
    
    /*
    typedef int T;
    */
    import "C"
    
    func (C.T) f() {}
    func (recv *C.T) g() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 12:55:28 UTC 2023
    - 562 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/sigaltstack.go

    package cgotest
    
    /*
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    #ifdef _AIX
    // On AIX, SIGSTKSZ is too small to handle Go sighandler.
    #define CSIGSTKSZ 0x4000
    #else
    #define CSIGSTKSZ SIGSTKSZ
    #endif
    
    static stack_t oss;
    static char signalStack[CSIGSTKSZ];
    
    static void changeSignalStack(void) {
    	stack_t ss;
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = signalStack;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_find.txt

    env GO111MODULE=on
    
    # Derive module path from import comment.
    cd $WORK/x
    exists x.go
    go mod init
    stderr 'module x'
    
    # Import comment works even with CRLF line endings.
    rm go.mod
    replace '\n' '\r\n' x.go
    go mod init
    stderr 'module x'
    
    # Derive module path from location inside GOPATH.
    # 'go mod init' should succeed if modules are not explicitly disabled.
    cd $GOPATH/src/example.com/x/y
    go mod init
    stderr 'module example.com/x/y$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:14 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <pthread.h>
    
    #include "libgo4.h"
    
    #ifdef _AIX
    // On AIX, CSIGSTKSZ is too small to handle Go sighandler.
    #define CSIGSTKSZ 0x4000
    #else
    #define CSIGSTKSZ SIGSTKSZ
    #endif
    
    static void die(const char* msg) {
    	perror(msg);
    	exit(EXIT_FAILURE);
    }
    
    static int ok = 1;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    				// are in hex and half are in whatever the #define used.
    				n.Const = fmt.Sprintf("%#x", i)
    			} else if n.Define[0] == '\'' {
    				if _, err := parser.ParseExpr(n.Define); err == nil {
    					n.Kind = "iconst"
    					n.Const = n.Define
    				}
    			} else if n.Define[0] == '"' {
    				if _, err := parser.ParseExpr(n.Define); err == nil {
    					n.Kind = "sconst"
    					n.Const = n.Define
    				}
    			}
    
    			if n.IsConst() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  6. doc/asm.html

    is also treated as implicitly marked <code>NOPTR</code>.
    It is not possible to define a symbol containing pointers in an assembly source file;
    such a symbol must be defined in a Go source file instead.
    Assembly source can still refer to the symbol by name
    even without <code>DATA</code> and <code>GLOBL</code> directives.
    A good general rule of thumb is to define all non-<code>RODATA</code>
    symbols in Go instead of in assembly.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/labels.go

    			alt.(*Label).used = true // avoid another error
    		} else {
    			msg = "label %s not declared"
    			code = UndeclaredLabel
    		}
    		check.errorf(jmp.Label, code, msg, name)
    	}
    
    	// spec: "It is illegal to define a label that is never used."
    	for name, obj := range all.elems {
    		obj = resolve(name, obj)
    		if lbl := obj.(*Label); !lbl.used {
    			check.softErrorf(lbl.pos, UnusedLabel, "label %s declared and not used", lbl.name)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    invoking the C compiler to compile the C parts of the package.
    
    The following options are available when running cgo directly:
    
    	-V
    		Print cgo version and exit.
    	-debug-define
    		Debugging option. Print #defines.
    	-debug-gcc
    		Debugging option. Trace C compiler execution and output.
    	-dynimport file
    		Write list of symbols imported by file. Write to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/ast.go

    						t = star.X
    					}
    					if sel, ok := unparen(t).(*ast.SelectorExpr); ok {
    						var buf strings.Builder
    						format.Node(&buf, fset, recvType)
    						error_(sel.Pos(), `cannot define new methods on non-local type %s`, &buf)
    					}
    				}
    			}
    		}
    
    	}
    	if !sawC {
    		error_(ast1.Package, `cannot find import "C"`)
    	}
    
    	// In ast2, strip the import "C" line.
    	if *godefs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/fetch.go

    users would configure go using:
    
    	GOPRIVATE=*.corp.example.com
    	GOPROXY=proxy.example.com
    	GONOPROXY=none
    
    The GOPRIVATE variable is also used to define the "public" and "private"
    patterns for the GOVCS variable; see 'go help vcs'. For that usage,
    GOPRIVATE applies even in GOPATH mode. In that case, it matches import paths
    instead of module paths.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top