@@ -26,7 +26,7 @@ typedef enum bsp_type_t {
26
26
BSP_INVALID_TYPE = 13
27
27
} bsp_type_t ;
28
28
29
- inline char * bsp_get_type_string (bsp_type_t type ) {
29
+ static inline char * bsp_get_type_string (bsp_type_t type ) {
30
30
if (type == BSP_UINT8 ) {
31
31
return (char * ) "uint8" ;
32
32
} else if (type == BSP_UINT16 ) {
@@ -58,7 +58,7 @@ inline char* bsp_get_type_string(bsp_type_t type) {
58
58
}
59
59
}
60
60
61
- inline size_t bsp_type_size (bsp_type_t type ) {
61
+ static inline size_t bsp_type_size (bsp_type_t type ) {
62
62
if (type == BSP_UINT8 ) {
63
63
return sizeof (uint8_t );
64
64
} else if (type == BSP_UINT16 ) {
@@ -90,7 +90,7 @@ inline size_t bsp_type_size(bsp_type_t type) {
90
90
}
91
91
}
92
92
93
- inline hid_t bsp_get_hdf5_standard_type (bsp_type_t type ) {
93
+ static inline hid_t bsp_get_hdf5_standard_type (bsp_type_t type ) {
94
94
if (type == BSP_UINT8 ) {
95
95
return H5T_STD_U8LE ;
96
96
} else if (type == BSP_UINT16 ) {
@@ -118,7 +118,7 @@ inline hid_t bsp_get_hdf5_standard_type(bsp_type_t type) {
118
118
}
119
119
}
120
120
121
- inline bsp_type_t bsp_get_bsp_type (hid_t type ) {
121
+ static inline bsp_type_t bsp_get_bsp_type (hid_t type ) {
122
122
H5T_class_t cl = H5Tget_class (type );
123
123
H5T_order_t order = H5Tget_order (type );
124
124
H5T_sign_t sign = H5Tget_sign (type );
@@ -166,7 +166,7 @@ inline bsp_type_t bsp_get_bsp_type(hid_t type) {
166
166
// NOTE: This code is a bit silly, but it seems to be the only
167
167
// way to generically determine the HDF5 native types for
168
168
// stdint's fixed width integer types.
169
- inline hid_t bsp_get_hdf5_native_type (bsp_type_t type ) {
169
+ static inline hid_t bsp_get_hdf5_native_type (bsp_type_t type ) {
170
170
if (type == BSP_INT8 || type == BSP_BINT8 ) {
171
171
if (sizeof (int8_t ) == sizeof (char )) {
172
172
return H5T_NATIVE_CHAR ;
@@ -290,7 +290,7 @@ inline hid_t bsp_get_hdf5_native_type(bsp_type_t type) {
290
290
291
291
// Given the maximum value `max_value` that must be stored,
292
292
// pick an unsigned integer type for indices.
293
- inline bsp_type_t bsp_pick_integer_type (size_t max_value ) {
293
+ static inline bsp_type_t bsp_pick_integer_type (size_t max_value ) {
294
294
if (max_value < (size_t ) UINT8_MAX ) {
295
295
return BSP_UINT8 ;
296
296
} else if (max_value < (size_t ) UINT16_MAX ) {
0 commit comments