Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 90 for chars (0.03 sec)

  1. src/cmd/go/internal/work/build_test.go

    		want []string
    	}{
    		// broken quotation
    		{[]byte(`"     \r\n      `), nil},
    		{[]byte(`"-r:foo" "-L/usr/white space/lib "-lfoo bar" "-lbar baz"`), nil},
    		{[]byte(`"-lextra fun arg\\`), nil},
    		// broken char escaping
    		{[]byte(`broken flag\`), nil},
    		{[]byte(`extra broken flag \`), nil},
    		{[]byte(`\`), nil},
    		{[]byte(`"broken\"" "extra" \`), nil},
    	} {
    		got, err := splitPkgConfigOutput(test.in)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue4029.c

    // the opaque handle as a Go uintptr rather than a Go pointer to avoid
    // garbage collector confusion.  See issue 23663.
    
    uintptr_t dlopen4029(char* name, int flags) {
    	return (uintptr_t)(dlopen(name, flags));
    }
    
    uintptr_t dlsym4029(uintptr_t handle, char* name) {
    	return (uintptr_t)(dlsym((void*)(handle), name));
    }
    
    int dlclose4029(uintptr_t handle) {
    	return dlclose((void*)(handle));
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 15:41:19 UTC 2023
    - 781 bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/stackswitch.c

    static ucontext_t uctx_save, uctx_switch;
    
    extern void stackSwitchCallback(void);
    
    char *stack2;
    
    static void *stackSwitchThread(void *arg) {
    	// Simple test: callback works from the normal system stack.
    	stackSwitchCallback();
    
    	// Next, verify that switching stacks doesn't break callbacks.
    
    	char *stack1 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go

    	// "the type chan E if T contains only bidirectional channels, or the type chan<- E or
    	// <-chan E depending on the direction of the directional channels present."
    	for chans := identical; chans < len(terms); chans++ {
    		curr, ok := terms[chans].Type().Underlying().(*types.Chan)
    		if !ok {
    			return nil
    		}
    		if !types.Identical(ch.Elem(), curr.Elem()) {
    			return nil // channel elements are not identical.
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go

    // cgo -godefs -objdir=/tmp/arm64/cgo -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char linux/types.go | go run mkpost.go
    // Code generated by the command above; see README.md. DO NOT EDIT.
    
    //go:build arm64 && linux
    
    package unix
    
    const (
    	SizeofPtr  = 0x8
    	SizeofLong = 0x8
    )
    
    type (
    	_C_long int64
    )
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    }
    
    type Timeval struct {
    	Sec  int64
    	Usec int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/text/template/parse/parse_test.go

    	// dot following a literal value
    	{"dot after integer", "{{1.E}}", hasError, ""},
    	{"dot after float", "{{0.1.E}}", hasError, ""},
    	{"dot after boolean", "{{true.E}}", hasError, ""},
    	{"dot after char", "{{'a'.any}}", hasError, ""},
    	{"dot after string", `{{"hello".guys}}`, hasError, ""},
    	{"dot after dot", "{{..E}}", hasError, ""},
    	{"dot after nil", "{{nil.E}}", hasError, ""},
    	// Wrong pipeline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. src/go/types/operand.go

    	var kind BasicKind
    	switch k {
    	case token.INT:
    		kind = UntypedInt
    	case token.FLOAT:
    		kind = UntypedFloat
    	case token.IMAG:
    		kind = UntypedComplex
    	case token.CHAR:
    		kind = UntypedRune
    	case token.STRING:
    		kind = UntypedString
    	default:
    		panic("unreachable")
    	}
    
    	val := makeFromLiteral(lit, k)
    	if val.Kind() == constant.Unknown {
    		x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/testdata/map2.go

    // Copyright 2019 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 file is like map.go, but instead of importing chans, it contains
    // the necessary functionality at the end of the file.
    
    // Package orderedmap provides an ordered map, implemented as a binary tree.
    package orderedmap
    
    // Map is an ordered map.
    type Map[K, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/module/module.go

    	}
    	if path[0] == '-' {
    		return fmt.Errorf("leading dash in first path element")
    	}
    	for _, r := range path[:i] {
    		if !firstPathOK(r) {
    			return fmt.Errorf("invalid char %q in first path element", r)
    		}
    	}
    	if _, _, ok := SplitPathVersion(path); !ok {
    		return fmt.Errorf("invalid version")
    	}
    	return nil
    }
    
    // CheckImportPath checks that an import path is valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. src/encoding/xml/read_test.go

    	for {
    		t, err := d.Token()
    		if err == io.EOF { // found end of element
    			break
    		}
    		if err != nil {
    			return err
    		}
    		if char, ok := t.(CharData); ok {
    			m.body += string(char)
    		}
    	}
    	return nil
    }
    
    var _ Unmarshaler = (*MyCharData)(nil)
    
    func (m *MyCharData) UnmarshalXMLAttr(attr Attr) error {
    	panic("must not call")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top