Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,190 for reserve (0.58 sec)

  1. src/all.bash

    #!/usr/bin/env bash
    # Copyright 2009 The Go Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    set -e
    if [ ! -f make.bash ]; then
    	echo 'all.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    . ./make.bash "$@" --no-banner
    bash run.bash --no-rebuild
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:53:58 UTC 2024
    - 377 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue20910.c

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include <stdlib.h>
    #include <string.h>
    #include "_cgo_export.h"
    
    /* Test calling a Go function with multiple return values.  */
    
    void
    callMulti(void)
    {
    	struct multi_return result = multi();
    	assert(strcmp(result.r0, "multi") == 0);
    	assert(result.r1 == 0);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 459 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue9510a/a.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue9510a
    
    /*
    static double csquare(double a, double b) {
    	__complex__ double d;
    	__real__ d = a;
    	__imag__ d = b;
    	return __real__ (d * d);
    }
    */
    import "C"
    
    func F(a, b float64) float64 {
    	return float64(C.csquare(C.double(a), C.double(b)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 413 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testplugin/testdata/issue18584/main.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "plugin"
    
    func main() {
    	p, err := plugin.Open("plugin.so")
    	if err != nil {
    		panic(err)
    	}
    
    	sym, err := p.Lookup("G")
    	if err != nil {
    		panic(err)
    	}
    	g := sym.(func() bool)
    	if !g() {
    		panic("expected types to match, Issue #18584")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 424 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/s390x/galign.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package s390x
    
    import (
    	"cmd/compile/internal/ssagen"
    	"cmd/internal/obj/s390x"
    )
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &s390x.Links390x
    	arch.REGSP = s390x.REGSP
    	arch.MAXWIDTH = 1 << 50
    
    	arch.ZeroRange = zerorange
    	arch.Ginsnop = ginsnop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 21:05:55 UTC 2021
    - 518 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcarchive/testdata/libgo8/a.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "C"
    
    import (
    	"os"
    	"runtime"
    	"sync/atomic"
    )
    
    var started int32
    
    // Start a goroutine that loops forever.
    func init() {
    	runtime.GOMAXPROCS(1)
    	go func() {
    		for {
    			atomic.StoreInt32(&started, 1)
    		}
    	}()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 529 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testplugin/altpath/testdata/plugin-mismatch/main.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // // No C code required.
    import "C"
    
    // The common package imported here does not match the common package
    // imported by plugin1. A program that attempts to load plugin1 and
    // plugin-mismatch should produce an error.
    import "testplugin/common"
    
    func ReadCommonX() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 466 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/README

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    This command generates Go code (in the parent directory) for all
    the architecture-specific opcodes, blocks, and rewrites. See the
    "Hacking on SSA" section in the parent directory's README.md for
    more information.
    
    To regenerate everything, run "go generate" on the ssa package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 462 bytes
    - Viewed (0)
  9. src/cmd/go/internal/vcweb/dir.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package vcweb
    
    import (
    	"log"
    	"net/http"
    )
    
    // dirHandler is a vcsHandler that serves the raw contents of a directory.
    type dirHandler struct{}
    
    func (*dirHandler) Available() bool { return true }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:00:34 UTC 2022
    - 503 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/asan3_fail.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    void test(int *a) {
    	// Access Go pointer out of bounds.
    	int c = a[5];        // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[5]=%d\n", c);
    }
    */
    import "C"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 486 bytes
    - Viewed (0)
Back to top