1 /+ 2 REQUIRED_ARGS: -HC -c -o- 3 PERMUTE_ARGS: 4 TEST_OUTPUT: 5 --- 6 // Automatically generated by Digital Mars D Compiler 7 8 #pragma once 9 10 #include <assert.h> 11 #include <stddef.h> 12 #include <stdint.h> 13 #include <math.h> 14 15 #ifdef CUSTOM_D_ARRAY_TYPE 16 #define _d_dynamicArray CUSTOM_D_ARRAY_TYPE 17 #else 18 /// Represents a D [] array 19 template<typename T> 20 struct _d_dynamicArray final 21 { 22 size_t length; 23 T *ptr; 24 25 _d_dynamicArray() : length(0), ptr(NULL) { } 26 27 _d_dynamicArray(size_t length_in, T *ptr_in) 28 : length(length_in), ptr(ptr_in) { } 29 30 T& operator[](const size_t idx) { 31 assert(idx < length); 32 return ptr[idx]; 33 } 34 35 const T& operator[](const size_t idx) const { 36 assert(idx < length); 37 return ptr[idx]; 38 } 39 }; 40 #endif 41 42 enum class __c_not_special; 43 extern "C" void fn_long(long _param_0); 44 45 extern "C" void fn_ulong(unsigned long _param_0); 46 47 extern "C" void fn_longlong(long long _param_0); 48 49 extern "C" void fn_ulonglong(unsigned long long _param_0); 50 51 extern "C" void fn_long_double(long double _param_0); 52 53 extern "C" void fn_wchar_t(wchar_t _param_0); 54 55 extern "C" void fn_complex_float(_Complex float _param_0); 56 57 extern "C" void fn_complex_double(_Complex double _param_0); 58 59 extern "C" void fn_complex_real(_Complex long double _param_0); 60 61 extern "C" void fn_not_special(__c_not_special _param_0); 62 63 --- 64 +/ 65 66 enum __c_long : int; 67 enum __c_ulong : int; 68 enum __c_longlong : int; 69 enum __c_ulonglong : int; 70 enum __c_long_double : int; 71 enum __c_wchar_t : int; 72 enum __c_complex_float : int; 73 enum __c_complex_double : int; 74 enum __c_complex_real : int; 75 enum __c_not_special : int; 76 fn_long(__c_long)77extern(C) void fn_long(__c_long) {} fn_ulong(__c_ulong)78extern(C) void fn_ulong(__c_ulong) {} fn_longlong(__c_longlong)79extern(C) void fn_longlong(__c_longlong) {} fn_ulonglong(__c_ulonglong)80extern(C) void fn_ulonglong(__c_ulonglong) {} 81 fn_long_double(__c_long_double)82extern(C) void fn_long_double(__c_long_double) {} 83 fn_wchar_t(__c_wchar_t)84extern(C) void fn_wchar_t(__c_wchar_t) {} 85 fn_complex_float(__c_complex_float)86extern(C) void fn_complex_float(__c_complex_float) {} fn_complex_double(__c_complex_double)87extern(C) void fn_complex_double(__c_complex_double) {} fn_complex_real(__c_complex_real)88extern(C) void fn_complex_real(__c_complex_real) {} 89 fn_not_special(__c_not_special)90extern(C) void fn_not_special(__c_not_special) {} 91