- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 57 for by (0.08 sec)
-
src/cmd/cgo/internal/testcshared/testdata/main1.c
// 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. #include <stdint.h> #include <stdio.h> #include <dlfcn.h> int check_int8(void* handle, const char* fname, int8_t want) { int8_t (*fn)(); fn = (int8_t (*)())dlsym(handle, fname); if (!fn) { fprintf(stderr, "ERROR: missing %s: %s\n", fname, dlerror()); return 1; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8828/issue8828.c
// Copyright 2014 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. void foo() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 175 bytes - Viewed (0) -
src/cmd/cgo/internal/test/gcc68255/c.h
// 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.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 184 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue20266/issue20266.h
// Copyright 2017 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. #define issue20266 20266 #ifndef def20266 #error "expected def20266 to be defined"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 251 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue27054/egl.h
// Copyright 2018 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 is the relevant part of EGL/egl.h. typedef void *EGLDisplay;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 255 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8148.c
// Copyright 2014 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. #include "_cgo_export.h" int get8148(void) { T t; t.i = 42; return issue8148Callback(&t);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 256 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main_windows.c
// 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. /* * Dummy implementations for Windows, because Windows doesn't * support Unix-style signal handling. */ int install_handler() { return 0; } int check_handler() { return 0;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 343 bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/callback/main.h
// Copyright 2011 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. class Callback { public: virtual ~Callback() { } virtual std::string run() { return "Callback::run"; } }; class Caller { private: Callback *callback_; public: Caller(): callback_(0) { } ~Caller() { delCallback(); } void delCallback() { delete callback_; callback_ = 0; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:07 UTC 2023 - 529 bytes - Viewed (0) -
src/cmd/cgo/internal/test/testx.c
// Copyright 2021 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. #include "_cgo_export.h" void lockOSThreadC(void) { lockOSThreadCallback(); } void issue7978c(uint32_t *sync) { while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 0) ; __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST); while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 2) ;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 582 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue5548_c.c
// Copyright 2013 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. #include "_cgo_export.h" static void clobber_stack() { volatile char a[1024]; int i; for(i = 0; i < sizeof a; i++) a[i] = 0xff; } static int call_go() { GoString s; s.p = "test"; s.n = 4; return issue5548FromC(s, 42); } int issue5548_in_c() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 454 bytes - Viewed (0)