Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for arg (0.17 sec)

  1. src/cmd/asm/internal/lex/input.go

    			case scanner.Ident:
    				if !acceptArg {
    					in.Error("bad syntax in definition for macro:", name)
    				}
    				arg := in.Stack.Text()
    				if i := lookup(args, arg); i >= 0 {
    					in.Error("duplicate argument", arg, "in definition for macro:", name)
    				}
    				args = append(args, arg)
    				acceptArg = false
    			default:
    				in.Error("bad definition for macro:", name)
    			}
    		}
    	}
    	var tokens []Token
    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)
  2. src/cmd/cgo/gcc.go

    			fmt.Fprintf(&sb, "var _cgo%d %s = %s; ", i,
    				gofmtLine(ptype), gofmtPos(arg, origArg.Pos()))
    			continue
    		}
    
    		// Check for &a[i].
    		if p.checkIndex(&sb, &sbCheck, arg, i) {
    			continue
    		}
    
    		// Check for &x.
    		if p.checkAddr(&sb, &sbCheck, arg, i) {
    			continue
    		}
    
    		// Check for a[:].
    		if p.checkSlice(&sb, &sbCheck, arg, i) {
    			continue
    		}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. misc/wasm/wasm_exec.js

    				if (offset % 8 !== 0) {
    					offset += 8 - (offset % 8);
    				}
    				return ptr;
    			};
    
    			const argc = this.argv.length;
    
    			const argvPtrs = [];
    			this.argv.forEach((arg) => {
    				argvPtrs.push(strPtr(arg));
    			});
    			argvPtrs.push(0);
    
    			const keys = Object.keys(this.env).sort();
    			keys.forEach((key) => {
    				argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
    			});
    			argvPtrs.push(0);
    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)
  4. src/cmd/buildid/buildid.go

    var wflag = flag.Bool("w", false, "write build ID")
    
    func main() {
    	log.SetPrefix("buildid: ")
    	log.SetFlags(0)
    	flag.Usage = usage
    	flag.Parse()
    	if flag.NArg() != 1 {
    		usage()
    	}
    
    	file := flag.Arg(0)
    	id, err := buildid.ReadFile(file)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !*wflag {
    		fmt.Printf("%s\n", id)
    		return
    	}
    
    	// Keep in sync with src/cmd/go/internal/work/buildid.go:updateBuildID
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Jun 06 14:30:53 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/flags/flags.go

    func Parse() {
    	objabi.Flagparse(Usage)
    	if flag.NArg() == 0 {
    		flag.Usage()
    	}
    
    	// Flag refinement.
    	if *OutputFile == "" {
    		if flag.NArg() != 1 {
    			flag.Usage()
    		}
    		input := filepath.Base(flag.Arg(0))
    		input = strings.TrimSuffix(input, ".s")
    		*OutputFile = fmt.Sprintf("%s.o", input)
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/cgo/doc.go

    	<remote>, so that C code can refer to it by that name. This
    	mechanism makes it possible for C code to call back into Go or
    	to share Go's data.
    
    //go:cgo_ldflag "<arg>"
    
    	In external linking mode, invoke the host linker (usually gcc)
    	with "<arg>" as a command-line argument following the .o files.
    	Note that the arguments are for "gcc", not "ld".
    
    	Example:
    	//go:cgo_ldflag "-lpthread"
    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)
  7. src/cmd/asm/internal/asm/asm.go

    	// currently isn't supported for asm functions.
    	if nameAddr.Sym.ABI() == obj.ABIInternal && flag&obj.NOSPLIT == 0 {
    		p.errorf("TEXT %q: ABIInternal requires NOSPLIT", name)
    	}
    
    	// Next operand is the frame and arg size.
    	// Bizarre syntax: $frameSize-argSize is two words, not subtraction.
    	// Both frameSize and argSize must be simple integers; only frameSize
    	// can be negative.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    			// Otherwise ignored.
    			continue
    		}
    		return tok
    	}
    }
    
    // line consumes a single assembly line from p.lex of the form
    //
    //	{label:} WORD[.cond] [ arg {, arg} ] (';' | '\n')
    //
    // It adds any labels to p.pendingLabels and returns the word, cond,
    // operand list, and true. If there is an error or EOF, it returns
    // ok=false.
    //
    // line may reuse the memory from scratch.
    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)
  9. src/bytes/bytes_test.go

    		if f == nil && fb == nil {
    			continue
    		}
    		var actual string
    		if f != nil {
    			actual = string(f([]byte(tc.in), tc.arg))
    		} else {
    			actual = string(fb([]byte(tc.in), []byte(tc.arg)))
    		}
    		if actual != tc.out {
    			t.Errorf("%s(%q, %q) = %q; want %q", name, tc.in, tc.arg, actual, tc.out)
    		}
    	}
    
    	for _, tc := range trimNilTests {
    		name := tc.f
    		f, fb := toFn(name)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg expvar, type Var interface, String() string
    pkg flag, const ContinueOnError ErrorHandling
    pkg flag, const ExitOnError ErrorHandling
    pkg flag, const PanicOnError ErrorHandling
    pkg flag, func Arg(int) string
    pkg flag, func Args() []string
    pkg flag, func Bool(string, bool, string) *bool
    pkg flag, func BoolVar(*bool, string, bool, string)
    pkg flag, func Duration(string, time.Duration, string) *time.Duration
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top