Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 249 for prag (0.04 sec)

  1. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    	//
    	// Unfortunately, it provides no means of escaping interior quotation marks
    	// within that program name, and we have no way to report them here.
    	prog := args[0]
    	mustQuote := len(prog) == 0
    	for i := 0; i < len(prog); i++ {
    		c := prog[i]
    		if c <= ' ' || (c == '"' && i == 0) {
    			// Force quotes for not only the ASCII space and tab as described in the
    			// MSDN article, but also ASCII control characters.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/gcflags_patterns.txt

    stderr 'link.* -X=x.y=z'
    
    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. test/crlf.go

    // Test source files and strings containing \r and \r\n.
    
    package main
    
    import (
    	"fmt"
    	"strings"
    )
    
    func main() {
    	prog = strings.Replace(prog, "BQ", "`", -1)
    	prog = strings.Replace(prog, "CR", "\r", -1)
    	fmt.Print(prog)
    }
    
    var prog = `
    package main
    CR
    
    import "fmt"
    
    var CR s = "hello\n" + CR
    	" world"CR
    
    var t = BQhelloCR
     worldBQ
    
    var u = BQhCReCRlCRlCRoCR
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 20 15:45:43 UTC 2012
    - 782 bytes
    - Viewed (0)
  4. src/cmd/internal/obj/util.go

    		sc += ".U"
    	}
    	return sc
    }
    
    func (p *Prog) String() string {
    	if p == nil {
    		return "<nil Prog>"
    	}
    	if p.Ctxt == nil {
    		return "<Prog without ctxt>"
    	}
    	return fmt.Sprintf("%.5d (%v)\t%s", p.Pc, p.Line(), p.InstructionString())
    }
    
    func (p *Prog) InnermostString(w io.Writer) {
    	if p == nil {
    		io.WriteString(w, "<nil Prog>")
    		return
    	}
    	if p.Ctxt == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/traceback_c.c

    	uintptr_t   entry;
    	uintptr_t   more;
    	uintptr_t   data;
    };
    
    void cgoTraceback(void* parg) {
    	struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg);
    	arg->buf[0] = 1;
    	arg->buf[1] = 2;
    	arg->buf[2] = 3;
    	arg->buf[3] = 0;
    }
    
    void cgoSymbolizer(void* parg) {
    	struct cgoSymbolizerArg* arg = (struct cgoSymbolizerArg*)(parg);
    	if (arg->pc != arg->data + 1) {
    		arg->file = "unexpected data";
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 21:47:44 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/dwarf_test.go

    	t.Parallel()
    
    	mustHaveDWARF(t)
    
    	const prog = `package main
    %s
    func main() {}
    `
    	tests := []struct {
    		name string
    		prog string
    		file string
    		line int64
    	}{
    		{
    			name: "normal",
    			prog: fmt.Sprintf(prog, ""),
    			file: "test.go",
    			line: 3,
    		},
    		{
    			name: "line-directive",
    			prog: fmt.Sprintf(prog, "//line /foobar.go:200"),
    			file: "foobar.go",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                    off = msg.length;
    
                frag = null;
                fbuf = null;
                while (msg.isFlagSet(DCERPC_LAST_FRAG) == false) {
                    int stub_frag_len;
    
                    if (frag == null) {
                        frag = new byte[max_recv];
                        fbuf = new NdrBuffer(frag, 0);
                    }
    
                    doReceiveFragment(frag, isDirect);
                    fbuf.reset();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  8. src/cmd/link/dwarf_test.go

    		t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH)
    	}
    
    	t.Parallel()
    
    	for _, prog := range []string{"testprog", "testprogcgo"} {
    		prog := prog
    		expectDWARF := expectDWARF
    		if runtime.GOOS == "aix" && prog == "testprogcgo" {
    			extld := os.Getenv("CC")
    			if extld == "" {
    				extld = "gcc"
    			}
    			extldArgs, err := quoted.Split(extld)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cover_test_localpkg_filepath.txt

    [short] skip
    
    # collect coverage profile in text format
    go test -coverprofile=blah.prof prog.go prog_test.go
    
    # should not contain cmd-line pseudo-import-path
    grep prog.go blah.prof
    grep $PWD blah.prof
    ! grep command-line-arguments blah.prof
    
    -- prog.go --
    package main
    
    func Mumble(x int) int {
    	if x < 0 {
    		return -x
    	}
    	return 42
    }
    
    func Grumble(y int) int {
    	return -y
    }
    
    func main() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 14:11:54 UTC 2022
    - 571 bytes
    - Viewed (0)
  10. test/turing.go

    var p, pc int
    var a [30000]byte
    
    const prog = "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.!"
    
    func scan(dir int) {
    	for nest := dir; dir*nest > 0; pc += dir {
    		switch prog[pc+dir] {
    		case ']':
    			nest--
    		case '[':
    			nest++
    		}
    	}
    }
    
    func main() {
    	r := ""
    	for {
    		switch prog[pc] {
    		case '>':
    			p++
    		case '<':
    			p--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:48:19 UTC 2012
    - 893 bytes
    - Viewed (0)
Back to top