Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for comment (0.2 sec)

  1. misc/wasm/wasm_exec.js

    							const result = Reflect.apply(m, v, args);
    							sp = this._inst.exports.getsp() >>> 0; // see comment above
    							storeValue(sp + 56, result);
    							this.mem.setUint8(sp + 64, 1);
    						} catch (err) {
    							sp = this._inst.exports.getsp() >>> 0; // see comment above
    							storeValue(sp + 56, err);
    							this.mem.setUint8(sp + 64, 0);
    						}
    					},
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/cmd/cgo/ast.go

    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    		switch c[1] {
    		case '/':
    			//-style comment (no newline at the end)
    			c = c[2:] + "\n"
    		case '*':
    			/*-style comment */
    			c = c[2 : len(c)-2]
    		}
    		pieces = append(pieces, c)
    	}
    	return strings.Join(pieces, "")
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    	// Information describing expected zip file content.
    	// First, reading the entire content should produce the error ContentErr.
    	// Second, if ContentErr==nil, the content should match Content.
    	// If content is large, an alternative to setting Content is to set File,
    	// which names a file in the testdata/ directory containing the
    	// uncompressed expected content.
    	// If content is very large, an alternative to setting Content or File
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    package main
    
    /*
    Implementation details.
    
    Cgo provides a way for Go programs to call C code linked into the same
    address space. This comment explains the operation of cgo.
    
    Cgo reads a set of Go source files and looks for statements saying
    import "C". If the import has a doc comment, that comment is
    taken as literal C code to be used as a preamble to any C code
    generated by cgo. A typical preamble #includes necessary definitions:
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    </pre>
    
    <h2 id="Lexical_elements">Lexical elements</h2>
    
    <h3 id="Comments">Comments</h3>
    
    <p>
    Comments serve as program documentation. There are two forms:
    </p>
    
    <ol>
    <li>
    <i>Line comments</i> start with the character sequence <code>//</code>
    and stop at the end of the line.
    </li>
    <li>
    <i>General comments</i> start with the character sequence <code>/*</code>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/archive/zip/fuzz_test.go

    			return
    		}
    
    		type file struct {
    			header  *FileHeader
    			content []byte
    		}
    		files := []file{}
    
    		for _, f := range r.File {
    			fr, err := f.Open()
    			if err != nil {
    				continue
    			}
    			content, err := io.ReadAll(fr)
    			if err != nil {
    				continue
    			}
    			files = append(files, file{header: &f.FileHeader, content: content})
    			if _, err := r.Open(f.Name); err != nil {
    				continue
    			}
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/swig/swig_test.go

    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Callback") })
    }
    
    func run(t *testing.T, dir string, lto bool, args ...string) {
    	runArgs := append([]string{"run", "."}, args...)
    	cmd := exec.Command("go", runArgs...)
    	cmd.Dir = dir
    	if lto {
    		const cflags = "-flto -Wno-lto-type-mismatch -Wno-unknown-warning-option"
    		cmd.Env = append(cmd.Environ(),
    			"CGO_CFLAGS="+cflags,
    			"CGO_CXXFLAGS="+cflags,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/all.bat

    if...
    Batch File
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 19 14:36:22 GMT 2023
    - 543 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue18146.go

    	defer func() {
    		for _, cmd := range cmds {
    			cmd.Process.Kill()
    		}
    	}()
    
    	args := append(append([]string(nil), os.Args[1:]...), "-test.run=^Test18146$")
    	for n := attempts; n > 0; n-- {
    		cmd := exec.Command(os.Args[0], args...)
    		cmd.Env = append(os.Environ(), "test18146=exec")
    		buf := bytes.NewBuffer(nil)
    		cmd.Stdout = buf
    		cmd.Stderr = buf
    		if err := cmd.Start(); err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/bootstrap.bash

    echo
    cd src
    ./make.bash --no-banner $forceflag
    gohostos="$(../bin/go env GOHOSTOS)"
    gohostarch="$(../bin/go env GOHOSTARCH)"
    goos="$(../bin/go env GOOS)"
    goarch="$(../bin/go env GOARCH)"
    
    # NOTE: Cannot invoke go command after this point.
    # We're about to delete all but the cross-compiled binaries.
    cd ..
    if [ "$goos" = "$gohostos" -a "$goarch" = "$gohostarch" ]; then
    	# cross-compile for local system. nothing to copy.
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Jan 20 17:52:26 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top