aboutsummaryrefslogtreecommitdiffstats
path: root/str_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'str_array.c')
-rw-r--r--str_array.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/str_array.c b/str_array.c
index bc6584d2..85e554b8 100644
--- a/str_array.c
+++ b/str_array.c
@@ -56,10 +56,10 @@ static NODE **str_list(NODE *symbol, NODE *subs);
static NODE **str_copy(NODE *symbol, NODE *newsymb);
static NODE **str_dump(NODE *symbol, NODE *ndump);
-afunc_t str_array_func[] = {
+const array_funcs_t str_array_func = {
+ "str",
str_array_init,
(afunc_t) 0,
- null_length,
str_lookup,
str_exists,
str_clear,
@@ -75,10 +75,10 @@ static NODE **env_store(NODE *symbol, NODE *subs);
static NODE **env_clear(NODE *symbol, NODE *subs);
/* special case for ENVIRON */
-afunc_t env_array_func[] = {
+const array_funcs_t env_array_func = {
+ "env",
str_array_init,
(afunc_t) 0,
- null_length,
str_lookup,
str_exists,
env_clear,
@@ -121,7 +121,7 @@ str_array_init(NODE *symbol ATTRIBUTE_UNUSED, NODE *subs ATTRIBUTE_UNUSED)
/*
- * assoc_lookup:
+ * str_lookup:
* Find SYMBOL[SUBS] in the assoc array. Install it with value "" if it
* isn't there. Returns a pointer ala get_lhs to where its value is stored.
*
@@ -798,7 +798,7 @@ env_clear(NODE *symbol, NODE *subs)
environ = NULL; /* ZAP! */
/* str_clear zaps the vtable, reset it */
- symbol->array_funcs = env_array_func;
+ symbol->array_funcs = & env_array_func;
return val;
}
@@ -831,5 +831,5 @@ init_env_array(NODE *env_node)
if (do_posix)
return;
- env_node->array_funcs = env_array_func;
+ env_node->array_funcs = & env_array_func;
}