@@ -231,29 +231,29 @@ class Anon_Type_1 < ::FFI::Struct
231
231
232
232
typedef :int , :register_t
233
233
234
- attach_function '__bswap_16' , [
235
- :__uint16_t
236
- ] , :__uint16_t
234
+ # attach_function '__bswap_16', [
235
+ # :__uint16_t
236
+ # ], :__uint16_t
237
237
238
- attach_function '__bswap_32' , [
239
- :__uint32_t
240
- ] , :__uint32_t
238
+ # attach_function '__bswap_32', [
239
+ # :__uint32_t
240
+ # ], :__uint32_t
241
241
242
- attach_function '__bswap_64' , [
243
- :__uint64_t
244
- ] , :__uint64_t
242
+ # attach_function '__bswap_64', [
243
+ # :__uint64_t
244
+ # ], :__uint64_t
245
245
246
- attach_function '__uint16_identity' , [
247
- :__uint16_t
248
- ] , :__uint16_t
246
+ # attach_function '__uint16_identity', [
247
+ # :__uint16_t
248
+ # ], :__uint16_t
249
249
250
- attach_function '__uint32_identity' , [
251
- :__uint32_t
252
- ] , :__uint32_t
250
+ # attach_function '__uint32_identity', [
251
+ # :__uint32_t
252
+ # ], :__uint32_t
253
253
254
- attach_function '__uint64_identity' , [
255
- :__uint64_t
256
- ] , :__uint64_t
254
+ # attach_function '__uint64_identity', [
255
+ # :__uint64_t
256
+ # ], :__uint64_t
257
257
258
258
class Anon_Type_2 < ::FFI ::Struct
259
259
layout \
@@ -6348,5 +6348,30 @@ class H5FDSplitterVfdConfigT < ::FFI::Struct
6348
6348
attach_function 'H5Pset_fapl_stdio' , [
6349
6349
:hid_t
6350
6350
] , :herr_t
6351
+
6352
+ # These variables are defined manually because c2ffi can't parse them
6353
+
6354
+ attach_variable :H5T_NATIVE_SCHAR , :H5T_NATIVE_SCHAR_g , :hid_t
6355
+ attach_variable :H5T_NATIVE_UCHAR , :H5T_NATIVE_UCHAR_g , :hid_t
6356
+ attach_variable :H5T_NATIVE_SHORT , :H5T_NATIVE_SHORT_g , :hid_t
6357
+ attach_variable :H5T_NATIVE_USHORT , :H5T_NATIVE_USHORT_g , :hid_t
6358
+ attach_variable :H5T_NATIVE_INT , :H5T_NATIVE_INT_g , :hid_t
6359
+ attach_variable :H5T_NATIVE_UINT , :H5T_NATIVE_UINT_g , :hid_t
6360
+ attach_variable :H5T_NATIVE_LONG , :H5T_NATIVE_LONG_g , :hid_t
6361
+ attach_variable :H5T_NATIVE_ULONG , :H5T_NATIVE_ULONG_g , :hid_t
6362
+ attach_variable :H5T_NATIVE_LLONG , :H5T_NATIVE_LLONG_g , :hid_t
6363
+ attach_variable :H5T_NATIVE_ULLONG , :H5T_NATIVE_ULLONG_g , :hid_t
6364
+ attach_variable :H5T_NATIVE_FLOAT , :H5T_NATIVE_FLOAT_g , :hid_t
6365
+ attach_variable :H5T_NATIVE_DOUBLE , :H5T_NATIVE_DOUBLE_g , :hid_t
6366
+ attach_variable :H5T_NATIVE_LDOUBLE , :H5T_NATIVE_LDOUBLE_g , :hid_t
6367
+ attach_variable :H5T_NATIVE_HADDR , :H5T_NATIVE_HADDR_g , :hid_t
6368
+ attach_variable :H5T_NATIVE_HSIZE , :H5T_NATIVE_HSIZE_g , :hid_t
6369
+ attach_variable :H5T_NATIVE_HSSIZE , :H5T_NATIVE_HSSIZE_g , :hid_t
6370
+ attach_variable :H5T_NATIVE_HERR , :H5T_NATIVE_HERR_g , :hid_t
6371
+ attach_variable :H5T_NATIVE_HBOOL , :H5T_NATIVE_HBOOL_g , :hid_t
6372
+ attach_variable :H5T_C_S1 , :H5T_C_S1_g , :hid_t
6373
+
6374
+ SIZE_MAX = ( 1 << ( ::FFI ::MemoryPointer . new ( :size_t ) . size * 8 ) ) - 1
6375
+ H5T_VARIABLE = SIZE_MAX
6351
6376
end
6352
6377
end
0 commit comments