Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for We (0.14 sec)

  1. src/cmd/cgo/ast.go

    	// The printer is not good enough at printing comments in the
    	// right place when we start editing the AST behind its back,
    	// so we use ast1 to look for the doc comments on import "C"
    	// and on exported functions, and we use ast2 for translating
    	// and reprinting.
    	// In cgo mode, we ignore ast2 and just apply edits directly
    	// the text behind ast1. In godefs mode we modify and print ast2.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	tmp := make([]byte, 5)
    	for i := 0; i <= 5; i++ {
    		for j := i; j <= 5; j++ {
    			for k := 0; k <= 6; k++ {
    				// 0 <= i <= j <= 5; 0 <= k <= 6
    				// Check that if we start with a buffer
    				// of length j at offset i and ask for
    				// Next(k), we get the right bytes.
    				buf := NewBuffer(b[0:j])
    				n, _ := buf.Read(tmp[0:i])
    				if n != i {
    					t.Fatalf("Read %d returned %d", i, n)
    				}
    				bb := buf.Next(k)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    and we want to preserve the ability to compile pure Go code that
    imports net without requiring gcc to be present at link time. (In this
    case, the dynamic library requirement is less significant, because the
    only library involved is libc.so, which can usually be assumed
    present.)
    
    This conflict between functionality and the gcc requirement means we
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.js

    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    					// This changes the SP, thus we have to update the SP used by the imported function.
    
    					// func wasmExit(code int32)
    					"runtime.wasmExit": (sp) => {
    						sp >>>= 0;
    						const code = this.mem.getInt32(sp + 8, true);
    						this.exited = true;
    JavaScript
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  5. src/bytes/buffer.go

    		b.buf = make([]byte, n, smallBufferSize)
    		return 0
    	}
    	c := cap(b.buf)
    	if n <= c/2-m {
    		// We can slide things down instead of allocating a new
    		// slice. We only need m+n <= c to slide, but
    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    	} else {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/operand_test.go

    package asm
    
    import (
    	"internal/buildcfg"
    	"strings"
    	"testing"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    )
    
    // A simple in-out test: Do we print what we parse?
    
    func setArch(goarch string) (*arch.Arch, *obj.Link) {
    	buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
    	buildcfg.GOARCH = goarch
    	architecture := arch.Set(goarch, false)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    func (in *Input) hash() bool {
    	// We have a '#'; it must be followed by a known word (define, include, etc.).
    	tok := in.Stack.Next()
    	if tok != scanner.Ident {
    		in.expectText("expected identifier after '#'")
    	}
    	if !in.enabled() {
    		// Can only start including again if we are at #else or #endif but also
    		// need to keep track of nested #if[n]defs.
    		// We let #line through because it might affect errors.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. src/archive/tar/reader_test.go

    		// with NULs in the key.
    		file: "testdata/pax-nul-xattrs.tar",
    		err:  ErrHeader,
    	}, {
    		// BSD tar v3.1.2 rejects a PAX path with NUL in the value, while
    		// GNU tar v1.27.1 simply truncates at first NUL.
    		// We emulate the behavior of BSD since it is strange doing NUL
    		// truncations since PAX records are length-prefix strings instead
    		// of NUL-terminated C-strings.
    		file: "testdata/pax-nul-path.tar",
    		err:  ErrHeader,
    	}, {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    	// is too large we are basically just thrashing the CPU D-cache.
    	// So if the result length is larger than an empirically-found
    	// limit (8KB), we stop growing the source string once the limit
    	// is reached and keep reusing the same source string - that
    	// should therefore be always resident in the L1 cache - until we
    	// have completed the construction of the result.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    next:
    	// Skip newlines.
    	var tok lex.ScanToken
    	for {
    		tok = p.nextToken()
    		// We save the line number here so error messages from this instruction
    		// are labeled with this line. Otherwise we complain after we've absorbed
    		// the terminating newline and the line numbers are off by one in errors.
    		p.lineNum = p.lex.Line()
    		switch tok {
    		case '\n', ';':
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top