- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 130 for swig (0.24 sec)
-
src/cmd/cgo/internal/swig/testdata/stdio/main.swig
/* 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. */ /* A trivial example of wrapping a C library using SWIG. */ %{ #include <stdio.h> #include <stdlib.h> %} %typemap(gotype) const char * "string" %typemap(in) const char * %{ $1 = malloc($input.n + 1); memcpy($1, $input.p, $input.n); $1[$input.n] = '\0'; %}
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 563 bytes - Viewed (0) -
src/cmd/cgo/internal/swig/swig_test.go
}) // The first call will skip t with a nice message. On later calls, we just skip. if !haveSwig { t.Skip("swig not found") } } func mustHaveSwigOnce(t *testing.T) { swig, err := exec.LookPath("swig") if err != nil { t.Skipf("swig not in PATH: %s", err) } // Check that swig was installed with Go support by checking // that a go directory exists inside the swiglib directory.
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 3.7K bytes - Viewed (0) -
tensorflow/c/c_api_macros.h
limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_C_C_API_MACROS_H_ #define TENSORFLOW_C_C_API_MACROS_H_ #ifdef SWIG #define TF_CAPI_EXPORT #else #if defined(_WIN32) #ifdef TF_COMPILE_LIBRARY #define TF_CAPI_EXPORT __declspec(dllexport) #else #define TF_CAPI_EXPORT __declspec(dllimport) #endif // TF_COMPILE_LIBRARY #else
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat May 13 04:44:45 GMT 2023 - 1.6K bytes - Viewed (1) -
src/cmd/cgo/internal/test/callback_c_gccgo.c
// license that can be found in the LICENSE file. //go:build gccgo #include "_cgo_export.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> /* Test calling panic from C. This is what SWIG does. */ extern void _cgo_panic(const char *); extern void *_cgo_allocate(size_t); void callPanic(void) { _cgo_panic("panic from C");
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 452 bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.packages.txt
libxml2-dev libxslt1-dev libzmq3-dev mlocate moreutils openjdk-11-jdk openjdk-11-jre-headless openssl patchelf pkg-config python3-dev python3-setuptools rsync software-properties-common sudo swig unzip vim wget zip
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Thu Feb 15 15:23:28 GMT 2024 - 485 bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/stdio/main.go
// 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. // This file is here just to cause problems. // main.swig turns into a file also named main.go. // Make sure cmd/go keeps them separate // when both are passed to cgo. package main //int F(void) { return 1; } import "C" import ( "fmt" "os" )
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:07 GMT 2023 - 975 bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback_c_gc.c
// license that can be found in the LICENSE file. //go:build gc #include "_cgo_export.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> /* Test calling panic from C. This is what SWIG does. */ extern void crosscall2(void (*fn)(void *, int), void *, int); extern void _cgo_panic(void *, int); extern void _cgo_allocate(void *, int); void callPanic(void) { struct { const char *p; } a;
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 592 bytes - Viewed (0) -
tensorflow/c/checkpoint_reader.h
namespace tensorflow { namespace checkpoint { class TensorSliceReader; // A wrapper around BundleReader (for V2 checkpoints) and // checkpoint::TensorSliceReader (for V1), that is more easily SWIG wrapped for // other languages. // // The class currently only interacts with single-slice (i.e., non-partitioned) // variables. class CheckpointReader { public:
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Oct 12 08:49:52 GMT 2023 - 3.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.h
// TODO(fishx): Move these monitoring APIs into a separate file. // ----------------------------------------------------------------------------- // Monitoring Counter APIs. // These APIs de-templated monitoring Counter for swig. typedef struct TFE_MonitoringCounterCell TFE_MonitoringCounterCell; // Atomically increments the value of the cell. The value must be non-negative. TF_CAPI_EXPORT extern void TFE_MonitoringCounterCellIncrementBy(
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Viewed (0) -
ci/devinfra/docker_windows/Dockerfile
choco install peazip.install; \ choco install peazip.portable; \ choco install php --version 7.2.0; \ choco install protoc --version 3.2.0; \ choco install ruby --version 2.5.0.1; \ choco install swig --version 3.0.9; \ choco install sysinternals; \ choco install unrar; \ choco install unzip; \ choco install vcredist140; \ choco install vcredist2015; \ choco install vim; \
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Fri Aug 18 17:24:20 GMT 2023 - 13.6K bytes - Viewed (0)