From: Kevin Day Date: Sat, 14 Jan 2023 02:31:35 +0000 (-0600) Subject: Bugfox: The type macros in type.h are missing 'f_' or have spurious '_type' in the... X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ba4e067055e8b3e002bb8b33a28f2a1170f13058;p=fll Bugfox: The type macros in type.h are missing 'f_' or have spurious '_type' in the name. --- diff --git a/level_0/f_type/c/type.h b/level_0/f_type/c/type.h index 564a84f..9126b30 100644 --- a/level_0/f_type/c/type.h +++ b/level_0/f_type/c/type.h @@ -103,7 +103,7 @@ extern "C" { * custom: A structure (defined by caller/parent) for holding custom data to be passed along to the interrupt() or one of the functions. May be NULL. * data: A structure (defined by function) for holding data relevant to the function. May be NULL. May be required. */ -#ifndef _di_f_type_state_t_ +#ifndef _di_f_state_t_ typedef struct { uint16_t step_large; uint16_t step_small; @@ -139,7 +139,7 @@ extern "C" { state.callbacks = 0; \ state.custom = 0; \ state.data = 0; -#endif // _di_f_type_state_t_ +#endif // _di_f_state_t_ /** * Conditional 128-bit support. @@ -585,7 +585,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int8s_t_ +#ifndef _di_f_int8s_t_ typedef struct { int8_t *array; @@ -597,7 +597,7 @@ extern "C" { #define macro_f_int8s_t_initialize(array, size, used) { array, size, used } #define macro_f_int8s_t_initialize2(array, length) { array, length, length } -#endif // _di_int8s_t_ +#endif // _di_f_int8s_t_ /** * An array of an array of array int8_t. @@ -608,7 +608,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int8ss_t_ +#ifndef _di_f_int8ss_t_ typedef struct { f_int8s_t *array; @@ -620,7 +620,7 @@ extern "C" { #define macro_f_int8ss_t_initialize(array, size, used) { array, size, used } #define macro_f_int8ss_t_initialize2(array, length) { array, length, length } -#endif // _di_int8ss_t_ +#endif // _di_f_int8ss_t_ /** * An array of array uint8_t. @@ -631,7 +631,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint8s_t_ +#ifndef _di_f_uint8s_t_ typedef struct { uint8_t *array; @@ -643,7 +643,7 @@ extern "C" { #define macro_f_uint8s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint8s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint8s_t_ +#endif // _di_f_uint8s_t_ /** * An array of an array of array uint8_t. @@ -654,7 +654,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint8ss_t_ +#ifndef _di_f_uint8ss_t_ typedef struct { f_uint8s_t *array; @@ -666,7 +666,7 @@ extern "C" { #define macro_f_uint8ss_t_initialize(array, size, used) { array, size, used } #define macro_f_uint8ss_t_initialize2(array, length) { array, length, length } -#endif // _di_uint8ss_t_ +#endif // _di_f_uint8ss_t_ /** * An array of array int16_t. @@ -677,7 +677,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int16s_t_ +#ifndef _di_f_int16s_t_ typedef struct { int16_t *array; @@ -689,7 +689,7 @@ extern "C" { #define macro_f_int16s_t_initialize(array, size, used) { array, size, used } #define macro_f_int16s_t_initialize2(array, length) { array, length, length } -#endif // _di_int16s_t_ +#endif // _di_f_int16s_t_ /** * An array of an array of array int16_t. @@ -700,7 +700,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int16ss_t_ +#ifndef _di_f_int16ss_t_ typedef struct { f_int16s_t *array; @@ -712,7 +712,7 @@ extern "C" { #define macro_f_int16ss_t_initialize(array, size, used) { array, size, used } #define macro_f_int16ss_t_initialize2(array, length) { array, length, length } -#endif // _di_int16ss_t_ +#endif // _di_f_int16ss_t_ /** * An array of array uint16_t. @@ -723,7 +723,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint16s_t_ +#ifndef _di_f_uint16s_t_ typedef struct { uint16_t *array; @@ -735,7 +735,7 @@ extern "C" { #define macro_f_uint16s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint16s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint16s_t_ +#endif // _di_f_uint16s_t_ /** * An array of an array of array uint16_t. @@ -746,7 +746,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint16ss_t_ +#ifndef _di_f_uint16ss_t_ typedef struct { f_uint16s_t *array; @@ -758,7 +758,7 @@ extern "C" { #define macro_f_uint16s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint16s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint16ss_t_ +#endif // _di_f_uint16ss_t_ /** * An array of array int32_t. @@ -769,7 +769,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int32s_t_ +#ifndef _di_f_int32s_t_ typedef struct { int32_t *array; @@ -781,7 +781,7 @@ extern "C" { #define macro_f_int32s_t_initialize(array, size, used) { array, size, used } #define macro_f_int32s_t_initialize2(array, length) { array, length, length } -#endif // _di_int32s_t_ +#endif // _di_f_int32s_t_ /** * An array of an array of array int32_t. @@ -792,7 +792,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int32ss_t_ +#ifndef _di_f_int32ss_t_ typedef struct { f_int32s_t *array; @@ -804,7 +804,7 @@ extern "C" { #define macro_f_int32ss_t_initialize(array, size, used) { array, size, used } #define macro_f_int32ss_t_initialize2(array, length) { array, length, length } -#endif // _di_int32ss_t_ +#endif // _di_f_int32ss_t_ /** * An array of array uint32_t. @@ -815,7 +815,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint32s_t_ +#ifndef _di_f_uint32s_t_ typedef struct { uint32_t *array; @@ -827,7 +827,7 @@ extern "C" { #define macro_f_uint32s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint32s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint32s_t_ +#endif // _di_f_uint32s_t_ /** * An array of an array of array uint32_t. @@ -838,7 +838,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint32ss_t_ +#ifndef _di_f_uint32ss_t_ typedef struct { f_uint32s_t *array; @@ -850,7 +850,7 @@ extern "C" { #define macro_f_uint32ss_t_initialize(array, size, used) { array, size, used } #define macro_f_uint32ss_t_initialize2(array, length) { array, length, length } -#endif // _di_uint32ss_t_ +#endif // _di_f_uint32ss_t_ /** * An array of array int64_t. @@ -861,7 +861,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int64s_t_ +#ifndef _di_f_int64s_t_ typedef struct { int64_t *array; @@ -873,7 +873,7 @@ extern "C" { #define macro_f_int64s_t_initialize(array, size, used) { array, size, used } #define macro_f_int64s_t_initialize2(array, length) { array, length, length } -#endif // _di_int64s_t_ +#endif // _di_f_int64s_t_ /** * An array of an array of array int64_t. @@ -884,7 +884,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int64ss_t_ +#ifndef _di_f_int64ss_t_ typedef struct { f_int64s_t *array; @@ -896,7 +896,7 @@ extern "C" { #define macro_f_int64ss_t_initialize(array, size, used) { array, size, used } #define macro_f_int64ss_t_initialize2(array, length) { array, length, length } -#endif // _di_int64ss_t_ +#endif // _di_f_int64ss_t_ /** * An array of array uint64_t. @@ -907,7 +907,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint64s_t_ +#ifndef _di_f_uint64s_t_ typedef struct { uint64_t *array; @@ -919,7 +919,7 @@ extern "C" { #define macro_f_uint64s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint64s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint64s_t_ +#endif // _di_f_uint64s_t_ /** * An array of an array of array uint64_t. @@ -930,7 +930,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint64ss_t_ +#ifndef _di_f_uint64ss_t_ typedef struct { f_uint64s_t *array; @@ -942,7 +942,7 @@ extern "C" { #define macro_f_uint64ss_t_initialize(array, size, used) { array, size, used } #define macro_f_uint64ss_t_initialize2(array, length) { array, length, length } -#endif // _di_uint64ss_t_ +#endif // _di_f_uint64ss_t_ /** * Provide a 128-bit type wrapper, which could be either 64-bit or 128-bit depending on support. @@ -953,23 +953,23 @@ extern "C" { */ #ifndef __SIZEOF_INT128__ - #ifndef _di_int128_t_ + #ifndef _di_f_int128_t_ typedef __int128_t int128_t; - #endif // _di_int128_t_ + #endif // _di_f_int128_t_ - #ifndef _di_uint128_t_ + #ifndef _di_f_uint128_t_ typedef __uint128_t uint128_t; - #endif // _di_uint128_t_ + #endif // _di_f_uint128_t_ #else // __SIZEOF_INT128__ - #ifndef _di_int128_t_ + #ifndef _di_f_int128_t_ typedef int64_t int128_t; - #endif // _di_int128_t_ + #endif // _di_f_int128_t_ - #ifndef _di_uint128_t_ + #ifndef _di_f_uint128_t_ typedef uint64_t uint128_t; - #endif // _di_uint128_t_ + #endif // _di_f_uint128_t_ #endif // __SIZEOF_INT128__ @@ -982,7 +982,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int128s_t_ +#ifndef _di_f_int128s_t_ typedef struct { int128_t *array; @@ -994,7 +994,7 @@ extern "C" { #define macro_f_int128s_t_initialize(array, size, used) { array, size, used } #define macro_f_int128s_t_initialize2(array, length) { array, length, length } -#endif // _di_int128s_t_ +#endif // _di_f_int128s_t_ /** * An array of and array of int128_t. @@ -1005,7 +1005,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_int128ss_t_ +#ifndef _di_f_int128ss_t_ typedef struct { f_int128s_t *array; @@ -1017,7 +1017,7 @@ extern "C" { #define macro_f_int128ss_t_initialize(array, size, used) { array, size, used } #define macro_f_int128ss_t_initialize2(array, length) { array, length, length } -#endif // _di_int128ss_t_ +#endif // _di_f_int128ss_t_ /** * An array of uint128_t. @@ -1028,7 +1028,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint128s_t_ +#ifndef _di_f_uint128s_t_ typedef struct { uint128_t *array; @@ -1040,7 +1040,7 @@ extern "C" { #define macro_f_uint128s_t_initialize(array, size, used) { array, size, used } #define macro_f_uint128s_t_initialize2(array, length) { array, length, length } -#endif // _di_uint128s_t_ +#endif // _di_f_uint128s_t_ /** * An array of and array of uint128_t. @@ -1051,7 +1051,7 @@ extern "C" { * size: Total amount of allocated space. * used: Total number of allocated spaces used. */ -#ifndef _di_uint128ss_t_ +#ifndef _di_f_uint128ss_t_ typedef struct { f_uint128s_t *array; @@ -1063,7 +1063,7 @@ extern "C" { #define macro_f_uint128ss_t_initialize(array, size, used) { array, size, used } #define macro_f_uint128ss_t_initialize2(array, length) { array, length, length } -#endif // _di_uint128ss_t_ +#endif // _di_f_uint128ss_t_ /** * This holds an array of f_status_t.