Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for flagval (0.54 sec)

  1. src/cmd/compile/internal/inline/inlheur/testdata/props/acrosscall.go

    // callsite: acrosscall.go:58:9|0 flagstr "" flagval 0 score 8 mask 0 maskstr ""
    // <endcallsites>
    // <endfuncpreamble>
    func T_feeds_if_via_call(x int) {
    	feedsif(x)
    }
    
    // acrosscall.go T_feeds_if_via_call_conditional 69 0 1
    // ParamFlags
    //   0 ParamMayFeedIfOrSwitch
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[64],"ResultFlags":null}
    // callsite: acrosscall.go:71:10|0 flagstr "" flagval 0 score 8 mask 0 maskstr ""
    // <endcallsites>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go

    // {"Flags":0,"ParamFlags":[96,0],"ResultFlags":null}
    // callsite: calls.go:103:9|0 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:112:9|1 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:115:9|2 flagstr "" flagval 0 score 2 mask 0 maskstr ""
    // callsite: calls.go:119:12|3 flagstr "CallSiteOnPanicPath" flagval 2 score 102 mask 1 maskstr "panicPathAdj"
    // <endcallsites>
    // <endfuncpreamble>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    // callsite: returns2.go:42:18|0 flagstr "" flagval 0 score -51 mask 8200 maskstr "passConstToIfAdj|returnFeedsInlinableFuncToIndCallAdj"
    // callsite: returns2.go:44:20|1 flagstr "" flagval 0 score -23 mask 8192 maskstr "returnFeedsInlinableFuncToIndCallAdj"
    // <endcallsites>
    // <endfuncpreamble>
    func T_returned_inlinable_func_feeds_indirect_call(q int) {
    	f := returnsFunc(10)
    	f(q)
    	f2 := returnsFunc2()
    	f2(q)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/inlheur/testdata/props/funcflags.go

    		os.Exit(1)
    	}
    	os.Exit(2)
    }
    
    // funcflags.go T_exitinexpr 281 0 1
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[0],"ResultFlags":null}
    // callsite: funcflags.go:286:18|0 flagstr "CallSiteOnPanicPath" flagval 2 score 102 mask 1 maskstr "panicPathAdj"
    // <endcallsites>
    // <endfuncpreamble>
    func T_exitinexpr(x int) {
    	// This function does indeed unconditionally call exit, since the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    		}
    		// expected format: "// callsite: <expanded pos> flagstr <desc> flagval <flags> score <score> mask <scoremask> maskstr <scoremaskstring>"
    		fields := strings.Fields(line)
    		if len(fields) != 12 {
    			return funcInlHeur, nil, fmt.Errorf("malformed callsite (nf=%d) %s line %d: %s", len(fields), dr.p, dr.ln, line)
    		}
    		if fields[2] != "flagstr" || fields[4] != "flagval" || fields[6] != "score" || fields[8] != "mask" || fields[10] != "maskstr" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  6. src/flag/flag.go

    If you like, you can bind the flag to a variable using the Var() functions.
    
    	var flagvar int
    	func init() {
    		flag.IntVar(&flagvar, "flagname", 1234, "help message for flagname")
    	}
    
    Or you can create custom flags that satisfy the Value interface (with
    pointer receivers) and couple them to flag parsing by
    
    	flag.Var(&flagVal, "name", "help message for flagname")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/util/cmdutil_test.go

    		cfg       interface{}
    		flagValue interface{}
    		expected  interface{}
    	}{
    		{
    			name:      "string: config is overridden by the flag",
    			flag:      "foo",
    			cfg:       "foo_cfg",
    			flagValue: "foo_flag",
    			expected:  "foo_flag",
    		},
    		{
    			name:      "bool: config is overridden by the flag",
    			flag:      "bar",
    			cfg:       true,
    			flagValue: false,
    			expected:  false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/flag/flag_test.go

    // Declare a user-defined flag type.
    type flagVar []string
    
    func (f *flagVar) String() string {
    	return fmt.Sprint([]string(*f))
    }
    
    func (f *flagVar) Set(value string) error {
    	*f = append(*f, value)
    	return nil
    }
    
    func TestUserDefined(t *testing.T) {
    	var flags FlagSet
    	flags.Init("test", ContinueOnError)
    	flags.SetOutput(io.Discard)
    	var v flagVar
    	flags.Var(&v, "v", "usage")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  9. src/go/constant/value.go

    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    func itof(x intVal) floatVal     { return floatVal{newFloat().SetInt(x.val)} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    func vtoc(x Value) complexVal    { return complexVal{x, int64Val(0)} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go

    )
    
    var flagMap = map[string]int{
    	kubeadmapi.UnmountFlagMNTForce:       unix.MNT_FORCE,
    	kubeadmapi.UnmountFlagMNTDetach:      unix.MNT_DETACH,
    	kubeadmapi.UnmountFlagMNTExpire:      unix.MNT_EXPIRE,
    	kubeadmapi.UnmountFlagUmountNoFollow: unix.UMOUNT_NOFOLLOW,
    }
    
    func flagsToInt(flags []string) int {
    	res := 0
    	for _, f := range flags {
    		res |= flagMap[f]
    	}
    	return res
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top