Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 462 for original (0.2 sec)

  1. src/runtime/checkptr.go

    	}
    
    	for _, original := range originals {
    		if base == checkptrBase(original) {
    			return
    		}
    	}
    
    	throw("checkptr: pointer arithmetic result points to invalid allocation")
    }
    
    // checkptrBase returns the base address for the allocation containing
    // the address p.
    //
    // Importantly, if p1 and p2 point into the same variable, then
    // checkptrBase(p1) == checkptrBase(p2). However, the converse/inverse
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/testing/iotest/logger_test.go

    	err error
    }
    
    func (w errWriter) Write([]byte) (int, error) {
    	return 0, w.err
    }
    
    func TestWriteLogger(t *testing.T) {
    	olw := log.Writer()
    	olf := log.Flags()
    	olp := log.Prefix()
    
    	// Revert the original log settings before we exit.
    	defer func() {
    		log.SetFlags(olf)
    		log.SetPrefix(olp)
    		log.SetOutput(olw)
    	}()
    
    	lOut := new(strings.Builder)
    	log.SetPrefix("lw: ")
    	log.SetOutput(lOut)
    	log.SetFlags(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 07:03:10 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/sort/slice.go

    	"math/bits"
    )
    
    // Slice sorts the slice x given the provided less function.
    // It panics if x is not a slice.
    //
    // The sort is not guaranteed to be stable: equal elements
    // may be reversed from their original order.
    // For a stable sort, use [SliceStable].
    //
    // The less function must satisfy the same requirements as
    // the Interface type's Less method.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/object_test.go

    // the same Func Object as the original method. See also go.dev/issue/34421.
    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/go/printer/printer_test.go

    		// ...
    		c*t.z
    }
    `
    
    	// parse original
    	f1, err := parser.ParseFile(fset, "src", src, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// pretty-print original
    	var buf bytes.Buffer
    	err = (&Config{Mode: UseSpaces | SourcePos, Tabwidth: 8}).Fprint(&buf, fset, f1)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// parse pretty printed original
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. src/math/asinh.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package math
    
    // The original C code, the long comment, and the constants
    // below are from FreeBSD's /usr/src/lib/msun/src/s_asinh.c
    // and came with this notice. The go code is a simplified
    // version of the original C.
    //
    // ====================================================
    // Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_goroot_symlink.txt

    # Construct a fake GOROOT in $WORK/lib/goroot whose src directory is a symlink
    # to a subdirectory of $WORK/share. This mimics the directory structure reported
    # in https://go.dev/issue/57754.
    #
    # Symlink everything else to the original $GOROOT to avoid needless copying work.
    
    mkdir $WORK/lib/goroot
    mkdir $WORK/share/goroot
    symlink $WORK/share/goroot/src -> $GOROOT${/}src
    symlink $WORK/lib/goroot/src -> ../../share/goroot/src
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:01:07 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/language/match.go

    // tie-breaking rules. The first that succeeds defines the result. The rules are
    // applied in the following order.
    //   1) Original language was defined and was identical.
    //   2) Original region was defined and was identical.
    //   3) Distance between two maximized regions was the smallest.
    //   4) Original script was defined and was identical.
    //   5) Distance from want tag to have tag using the parent relation [see Note 5.]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  9. src/net/rpc/jsonrpc/server.go

    	// Package rpc expects uint64 request IDs.
    	// We assign uint64 sequence numbers to incoming requests
    	// but save the original request ID in the pending map.
    	// When rpc responds, we use the sequence number in
    	// the response to find the original request ID.
    	mutex   sync.Mutex // protects seq, pending
    	seq     uint64
    	pending map[uint64]*json.RawMessage
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/vcstest/hg/hgrepo1.txt

    # corresponding bookmarks.
    # But apparently at some point it did not do so? The original copy of this repo
    # had bookmarks pointing to the base of each branch instead of the tip. 🤔
    # Either way, force the bookmarks we care about to match the original copy of
    # the repo.
    hg book v2 -r 3 --force
    hg book v2.3.4 -r 1 --force
    hg book v3 -r 5 --force
    
    hg log -G --debug
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:48:06 UTC 2022
    - 4.3K bytes
    - Viewed (0)
Back to top