Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 231 for dotypedef (0.14 sec)

  1. src/cmd/cgo/internal/test/issue52611b/b.go

    // Copyright 2022 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 issue52611b
    
    /*
    typedef struct Bar {
        int X;
    } Bar;
    */
    import "C"
    
    func GetX2(bar *C.struct_Bar) int32 {
    	return int32(bar.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 299 bytes
    - Viewed (0)
  2. tensorflow/c/experimental/pluggable_profiler/pluggable_profiler.h

    #define TP_PATCH 1
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // --------------------------------------------------------------------------
    // TP_Profiler holds a pointer to device type filed by the plug-in.
    typedef struct TP_Profiler {
      size_t struct_size;
      void* ext;  // free-form data set by plugin.
      const char* device_type;
    
      // The struct size must be updated when adding new members.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 14 20:04:34 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  3. 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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 356 bytes
    - Viewed (0)
  4. src/debug/dwarf/testdata/bitfields.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Linux ELF:
    gcc -gdwarf-4 -m64 -c bitfields.c -o bitfields.elf4
    */
    
    typedef struct another_struct {
      unsigned short quix;
      int xyz[0];
      unsigned  x:1;
      long long array[40];
    } t_another_struct;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 28 20:07:54 UTC 2022
    - 381 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue8331.h

    // Copyright 2014 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.
    
    typedef struct {
    	int i;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 198 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testgodefs/testdata/anonunion.go

    // This file tests that when cgo -godefs sees a struct with a field
    // that is an anonymous union, the first field in the union is
    // promoted to become a field of the struct.  See issue 6677 for
    // background.
    
    /*
    typedef struct {
    	union {
    		long l;
    		int c;
    	};
    } t;
    */
    import "C"
    
    // Input for cgo -godefs.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 515 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue41761.go

    // Copyright 2020 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 cgotest
    
    /*
       typedef struct S41761 S41761;
    */
    import "C"
    
    import (
    	"cmd/cgo/internal/test/issue41761a"
    	"testing"
    )
    
    func test41761(t *testing.T) {
    	var x issue41761a.T
    	_ = (*C.struct_S41761)(x.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 371 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue41761a/a.go

    // Copyright 2020 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 issue41761a
    
    /*
       typedef struct S41761 S41761;
    */
    import "C"
    
    type T struct {
    	X *C.S41761
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 263 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue24161e0/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
    - 919 bytes
    - Viewed (0)
  10. test/fixedbugs/bug007.go

    package main
    
    type (
    	Point struct {
    		x, y float64
    	}
    	Polar Point
    )
    
    func main() {
    }
    
    /*
    bug7.go:5: addtyp: renaming Point to Polar
    main.go.c:14: error: redefinition of typedef ‘_T_2’
    main.go.c:13: error: previous declaration of ‘_T_2’ was here
    main.go.c:16: error: redefinition of ‘struct _T_2’
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 481 bytes
    - Viewed (0)
Back to top