Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for insert (0.14 sec)

  1. src/cmd/cgo/godefs.go

    }
    
    // gofmtLineReplacer is used to put a gofmt-formatted string for an
    // AST expression onto a single line. The lexer normally inserts a
    // semicolon at each newline, so we can replace newline with semicolon.
    // However, we can't do that in cases where the lexer would not insert
    // a semicolon. We only have to worry about cases that can occur in an
    // expression passed through gofmt, which means composite literals and
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/addr2line/addr2line_test.go

    func TestMain(m *testing.M) {
    	if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" {
    		main()
    		os.Exit(0)
    	}
    
    	os.Setenv("GO_ADDR2LINETEST_IS_ADDR2LINE", "1") // Set for subprocesses to inherit.
    	os.Exit(m.Run())
    }
    
    // addr2linePath returns the path to the "addr2line" binary to run.
    func addr2linePath(t testing.TB) string {
    	t.Helper()
    	testenv.MustHaveExec(t)
    
    	addr2linePathOnce.Do(func() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    		// don't want to resolve them to their base types.
    		if *godefs {
    			break
    		}
    	}
    	p.prepareNames(f)
    	if p.rewriteCalls(f) {
    		// Add `import _cgo_unsafe "unsafe"` after the package statement.
    		f.Edit.Insert(f.offset(f.AST.Name.End()), "; import _cgo_unsafe \"unsafe\"")
    	}
    	p.rewriteRef(f)
    }
    
    // loadDefines coerces gcc into spitting out the #defines in use
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    		if b[0]&0x40 != 0 {
    			inv = 0xff
    		}
    
    		var x uint64
    		for i, c := range b {
    			c ^= inv // Inverts c only if inv is 0xff, otherwise does nothing
    			if i == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
Back to top