- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 94 for Extern (0.2 sec)
-
src/cmd/cgo/internal/test/issue29563/weak1.c
// 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. extern int weaksym __attribute__((__weak__)); int weaksym = 42; int foo1() { return weaksym;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 257 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue29563/weak2.c
// 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. extern int weaksym __attribute__((__weak__)); int weaksym = 42; int foo2() { return weaksym;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 257 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gccgo && linux && amd64 package unix import "syscall" //extern gettimeofday func realGettimeofday(*Timeval, *byte) int32 func gettimeofday(tv *Timeval) (err syscall.Errno) { r := realGettimeofday(tv, nil) if r < 0 { return syscall.GetErrno() } return 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 436 bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_syso_issue29253.txt
# for cgo. See issue 29253. [!cgo] stop [!compiler:gc] stop cc -c -o pkg/o.syso ext.c go build main.go -- ext.c -- // +build ignore int f() { return 42; } -- pkg/pkg.go -- package pkg // extern int f(void); import "C" func init() { if v := C.f(); v != 42 { panic(v) } } -- main.go -- package main import _ "pkg"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 450 bytes - Viewed (0) -
src/runtime/debug/debug.s
// Nothing to see here. // This file exists so that the go command knows that parts of the // package are implemented in C, so that it does not instruct the // Go compiler to complain about extern declarations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 425 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan3.go
// Copyright 2015 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. package main /* extern int *GoFn(int *); // Yes, you can have definitions if you use //export, as long as they are weak. int f(void) __attribute__ ((weak)); int f() { int i; int *p = GoFn(&i); if (*p != 12345) return 0; return 1; } */ import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 552 bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/test/test_pluggable_device.cc
==============================================================================*/ #include "tensorflow/c/experimental/stream_executor/stream_executor.h" #include "tensorflow/c/experimental/stream_executor/stream_executor_test_util.h" extern "C" { void SE_InitPlugin(SE_PlatformRegistrationParams* const params, TF_Status* const status) { stream_executor::test_util::PopulateDefaultPlatformRegistrationParams(params); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 18 04:53:02 UTC 2021 - 1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/traceback.go
// This program will crash. // We want the stack trace to include the C functions. // We use a fake traceback, and a symbolizer that dumps a string we recognize. /* #cgo CFLAGS: -g -O0 // Defined in traceback_c.c. extern int crashInGo; int tracebackF1(void); void cgoTraceback(void* parg); void cgoSymbolizer(void* parg); */ import "C" import ( "runtime" "unsafe" ) func init() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 21:47:44 UTC 2020 - 949 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir_registration.cc
limitations under the License. ==============================================================================*/ #include "tensorflow/c/eager/c_api_unified_experimental_internal.h" using tensorflow::tracing::TracingContext; extern "C" { TracingContext* MlirTracingFactory(const char* fn_name, TF_Status* s); } namespace { // Register the tracing implemented in this file as the default tracing engine. static bool register_tracing = [] {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 25 04:40:46 UTC 2020 - 1.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/traceback_c.c
// The C definitions for traceback.go. That file uses //export so // it can't put function definitions in the "C" import comment. #include <stdint.h> char *p; int crashInGo; extern void h1(void); int tracebackF3(void) { if (crashInGo) h1(); else *p = 0; return 0; } int tracebackF2(void) { return tracebackF3(); } int tracebackF1(void) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 21:47:44 UTC 2020 - 1.2K bytes - Viewed (0)