diff options
author | Jari Aalto <jari.aalto@cante.net> | 1998-04-17 19:52:44 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:51 +0000 |
commit | cce855bc5b117cb7ae70064131120687bc69fac0 (patch) | |
tree | 39c7a4ec8f6d22ef03df74f2684e6a04fef10399 /array.c | |
parent | e8ce775db824de329b81293b4e5d8fbd65624528 (diff) | |
download | android_external_bash-cce855bc5b117cb7ae70064131120687bc69fac0.tar.gz android_external_bash-cce855bc5b117cb7ae70064131120687bc69fac0.tar.bz2 android_external_bash-cce855bc5b117cb7ae70064131120687bc69fac0.zip |
Imported from ../bash-2.02.tar.gz.
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -13,6 +13,9 @@ #if defined (ARRAY_VARS) #if defined (HAVE_UNISTD_H) +# ifdef _MINIX +# include <sys/types.h> +# endif # include <unistd.h> #endif @@ -151,6 +154,7 @@ ARRAY_ELEMENT *s, *e; } #endif +#ifdef INCLUDE_UNUSED ARRAY_ELEMENT * copy_array_element(ae) ARRAY_ELEMENT *ae; @@ -158,6 +162,7 @@ ARRAY_ELEMENT *ae; return(ae ? new_array_element(element_index(ae), element_value(ae)) : (ARRAY_ELEMENT *) NULL); } +#endif /* * Add a new element with index I and value V to array A (a[i] = v). @@ -248,6 +253,7 @@ arrayind_t i; return((char *) NULL); } +#ifdef TEST_ARRAY /* * Walk the array, calling FUNC once for each element, with the array * element as the argument. @@ -264,6 +270,7 @@ Function *func; for (ae = element_forw(a->head); ae != a->head; ae = element_forw(ae)) (*func)(ae); } +#endif /* * Return a string that is the concatenation of all the elements in A, |