Home | History | Annotate | Download | only in ksh

Lines Matching refs:ARRAY

134 /* Used to calculate an array index for global()/local().  Sets *arrayp to
135 * non-zero if this is an array, sets *valp to the array index, returns
136 * the basename of the array.
181 bool array;
184 /* Check to see if this is an array */
185 n = array_index_calc(n, &array, &val);
189 if (array)
236 if (array)
245 if (array)
262 bool array;
265 /* Check to see if this is an array */
266 n = array_index_calc(n, &array, &val);
291 if (array)
635 * setting up its environment. Allow only simple array
668 vpbase = (vp->flag & ARRAY) ? global(arrayname(var)) : vp;
687 for (t = vpbase; t; t = t->u.array) {
764 /* Unset a variable. array_ref is set if there was an array reference in
774 if ((vp->flag & ARRAY) && !array_ref) {
777 /* Free up entire array */
778 for (a = vp->u.array; a; ) {
780 a = a->u.array;
785 vp->u.array = (struct tbl *) 0;
787 /* If foo[0] is being unset, the remainder of the array is kept... */
788 vp->flag &= SPECIAL | (array_ref ? ARRAY|DEFINED : 0);
817 int aok; /* skip array de-reference? */
824 /* skip possible array de-reference */
1160 vp->flag |= ARRAY|DEFINED;
1168 curr = vp->u.array;
1171 curr = curr->u.array;
1187 if (curr != new) { /* not reusing old array entry */
1188 prev->u.array = new;
1189 new->u.array = curr;
1194 /* Return the length of an array reference (eg, [1+2]) - cp is assumed
1215 * Make a copy of the base of an array name
1230 /* Set (or overwrite, if !reset) the array variable var to the values in vals.
1241 /* to get local array, use "typeset foo; set -A foo" */