From: Kevin Day Date: Thu, 1 Mar 2012 01:05:49 +0000 (-0600) Subject: Update: add f_array_length typedef X-Git-Tag: 0.3.x~19 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=90e3f675fcbd3a719533b700219bb64337ac21ee;p=fll Update: add f_array_length typedef It makes more sense to define a default array length size variable instead of using things like f_string_length for the lenght variable that represents string lengths. It is also easier to read than doing something like f_string_length_length. --- diff --git a/level_0/f_types/c/types.h b/level_0/f_types/c/types.h index 6e01287..1b1a951 100644 --- a/level_0/f_types/c/types.h +++ b/level_0/f_types/c/types.h @@ -139,6 +139,13 @@ extern "C"{ #define f_standard_warning stdout // I still hope for a separate pipe for warnings #endif // _di_f_types_standard_output_ +// Defines a variable to be used by arrays. +#ifndef _di_f_array_length_ + typedef f_u_long f_array_length; + + #define f_array_length_initialize 0 +#endif // _di_f_array_length_ + #ifdef __cplusplus } // extern "C" #endif