From 90e3f675fcbd3a719533b700219bb64337ac21ee Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 29 Feb 2012 19:05:49 -0600 Subject: [PATCH] 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. --- level_0/f_types/c/types.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 1.8.3.1