Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for gotype (0.15 sec)

  1. src/go/types/gotype.go

    //go:build ignore
    
    // Build this command explicitly: go build gotype.go
    
    /*
    The gotype command, like the front-end of a Go compiler, parses and
    type-checks a single Go package. Errors are reported if the analysis
    fails; otherwise gotype is quiet (unless -v is set).
    
    Without a list of paths, gotype reads from standard input, which
    must provide a single Go source file defining a complete package.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/testdata/stdio/main.swig

       license that can be found in the LICENSE file.  */
    
    /* A trivial example of wrapping a C library using SWIG.  */
    
    %{
    #include <stdio.h>
    #include <stdlib.h>
    %}
    
    %typemap(gotype) const char * "string"
    %typemap(in) const char * %{
    	$1 = malloc($input.n + 1);
    	memcpy($1, $input.p, $input.n);
    	$1[$input.n] = '\0';
    %}
    %typemap(freearg) const char * %{
    	free($1);
    %}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 563 bytes
    - Viewed (0)
  3. src/cmd/fix/gotypes.go

    package main
    
    import (
    	"go/ast"
    	"strconv"
    )
    
    func init() {
    	register(gotypesFix)
    }
    
    var gotypesFix = fix{
    	name: "gotypes",
    	date: "2015-07-16",
    	f:    gotypes,
    	desc: `Change imports of golang.org/x/tools/go/{exact,types} to go/{constant,types}`,
    }
    
    func gotypes(f *ast.File) bool {
    	fixed := fixGoTypes(f)
    	if fixGoExact(f) {
    		fixed = true
    	}
    	return fixed
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/type.go

    func TypeNode(t *types.Type) Node {
    	if n := t.Obj(); n != nil {
    		if n.Type() != t {
    			base.Fatalf("type skew: %v has type %v, but expected %v", n, n.Type(), t)
    		}
    		return n.(*Name)
    	}
    	return newTypeNode(t)
    }
    
    // A DynamicType represents a type expression whose exact type must be
    // computed dynamically.
    type DynamicType struct {
    	miniExpr
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/DumpbinBinaryInfo.groovy

                // 000 0105673E ABS    notype       Static       | @comp.id
                // 001 80000191 ABS    notype       Static       | @feat.00
                // 002 00000000 SECT1  notype       Static       | .drectve
                // 005 00000000 SECT2  notype       Static       | .debug$S
                // 008 00000000 SECT3  notype       Static       | .debug$T
                // 00B 00000000 SECT4  notype       Static       | .text$mn
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/internal/typeconversion/NotationParserBuilderSpec.groovy

            and:
            def parser = NotationParserBuilder.toType(String.class).fromCharSequence(converter).toComposite()
    
            expect:
            parser.parseNotation(new StringBuilder("12")) == "[12]"
        }
    
        def "can add a converter that converts CharSequence notations when the target type is String"() {
            def parser = NotationParserBuilder.toType(String.class).fromCharSequence().toComposite()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  7. src/cmd/fix/gotypes_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func init() {
    	addTestCases(gotypesTests, gotypes)
    }
    
    var gotypesTests = []testCase{
    	{
    		Name: "gotypes.0",
    		In: `package main
    
    import "golang.org/x/tools/go/types"
    import "golang.org/x/tools/go/exact"
    
    var _ = exact.Kind
    
    func f() {
    	_ = exact.MakeBool(true)
    }
    `,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  8. src/net/sockopt_linux.go

    )
    
    func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    	if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 00:33:27 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  9. src/net/sockopt_bsd.go

    		}
    	}
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW && supportsIPv4map() {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    	if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX {
    		// Allow broadcast.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. src/net/sockopt_aix.go

    )
    
    func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    	if (sotype == syscall.SOCK_DGRAM || sotype == syscall.SOCK_RAW) && family != syscall.AF_UNIX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 00:33:27 UTC 2020
    - 1.4K bytes
    - Viewed (0)
Back to top