Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for emit (0.17 sec)

  1. src/cmd/api/main_test.go

    	case *types.Const:
    		if w.isDeprecated(obj) {
    			w.emitf("const %s //deprecated", obj.Name())
    		}
    		w.emitf("const %s %s", obj.Name(), w.typeString(obj.Type()))
    		x := obj.Val()
    		short := x.String()
    		exact := x.ExactString()
    		if short == exact {
    			w.emitf("const %s = %s", obj.Name(), short)
    		} else {
    			w.emitf("const %s = %s  // %s", obj.Name(), short, exact)
    		}
    	case *types.Var:
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // If the command exits with a non-zero exit status, runGcc prints
    // details about what was run and exits.
    // Otherwise runGcc returns the data written to standard output and standard error.
    // Note that for some of the uses we expect useful data back
    // on standard error, but for those uses gcc must still exit 0.
    func runGcc(stdin []byte, args []string) (string, string) {
    	if *debugGcc {
    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. src/all.bat

    L7:setlocal
    L8:
    L9:if exist make.bat goto ok
    L10:echo all.bat must be run from go\src
    L11::: cannot exit: would kill parent command interpreter
    L12:goto end
    L13::ok
    L14:
    L15:call .\make.bat --no-banner --no-local
    L16:if %GOBUILDFAIL%==1 goto end
    L17:call .\run.bat --no-rebuild --no-local
    L18:if %GOBUILDFAIL%==1 goto end
    L19:"%GOTOOLDIR%/dist" banner
    L20:
    L21::end
    L22:if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
    ...
    Batch File
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Apr 19 14:36:22 GMT 2023
    - 543 bytes
    - Viewed (0)
  4. src/bootstrap.bash

    if [ "$GOOS" = "" -o "$GOARCH" = "" ]; then
    	echo "usage: GOOS=os GOARCH=arch ./bootstrap.bash [-force]" >&2
    	exit 2
    fi
    
    forceflag=""
    if [ "$1" = "-force" ]; then
    	forceflag=-force
    	shift
    fi
    
    targ="../../go-${GOOS}-${GOARCH}-bootstrap"
    if [ -e $targ ]; then
    	echo "$targ already exists; remove before continuing"
    	exit 2
    fi
    
    unset GOROOT
    src=$(cd .. && pwd)
    echo "#### Copying to $targ"
    cp -Rp "$src" "$targ"
    Shell Script
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jan 20 17:52:26 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/clean.bat

    nothing to clean
    L19:goto fail
    L20::distok
    L21:
    L22:"%GOBIN%\go" clean -i std
    L23:"%GOBIN%\go" tool dist clean
    L24:"%GOBIN%\go" clean -i cmd
    L25:
    L26:goto end
    L27:
    L28::fail
    L29:set GOBUILDFAIL=1
    L30:
    L31::end
    L32:if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
    ...
    Batch File
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 12 16:59:17 GMT 2022
    - 600 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	case "Call":
    		testCall()
    	case "Callback":
    		testCallback()
    	}
    	println("OK")
    }
    
    func fatal(f string, args ...any) {
    	fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...))
    	os.Exit(1)
    }
    
    type GoCallback struct{}
    
    func (p *GoCallback) Run() string {
    	return "GoCallback.Run"
    }
    
    func testCall() {
    	c := NewCaller()
    	cb := NewCallback()
    
    	c.SetCallback(cb)
    	s := c.Call()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  7. src/cmd/cgo/ast.go

    			// the first error and then (+n more errors).
    			// Instead, turn it into a new Error that will return
    			// details for all the errors.
    			for _, e := range list {
    				fmt.Fprintln(os.Stderr, e)
    			}
    			os.Exit(2)
    		}
    		fatalf("parsing %s: %s", name, err)
    	}
    	return ast1
    }
    
    func sourceLine(n ast.Node) int {
    	return fset.Position(n.Pos()).Line
    }
    
    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)
  8. misc/wasm/wasm_exec.js

    	const encoder = new TextEncoder("utf-8");
    	const decoder = new TextDecoder("utf-8");
    
    	globalThis.Go = class {
    		constructor() {
    			this.argv = ["js"];
    			this.env = {};
    			this.exit = (code) => {
    				if (code !== 0) {
    					console.warn("exit code:", code);
    				}
    			};
    			this._exitPromise = new Promise((resolve) => {
    				this._resolveExitPromise = resolve;
    			});
    			this._pendingEvent = null;
    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)
  9. src/cmd/api/api_test.go

    func TestMain(m *testing.M) {
    	flag.Parse()
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    	build.Default.GOROOT = testenv.GOROOT(nil)
    
    	os.Exit(m.Run())
    }
    
    var (
    	updateGolden = flag.Bool("updategolden", false, "update golden files")
    )
    
    func TestGolden(t *testing.T) {
    	if *flagCheck {
    		// slow, not worth repeating in -check
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/avx512enc/aes_avx512f.s

    // Code generated by avx512test. DO NOT EDIT.
    
    #include "../../../../../../runtime/textflag.h"
    
    TEXT asmtest_aes_avx512f(SB), NOSPLIT, $0
    	VAESDEC X24, X7, X11                               // 62124508ded8 or 6212c508ded8
    	VAESDEC X20, X7, X11                               // 62324508dedc or 6232c508dedc
    	VAESDEC X24, X0, X11                               // 62127d08ded8 or 6212fd08ded8
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue May 22 14:57:15 GMT 2018
    - 29K bytes
    - Viewed (0)
Back to top