Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 231 for dotypedef (0.32 sec)

  1. src/cmd/cgo/internal/test/issue26430.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 26430: incomplete typedef leads to inconsistent typedefs error.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 359 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testerrors/testdata/issue28721.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // cgo should reject the use of mangled C names.
    
    package main
    
    /*
    typedef struct a {
    	int i;
    } a;
    void fn(void) {}
    */
    import "C"
    
    type B _Ctype_struct_a // ERROR HERE
    
    var a _Ctype_struct_a // ERROR HERE
    
    type A struct {
    	a *_Ctype_struct_a // ERROR HERE
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 506 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testerrors/testdata/issue14669.go

    // license that can be found in the LICENSE file.
    
    // Issue 14669: test that fails when build with CGO_CFLAGS selecting
    // optimization.
    
    package p
    
    /*
    const int E = 1;
    
    typedef struct s {
    	int       c;
    } s;
    */
    import "C"
    
    func F() {
    	_ = C.s{
    		c: C.E,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 368 bytes
    - Viewed (0)
  4. tensorflow/c/tf_shape_internal.h

    #ifndef TENSORFLOW_C_TF_SHAPE_INTERNAL_H_
    #define TENSORFLOW_C_TF_SHAPE_INTERNAL_H_
    
    #include "tensorflow/c/conversion_macros.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    
    typedef struct TF_Shape TF_Shape;
    
    namespace tensorflow {
    
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::PartialTensorShape, TF_Shape);
    
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 00:25:41 UTC 2020
    - 1K bytes
    - Viewed (0)
  5. tensorflow/c/tf_status.h

    #include "xla/tsl/c/tsl_status.h"
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    typedef struct TSL_Status TF_Status;
    
    // --------------------------------------------------------------------------
    // TF_Code holds an error code.  The enum values here are identical to
    // corresponding values in error_codes.proto.
    typedef TSL_Code TF_Code;
    // LINT.IfChange
    #define TF_OK TSL_OK
    #define TF_CANCELLED TSL_CANCELLED
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/bigstack_windows.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 main
    
    /*
    typedef void callback(char*);
    extern void CallGoBigStack1(char*);
    extern void bigStack(callback*);
    */
    import "C"
    
    func init() {
    	register("BigStack", BigStack)
    }
    
    func BigStack() {
    	// Create a large thread stack and call back into Go to test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 12 16:07:12 UTC 2021
    - 586 bytes
    - Viewed (0)
  7. src/crypto/internal/boring/build-goboring.sh

    	print "check_value(" name ", " val ")" > "goboringcrypto.x"
    	next
    }
    enum {
    	print FILENAME ":" NR ": unexpected line in enum: " $0 > "/dev/stderr"
    	exitcode = 1
    	next
    }
    
    # Check struct sizes.
    /^typedef struct / && $NF ~ /^GO_/ {
    	name = $NF
    	sub(/^GO_/, "", name)
    	sub(/;$/, "", name)
    	print "check_size(" name ")" > "goboringcrypto.x"
    	next
    }
    
    # Check function prototypes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue24161e2/main.go

    #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;
      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/runtime/testdata/testwinlib/main.go

    //go:build windows && cgo
    // +build windows,cgo
    
    package main
    
    // #include <windows.h>
    // typedef void(*callmeBackFunc)();
    // static void bridgeCallback(callmeBackFunc callback) {
    //	callback();
    //}
    import "C"
    
    // CallMeBack call backs C code.
    //
    //export CallMeBack
    func CallMeBack(callback C.callmeBackFunc) {
    	C.bridgeCallback(callback)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 08 15:44:05 UTC 2022
    - 925 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cgo_badmethod_issue57926.txt

    stderr 'cannot define new methods on non-local type C.T'
    stderr 'cannot define new methods on non-local type \*C.T'
    ! stderr 'Alias'
    
    -- go.mod --
    module example.com
    go 1.12
    
    -- a.go --
    package a
    
    /*
    typedef int T;
    */
    import "C"
    
    func (C.T) f() {}
    func (recv *C.T) g() {}
    
    // The check is more education than enforcement,
    // and is easily defeated using a type alias.
    type Alias = C.T
    func (Alias) h() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 12:55:28 UTC 2023
    - 562 bytes
    - Viewed (0)
Back to top