- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for studio (0.23 sec)
-
src/cmd/cgo/internal/test/callback_c_gc.c
// Use of this source code is governed by a BSD-style // 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);
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 592 bytes - Viewed (0) -
src/cmd/cgo/internal/swig/swig_test.go
"os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "sync" "testing" ) func TestStdio(t *testing.T) { testenv.MustHaveCGO(t) mustHaveSwig(t) run(t, "testdata/stdio", false) } func TestCall(t *testing.T) { testenv.MustHaveCGO(t) mustHaveSwig(t) mustHaveCxx(t) run(t, "testdata/callback", false, "Call")
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) -
src/cmd/cgo/doc.go
circumvent this by using a C function wrapper. For example: package main // #include <stdio.h> // #include <stdlib.h> // // static void myprint(char* s) { // printf("%s\n", s); // } import "C" import "unsafe" func main() { cs := C.CString("Hello from stdio") C.myprint(cs) C.free(unsafe.Pointer(cs)) } A few special functions convert between Go and C types
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), type Timeval struct, Usec int32 pkg syscall (netbsd-arm64-cgo), type WaitStatus uint32 pkg syscall (netbsd-arm64-cgo), var Stderr int pkg syscall (netbsd-arm64-cgo), var Stdin int pkg syscall (netbsd-arm64-cgo), var Stdout int pkg syscall (netbsd-arm64), const AF_APPLETALK = 16 pkg syscall (netbsd-arm64), const AF_APPLETALK ideal-int pkg syscall (netbsd-arm64), const AF_ARP = 28
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/testdata/stdio/main.swig
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) -
api/go1.2.txt
pkg syscall (freebsd-386-cgo), type Timeval struct, Usec int32 pkg syscall (freebsd-386-cgo), type WaitStatus uint32 pkg syscall (freebsd-386-cgo), var Stderr int pkg syscall (freebsd-386-cgo), var Stdin int pkg syscall (freebsd-386-cgo), var Stdout int pkg syscall (freebsd-amd64), const F_DUP2FD_CLOEXEC = 18 pkg syscall (freebsd-amd64), const F_DUP2FD_CLOEXEC ideal-int
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 18 04:36:59 GMT 2013 - 1.9M bytes - Viewed (2) -
src/cmd/cgo/internal/test/callback_c_gccgo.c
// Use of this source code is governed by a BSD-style // 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) {
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 452 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue1435.go
//go:build linux && cgo package cgotest import ( "fmt" "internal/testenv" "os" "runtime" "sort" "strings" "syscall" "testing" ) // #include <stdio.h> // #include <stdlib.h> // #include <pthread.h> // #include <unistd.h> // #include <sys/types.h> // // pthread_t *t = NULL; // pthread_mutex_t mu; // int nts = 0; // int all_done = 0; //
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Jul 28 21:31:41 GMT 2023 - 7.5K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
return c } // gccDebug runs gcc -gdwarf-2 over the C program stdin and // returns the corresponding DWARF data and, if present, debug data block. func (p *Package) gccDebug(stdin []byte, nnames int) (d *dwarf.Data, ints []int64, floats []float64, strs []string) { runGcc(stdin, p.gccCmd()) isDebugInts := func(s string) bool {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0) -
.gitignore
.*.swp core *.cgo*.go *.cgo*.c _cgo_* _obj _test _testmain.go /VERSION.cache /bin/ /build.out /doc/articles/wiki/*.bin /goinstall.log /last-change /misc/cgo/life/run.out /misc/cgo/stdio/run.out /misc/cgo/testso/main /pkg/ /src/*.*/ /src/cmd/cgo/zdefaultcc.go /src/cmd/dist/dist /src/cmd/go/internal/cfg/zdefaultcc.go /src/cmd/internal/objabi/zbootstrap.go /src/go/build/zcgo.go
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jun 22 19:44:52 GMT 2023 - 958 bytes - Viewed (0)