Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for Copyright (0.19 sec)

  1. 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.
    
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 184 bytes
    - Viewed (0)
  2. 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;
    C
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 255 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue23555a/a.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 issue23555
    
    // #include <stdlib.h>
    import "C"
    
    func X() {
    	C.free(C.malloc(10))
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 250 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue26430/b.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 a
    
    // typedef struct S ST;
    // struct S { int f; };
    import "C"
    
    func F2(p *C.ST) {
    	p.f = 1
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 261 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue24161arg/def.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.
    
    //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)
  6. src/cmd/cgo/internal/test/issue26743.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.
    
    //go:build cgo
    
    // Issue 26743: typedef of uint leads to inconsistent typedefs error.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 356 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue24161arg/use.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.
    
    //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)
  8. 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)
  9. src/cmd/cgo/internal/swig/testdata/callback/main.go

    // 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.
    
    package main
    
    import (
    	"fmt"
    	"os"
    )
    
    func main() {
    	if len(os.Args) != 2 {
    		fatal("usage: callback testname")
    	}
    	switch os.Args[1] {
    	default:
    		fatal("unknown test %q", os.Args[1])
    	case "Call":
    		testCall()
    	case "Callback":
    		testCallback()
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 1K bytes
    - Viewed (0)
  10. 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)
Back to top