From: Kevin Day Date: Thu, 1 Mar 2012 03:36:13 +0000 (-0600) Subject: Update: add f_array_length_small and f_array_length_large X-Git-Tag: 0.3.x~17 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=88005d37352d066e77a23971c6f9447014f58bc8;p=fll Update: add f_array_length_small and f_array_length_large This adds short and long versions of the f_array_length typedef. Having this provides additional context granularity so that the size of arrays can be more easily adjusted to suit ones needs at compile time. --- diff --git a/level_0/f_types/c/types.h b/level_0/f_types/c/types.h index 1b1a951..f32f0cf 100644 --- a/level_0/f_types/c/types.h +++ b/level_0/f_types/c/types.h @@ -141,9 +141,13 @@ extern "C"{ // Defines a variable to be used by arrays. #ifndef _di_f_array_length_ - typedef f_u_long f_array_length; + typedef f_u_long f_array_length; + typedef f_u_int f_array_length_short; + typedef f_u_long_long f_array_length_long; - #define f_array_length_initialize 0 + #define f_array_length_initialize 0 + #define f_array_length_short_initialize f_array_length_initialize + #define f_array_length_long_initialize f_array_length_initialize #endif // _di_f_array_length_ #ifdef __cplusplus