- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for include (0.16 sec)
-
src/cmd/cgo/internal/test/callback_c_gc.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. //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/doc.go
may include command line options. The cgo tool will always invoke the C compiler with the source file's directory in the include path; i.e. -I${SRCDIR} is always implied. This means that if a header file foo/bar.h exists both in the source directory and also in the system include directory (or some other place specified by a -I flag), then "#include <foo/bar.h>" will always find the
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) -
src/cmd/cgo/internal/test/issue23555a/a.go
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 250 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161arg/def.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin package issue24161arg /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" func test24161array() C.CFArrayRef { return C.CFArrayCreate(0, nil, 0, nil)
Go - Registered: Tue Apr 09 11:13:10 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 382 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161arg/use.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin package issue24161arg /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" import "testing" func Test(t *testing.T) { a := test24161array() C.CFArrayCreateCopy(0, a)
Go - Registered: Tue Apr 09 11:13:10 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 398 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue26213/test26213.go
// 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. package issue26213 /* #include "jni.h" */ import "C" import ( "testing" ) func Test26213(t *testing.T) { var x1 C.jobject = 0 // Note: 0, not nil. That makes sure we use uintptr for these types. _ = x1 var x2 C.jclass = 0 _ = x2 var x3 C.jthrowable = 0
Go - Registered: Tue Mar 26 11:13:08 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 835 bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
} // #include processing. func (in *Input) include() { // Find and parse string. tok := in.Stack.Next() if tok != scanner.String { in.expectText("expected string after #include") } name, err := strconv.Unquote(in.Stack.Text()) if err != nil { in.Error("unquoting include file name: ", err) } in.expectNewline("#include") // Push tokenizer for file onto stack.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 12.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161e1/main.go
//go:build darwin package issue24161e1 /* #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework CoreFoundation -framework Security #include <TargetConditionals.h> #include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h> #if TARGET_OS_IPHONE == 0 && __MAC_OS_X_VERSION_MAX_ALLOWED < 101200 typedef CFStringRef SecKeyAlgorithm;
Go - Registered: Tue Mar 26 11:13:08 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 1K 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) -
src/cmd/cgo/internal/test/callback_c.c
// 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. #include <string.h> #include "_cgo_export.h" void callback(void *f) { // use some stack space volatile char data[64*1024]; data[0] = 0; goCallback(f); data[sizeof(data)-1] = 0; } void callGoFoo(void) { extern void goFoo(void);
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 933 bytes - Viewed (0)