Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 328 for Extern (0.11 sec)

  1. src/runtime/testdata/testprogcgo/panic.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.
    
    extern void panic_callback();
    
    void call_callback(void) {
    	panic_callback();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 239 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cgo_undef.txt

    -- go.mod --
    module m
    
    -- a/a.go --
    package a
    
    // #cgo LDFLAGS: -L. -lb
    // extern int CFn(int);
    import "C"
    
    func GoFn(v int) int { return int(C.CFn(C.int(v))) }
    
    -- b/b.c --
    extern int LibFn(int);
    int CFn(int i) { return LibFn(i); }
    
    -- b/lib.c --
    int LibFn(int i) { return i; }
    
    -- c/c.go --
    package c
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 22 20:56:07 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/c/tf_buffer.cc

    #include <cstring>
    
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/mem.h"
    #include "tensorflow/core/platform/protobuf.h"  // IWYU pragma: keep
    #include "tensorflow/core/platform/status.h"
    
    extern "C" {
    
    TF_Buffer* TF_NewBuffer() { return new TF_Buffer{nullptr, 0, nullptr}; }
    
    TF_Buffer* TF_NewBufferFromString(const void* proto, size_t proto_len) {
      void* copy = tensorflow::port::Malloc(proto_len);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue4339.h

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    typedef struct Issue4339 Issue4339;
    
    struct Issue4339 {
    	char *name;
    	void (*bar)(void);
    };
    
    extern Issue4339 exported4339;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 313 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue4273b.c

    // Copyright 2012 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.
    
    #ifdef __ELF__
    extern void _compilerrt_abort_impl(const char *file, int line, const char *func);
    
    void __my_abort(const char *file, int line, const char *func) {
    	_compilerrt_abort_impl(file, line, func);
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 374 bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/cgo/internal/test/backdoor.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    import _ "unsafe"
    
    //go:linkname lockedOSThread runtime.lockedOSThread
    //extern runtime_lockedOSThread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 307 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/sourceset-variant/groovy/src/main/headers/platform.h

    #ifndef PLATFORM_H
    #define PLATFORM_H
    
    extern const char* platform_name;
    
    int max_path_length();
    
    unsigned long long max_memory();
    
    int is_posix_like();
    
    #define KB(x) x
    #define MB(x) KB(x)*1024
    #define GB(x) MB(x)*1024
    #define TB(x) GB(x)*1024
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 267 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/assembler/groovy/src/main/headers/sum.h

    // Ensure that function name is consistently mapped to assembler
    #ifdef _MSC_VER
    int sum(int a, int b);
    #else
    extern int sum(int a, int b) asm("_sum");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 159 bytes
    - Viewed (0)
  10. src/cmd/link/testdata/testBuildFortvOS/main.m

    extern void GoFunc();
    
    int main(int argc, char **argv) {
    	GoFunc();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 23 15:31:01 UTC 2020
    - 70 bytes
    - Viewed (0)
Back to top