- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for intFunc (0.13 sec)
-
src/cmd/cgo/internal/test/test.go
} } // function pointer variables func callBridge(f C.intFunc) int { return int(C.bridge_int_func(f)) } func callCBridge(f C.intFunc) C.int { return C.bridge_int_func(f) } func testFpVar(t *testing.T) { const expected = 42 f := C.intFunc(C.fortytwo) res1 := C.bridge_int_func(f) if r1 := int(res1); r1 != expected {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
received from Go. For example: package main // typedef int (*intFunc) (); // // int // bridge_int_func(intFunc f) // { // return f(); // } // // int fortytwo() // { // return 42; // } import "C" import "fmt" func main() { f := C.intFunc(C.fortytwo) fmt.Println(int(C.bridge_int_func(f))) // Output: 42 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
cmd/kube-controller-manager/app/apps.go
) func newDaemonSetControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.DaemonSetController, aliases: []string{"daemonset"}, initFunc: startDaemonSetController, } } func startDaemonSetController(ctx context.Context, controllerContext ControllerContext, controllerName string) (controller.Interface, bool, error) { dsc, err := daemon.NewDaemonSetsController(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/link/internal/loong64/asm.go
"cmd/link/internal/loader" "cmd/link/internal/sym" "debug/elf" "log" ) func gentext(ctxt *ld.Link, ldr *loader.Loader) { initfunc, addmoduledata := ld.PrepareAddmoduledata(ctxt) if initfunc == nil { return } o := func(op uint32) { initfunc.AddUint32(ctxt.Arch, op) } // Emit the following function: // // local.dso_init: // la.pcrel $a0, local.moduledata
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 17:26:07 UTC 2024 - 7.5K bytes - Viewed (0) -
cmd/kube-controller-manager/app/core.go
) func newServiceLBControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: cpnames.ServiceLBController, aliases: []string{"service"}, initFunc: startServiceLBController, isCloudProviderController: true, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 39K bytes - Viewed (0) -
cmd/kube-controller-manager/app/bootstrap.go
) func newBootstrapSignerControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.BootstrapSignerController, aliases: []string{"bootstrapsigner"}, initFunc: startBootstrapSignerController, isDisabledByDefault: true, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 2.4K bytes - Viewed (0) -
cmd/kube-controller-manager/app/discovery.go
) func newEndpointSliceControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.EndpointSliceController, aliases: []string{"endpointslice"}, initFunc: startEndpointSliceController, } } func startEndpointSliceController(ctx context.Context, controllerContext ControllerContext, controllerName string) (controller.Interface, bool, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 3.1K bytes - Viewed (0) -
cmd/kube-controller-manager/app/batch.go
"k8s.io/kubernetes/pkg/controller/job" ) func newJobControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.JobController, aliases: []string{"job"}, initFunc: startJobController, } } func startJobController(ctx context.Context, controllerContext ControllerContext, controllerName string) (controller.Interface, bool, error) { jobController, err := job.NewController( ctx,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 2.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/ld.go
initfunc := ctxt.loader.MakeSymbolUpdater(ifs) ctxt.loader.SetAttrReachable(ifs, true) ctxt.loader.SetAttrLocal(ifs, true) initfunc.SetType(sym.STEXT) // Add the init func and/or addmoduledata to Textp. if ctxt.BuildMode == BuildModePlugin { ctxt.Textp = append(ctxt.Textp, amd) } ctxt.Textp = append(ctxt.Textp, initfunc.Sym()) // Create an init array entry
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 8K bytes - Viewed (0) -
cmd/kube-controller-manager/app/rbac.go
) func newClusterRoleAggregrationControllerDescriptor() *ControllerDescriptor { return &ControllerDescriptor{ name: names.ClusterRoleAggregationController, aliases: []string{"clusterrole-aggregation"}, initFunc: startClusterRoleAggregationController, } } func startClusterRoleAggregationController(ctx context.Context, controllerContext ControllerContext, controllerName string) (controller.Interface, bool, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 1.4K bytes - Viewed (0)