From 88005d37352d066e77a23971c6f9447014f58bc8 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 29 Feb 2012 21:36:13 -0600 Subject: [PATCH] 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. --- level_0/f_types/c/types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 1.8.3.1