Searched refs:array (Results 1 - 25 of 26) sorted by relevance

12

/ast/src/cmd/dsslib/xml/
H A DMakefile15 data/basics.json data/array.json data/test.json data/twit.json
/ast/src/lib/libast/disc/
H A Dsfdcunion.c45 File_t f[1]; /* array of streams */
164 int sfdcunion(Sfio_t* f, Sfio_t** array, int n) argument
166 int sfdcunion(f, array, n)
168 Sfio_t** array;
189 { un->f[i].f = array[i];
191 { un->f[i].lower = sfseek(array[i],(Sfoff_t)0,1);
/ast/src/lib/libast/sfio/
H A Dsfmode.c122 reg Sfio_t** array; local
138 { if(p->s_sf == 0) /* initialize pool array */
139 { p->s_sf = sizeof(p->array)/sizeof(p->array[0]);
140 p->sf = p->array;
142 else /* allocate a larger array */
143 { n = (p->sf != p->array ? p->s_sf : (p->s_sf/4 + 1)*4) + 4;
144 if(!(array = (Sfio_t**)malloc(n*sizeof(Sfio_t*))) )
147 /* move old array to new one */
148 memcpy((Void_t*)array,(Void_
[all...]
H A Dsfpool.c46 if(p->s_sf && p->sf != p->array)
91 p->s_sf = sizeof(p->array)/sizeof(p->array[0]);
92 p->sf = p->array;
H A Dsfhdr.h680 int s_sf; /* size of pool array */
682 Sfio_t** sf; /* array of streams */
683 Sfio_t* array[3]; /* start with 3 */ member in struct:_sfpool_s
/ast/src/lib/libexpr/
H A Dexlib.h68 Exnode_t* array; /* array name */ \
69 Exid_t* index; /* array index */ \
71 } generate; /* associative array generator */ \
139 typedef struct Exassoc_s /* associative array bucket */
H A Dexparse.y141 %type <integer> INTEGER UNSIGNED array
271 $$->data.generate.array = $3;
459 dcl_item : reference NAME {expr.id=$2;} array initialize
491 exerror("%s: cannot initialize associative array", $2->name);
944 exerror("%s: is%s an array", $1->name, $1->local.pointer ? "" : " not");
957 array : /* empty */ label
H A Dexeval.c71 * return dynamic (associative array) variable value
72 * assoc will point to the associative array bucket
719 if (expr->data.generate.array->op == DYNAMIC)
722 for (assoc = (Exassoc_t*)dtfirst((Dt_t*)expr->data.generate.array->data.variable.symbol->local.pointer); assoc; assoc = (Exassoc_t*)dtnext((Dt_t*)expr->data.generate.array->data.variable.symbol->local.pointer, assoc))
739 r = (*ex->disc->getf)(ex, expr, expr->data.generate.array->data.variable.symbol, expr->data.generate.array->data.variable.reference, env, 0, ex->disc);
H A Dexcc.c273 sfprintf(cc->ccdisc->text, "for (%stmp_%d = (Exassoc_t*)dtfirst(%s); %stmp_%d && (%s = %stmp_%d->name); %stmp_%d = (Exassoc_t*)dtnext(%s, %stmp_%d)) {", cc->id, cc->tmp, expr->data.generate.array->data.variable.symbol->name, cc->id, cc->tmp, expr->data.generate.index->name, cc->id, cc->tmp, cc->id, cc->tmp, expr->data.generate.array->data.variable.symbol->name, cc->id, cc->tmp);
H A DOexparse.c666 "dcl_item : reference NAME $$5 array initialize",
727 "array :",
728 "array : '[' ']'",
1104 exval.expr->data.generate.array = exvsp[-2].expr;
1342 exerror("%s: cannot initialize associative array", exvsp[-3].id->name);
1874 exerror("%s: is%s an array", exvsp[-1].id->name, exvsp[-1].id->local.pointer ? "" : " not");
/ast/src/cmd/ksh93/
H A DMakefile35 SHOPT_FIXEDARRAY == 1 /* fixed dimension indexed array */
165 arith.c args.c array.c completion.c defs.c edit.c expand.c regress.c \
/ast/src/lib/libast/aso/
H A Daso-sem.c42 unsigned short* array;
/ast/src/cmd/dsslib/flat/
H A Dflat.c85 Cxarray_t* array; /* physical array info */ member in struct:Physical_s
246 Cxarray_t* array; member in struct:Flat_s
1783 flat->array->delimiter = *data;
1795 flat->array->size = strtoul(data, &e, 0);
1803 else if (!(flat->array->variable = (Cxvariable_t*)strdup(data)))
1814 "SIZE", "Fixed array size or variable size field name.",
1834 if (!flat->lastfield->physical.array && !(flat->lastfield->physical.array = newof(0, Cxarray_t, 1, 0)))
1840 flat->array
[all...]
/ast/src/cmd/ksh93/tests/
H A Dcomvar.sh217 $SHELL -c 'typeset -a info=( [1]=( passwd=( since=2005-07-20) ))' || err_exit 'problem with embedded index array in compound variable'
268 [[ ${foo[c]} == cc ]] || err_exit 'associative array assignment with; not working'
269 [[ $({ $SHELL -c 'x=(); typeset -a x.foo; x.foo=bar; print -r -- "$x"' ;} 2> /dev/null) == $'(\n\ttypeset -a foo=bar\n)' ]] || err_exit 'indexed array in compound variable with only element 0 defined fails'
272 [[ $foo == *'typeset -a bar'* ]] || err_exit 'array attribute -a not preserved in compound variable'
275 [[ ${s[@]} == *z=*z=* ]] || err_exit 'missing elements in compound associative array'
289 typeset -A array=([one]=one [two]=2)
375 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
391 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
407 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
410 # array o
[all...]
H A Dnameref.sh158 typeset -n array=$i
159 print ${!array[*]}
237 [[ ${!bar} == 'foo[x.y]' ]] || err_exit '${!var} not correct for nameref to an array instance'
240 [[ ${!bar} == foo ]] || err_exit '${!var} not correct for nameref to array variable'
241 $SHELL -c 'function bar { nameref x=foo[++];};typeset -A foo;bar' 2> /dev/null ||err_exit 'nameref of associative array tries to evaluate subscript'
316 [[ $zip == bar ]] || err_exit 'nameref to another nameref to array element fails'
360 [[ ${!y.@} == 'x[a].b' ]] || err_exit 'reference to array element not expanded with ${!y.@}'
420 [[ -v x[h] ]] && err_exit 'creating reference to non-existant associative array element causes element to get added'
480 [[ ${!nr} == "c.a[hello]" ]] || err_exit 'name reference nr to unset associative array instance does not expand ${!nr} correctly.'
485 [[ ${!nr} == "c.b[2]" ]] || err_exit 'name reference nr to unset indexed array instanc
[all...]
H A Darrays.sh168 then err_exit 'error in array conversion from int to R12'
171 then err_exit 'error in count of array conversion from int to R12'
175 set | grep '^abcdefg$' >/dev/null && err_exit 'empty array variable in set list'
193 then err_exit 'conversion of indexed to associative array failed'
230 then err_exit 'execution trace side effects with array subscripts'
241 then err_exit 'array not restored after subshell'
251 then err_exit 'array offset of -1 not working'
254 then err_exit 'array offset of -3:1 not working'
261 then err_exit 'array getting unset before right hand side evaluation'
267 then err_exit 'exporting indexed array no
[all...]
/ast/src/lib/libpz/
H A Dpzpart.c1032 * allocate and read an array from the input partition header
1036 array(register Pz_t* pz, Pzpart_t* pp, size_t** pv, size_t* pn, size_t check) function
1144 if (array(pz, pp, &pp->fix, &pp->nfix, pp->row))
1158 if (array(pz, pp, &pp->grp, &pp->ngrp, pp->row + 1))
1162 if (array(pz, pp, &pp->map, &pp->nmap, pp->row))
1210 array(pz, pp, NiL, NiL, 0);
1224 array(pz, pp, &pz->split.data, &pz->split.size, 0);
1230 array(pz, pp, NiL, NiL, 0);
/ast/src/lib/libcs/
H A Dmsg.h152 long* array; member in union:__anon343
H A Dmsgblast.c80 (ap++)->array = np = (long*)vp;
H A Dmsglist.c142 np = (ap++)->array;
/ast/src/cmd/ksh93/include/
H A Dname.h50 struct Namarray *array; /* for array node */ member in union:Value
63 #define ARRAY_MAX (1L<<ARRAY_BITS) /* maximum number of elements in an array */
66 #define ARRAY_INCR 32 /* number of elements to grow when array
69 #define ARRAY_NOCLONE (16L<<ARRAY_BITS) /* do not clone array disc */
/ast/src/lib/libast/vmalloc/
H A Dmalloc.c729 char array[ALIGN]; member in union:_alloca_u
742 { char array[ALIGN]; local
755 { if(( _stk_down && &array[0] > Frame->head.head.addr) ||
756 (!_stk_down && &array[0] < Frame->head.head.addr) )
772 f->head.head.addr = &array[0];
/ast/src/cmd/ksh93/sh/
H A Dname.c302 int array = (flags&(NV_ARRAY|NV_IARRAY)); local
357 if(!array && tp->tre.tretyp!=TLST && tp->com.comset && !tp->com.comarg && tp->com.comset->argval[0]==0 && tp->com.comset->argval[1]=='[')
358 array |= (tp->com.comset->argflag&ARG_MESSAGE)?NV_IARRAY:NV_ARRAY;
396 if(typ && !array && (!shp->prefix || nv_isnull(np) || nv_isarray(np)))
413 if(array && (!ap || !ap->hdr.type))
421 if(array&NV_ARRAY)
430 if(array && tp->tre.tretyp!=TLST && !tp->com.comset && !tp->com.comarg)
438 /* check for array assignment */
439 if(tp->tre.tretyp!=TLST && tp->com.comarg && !tp->com.comset && ((array&NV_IARRAY) || !((mp=tp->com.comnamp) && nv_isattr(mp,BLT_DCL))))
509 if(!(array
[all...]
H A Dnvtree.c576 int array; member in struct:Walk
769 if(isarray==0 && nv_isarray(np) && (nv_isnull(np)||np->nvalue.cp==Empty)) /* empty array */
772 if(!wp->array && wp->indent>0)
826 if(outfile && !wp->array)
896 if((wp->array = nv_isarray(np)) && (ap=nv_arrayptr(np)))
906 wp->array=0;
931 if(wp->array)
937 wp->array = 0;
945 wp->array = 0;
1071 walk.array
[all...]
/ast/src/lib/libdss/
H A Dcx.h414 struct Cxarray_s /* array info */
441 Cxarray_t* array; /* array info */ member in struct:Cxvariable_s

Completed in 99 milliseconds

12