diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-11-22 19:11:26 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-11-22 19:11:26 -0500 |
commit | 495aee441b75276e38c75694ccb455bb6463fdb9 (patch) | |
tree | f12907dbf62388e6c65dfa1c5e1199509936707e /arrayfunc.h | |
parent | 30d188c2932d6ef609d894fefeb7e7b03ccff463 (diff) | |
download | android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.gz android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.bz2 android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.zip |
Bash-4.2 distribution sources and documentation
Diffstat (limited to 'arrayfunc.h')
-rw-r--r-- | arrayfunc.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arrayfunc.h b/arrayfunc.h index c12fc99..8363d16 100644 --- a/arrayfunc.h +++ b/arrayfunc.h @@ -1,6 +1,6 @@ /* arrayfunc.h -- declarations for miscellaneous array functions in arrayfunc.c */ -/* Copyright (C) 2001-2009 Free Software Foundation, Inc. +/* Copyright (C) 2001-2010 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -25,6 +25,11 @@ #if defined (ARRAY_VARS) +/* Flags for array_value_internal and callers array_value/get_array_value */ +#define AV_ALLOWALL 0x001 +#define AV_QUOTED 0x002 +#define AV_USEIND 0x004 + extern SHELL_VAR *convert_var_to_array __P((SHELL_VAR *)); extern SHELL_VAR *convert_var_to_assoc __P((SHELL_VAR *)); @@ -51,8 +56,8 @@ extern void print_assoc_assignment __P((SHELL_VAR *, int)); extern arrayind_t array_expand_index __P((char *, int)); extern int valid_array_reference __P((char *)); -extern char *array_value __P((char *, int, int *)); -extern char *get_array_value __P((char *, int, int *)); +extern char *array_value __P((char *, int, int, int *, arrayind_t *)); +extern char *get_array_value __P((char *, int, int *, arrayind_t *)); extern char *array_keys __P((char *, int)); |