Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for names (7.76 sec)

  1. src/cmd/asm/internal/arch/arch.go

    	"fmt"
    	"strings"
    )
    
    // Pseudo-registers whose names are the constant name without the leading R.
    const (
    	RFP = -(iota + 1)
    	RSB
    	RSP
    	RPC
    )
    
    // Arch wraps the link architecture object with more architecture-specific information.
    type Arch struct {
    	*obj.LinkArch
    	// Map of instruction names to enumeration.
    	Instructions map[string]obj.As
    	// Map of register names to enumeration.
    	Register map[string]int16
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. lib/time/mkzip.go

    		if err != nil {
    			log.Fatal(err)
    		}
    		if strings.HasSuffix(path, ".zip") {
    			log.Fatalf("unexpected file during walk: %s", path)
    		}
    		name := filepath.ToSlash(path)
    		w, err := zw.CreateRaw(&zip.FileHeader{
    			Name:               name,
    			Method:             zip.Store,
    			CompressedSize64:   uint64(len(data)),
    			UncompressedSize64: uint64(len(data)),
    			CRC32:              crc32.ChecksumIEEE(data),
    		})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/archive/tar/example_test.go

    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    		hdr := &tar.Header{
    			Name: file.Name,
    			Mode: 0600,
    			Size: int64(len(file.Body)),
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    	}
    	if e.isDir {
    		return &openDir{e, r.openReadDir(name), 0}, nil
    	}
    	rc, err := e.file.Open()
    	if err != nil {
    		return nil, err
    	}
    	return rc.(fs.File), nil
    }
    
    func split(name string) (dir, elem string, isDir bool) {
    	if len(name) > 0 && name[len(name)-1] == '/' {
    		isDir = true
    		name = name[:len(name)-1]
    	}
    	i := len(name) - 1
    	for i >= 0 && name[i] != '/' {
    		i--
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. src/cmd/cgo/godefs.go

    	for name, id := range goIdent {
    		if id.Name == name && strings.Contains(name, "_Ctype_union") {
    			if def := typedef[name]; def != nil {
    				id.Name = gofmt(def)
    			}
    		}
    	}
    
    	conf.Fprint(&buf, fset, f.AST)
    
    	return buf.String()
    }
    
    var gofmtBuf strings.Builder
    
    // gofmt returns the gofmt-formatted string for an AST node.
    func gofmt(n interface{}) string {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/callback_windows.go

    // into Go.
    func testCallbackCallersSEH(t *testing.T) {
    	testenv.SkipIfOptimizationOff(t) // This test requires inlining.
    	if runtime.Compiler != "gc" {
    		// The exact function names are not going to be the same.
    		t.Skip("skipping for non-gc toolchain")
    	}
    	if runtime.GOARCH != "amd64" {
    		// TODO: support SEH on other architectures.
    		t.Skip("skipping on non-amd64")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    			}
    			// Invent new Name for the two-result function.
    			n := f.Name["2"+r.Name.Go]
    			if n == nil {
    				n = new(Name)
    				*n = *r.Name
    				n.AddError = true
    				n.Mangle = "_C2func_" + n.Go
    				f.Name["2"+r.Name.Go] = n
    			}
    			expr = getNewIdent(n.Mangle)
    			r.Name = n
    			break
    		}
    	case ctxExpr:
    		switch r.Name.Kind {
    		case "func":
    			if builtinDefs[r.Name.C] != "" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/input.go

    func (in *Input) define() {
    	name := in.macroName()
    	args, tokens := in.macroDefinition(name)
    	in.defineMacro(name, args, tokens)
    }
    
    // defineMacro stores the macro definition in the Input.
    func (in *Input) defineMacro(name string, args []string, tokens []Token) {
    	if in.macros[name] != nil {
    		in.Error("redefinition of macro:", name)
    	}
    	in.macros[name] = &Macro{
    		name:   name,
    		args:   args,
    		tokens: tokens,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    environment variables work in a similar way for C++ code.
    
    # Go references to C
    
    Within the Go file, C's struct field names that are keywords in Go
    can be accessed by prefixing them with an underscore: if x points at a C
    struct with a field named "type", x._type accesses the field.
    C struct fields that cannot be expressed in Go, such as bit fields
    or misaligned data, are omitted in the Go struct, replaced by
    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)
  10. src/archive/zip/reader_test.go

    	entryNames := []string{`/`, `//`, `\`, `/test.txt`}
    	var names []string
    	for _, f := range r.File {
    		names = append(names, f.Name)
    		if _, err := f.Open(); err != nil {
    			t.Errorf("Error opening %q: %v", f.Name, err)
    		}
    		if _, err := r.Open(f.Name); err == nil {
    			t.Errorf("Opening %q with fs.FS API succeeded", f.Name)
    		}
    	}
    	if !reflect.DeepEqual(names, entryNames) {
    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)
Back to top