/src/games/sail/ |
array.h | 45 struct array { struct 50 struct array *array_create(void); 51 void array_destroy(struct array *); 52 void array_init(struct array *); 53 void array_cleanup(struct array *); 54 unsigned array_num(const struct array *); 55 void *array_get(const struct array *, unsigned index_); 56 void array_set(const struct array *, unsigned index_, void *val); 57 int array_setsize(struct array *, unsigned num); 58 int array_add(struct array *, void *val, unsigned *index_ret) [all...] |
/src/usr.bin/rump_dhcpclient/ |
dhcp.c | 47 #define ARRAY (1 << 9) 74 { 33, IPV4 | ARRAY | REQUEST, "static_routes" }, 75 { 3, IPV4 | ARRAY | REQUEST, "routers" }, 77 { 4, IPV4 | ARRAY, "time_servers" }, 78 { 5, IPV4 | ARRAY, "ien116_name_servers" }, 79 { 6, IPV4 | ARRAY, "domain_name_servers" }, 80 { 7, IPV4 | ARRAY, "log_servers" }, 81 { 8, IPV4 | ARRAY, "cookie_servers" }, 82 { 9, IPV4 | ARRAY, "lpr_servers" }, 83 { 10, IPV4 | ARRAY, "impress_servers" } [all...] |
/src/usr.bin/xlint/common/ |
inittyp.c | 125 typeinfo("array", ARRAY, ARRAY, 0, 0, ' '),
|
lint.h | 95 ARRAY, /* array */
|
tyname.c | 296 case ARRAY:
|
/src/bin/ksh/ |
table.h | 24 int index; /* index for an array */ 30 struct tbl *array; /* array values */ member in union:tbl::__anon744d14a8030a 48 #define ARRAY BIT(13) /* array */ 68 * should be repoted by set/typeset). Does not include ARRAY or LOCAL. 92 #define AF_ARGV_ALLOC 0x1 /* argv[] array allocated */
|
table.c | 137 p->u.array = (struct tbl *)0; 193 ((*dp)->flag&ARRAY)))
|
var.c | 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; local in function:global 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; local in function:local [all...] |
c_ksh.c | 769 for (tvp = vp; tvp; tvp = tvp->u.array) 775 * Check attributes - note that all array elements 787 for (; vp; vp = vp->u.array) { 788 /* Ignore array elements that aren't set unless there 792 if ((vp->flag&ARRAY) && any_set && !(vp->flag & ISSET)) 822 if (vp->flag&ARRAY) 828 if ((vp->flag&ARRAY) && any_set) 845 /* Only report first `element' of an array with
|
eval.c | 716 /* ${#var}, string length or array size */ 724 /* Check for size of array */ 728 if (vp->flag & (ISSET|ARRAY)) 730 for (; vp; vp = vp->u.array) 805 for (; vp; vp = vp->u.array) {
|
/src/usr.bin/xlint/lint1/ |
init.c | 117 * The maximum subscript that has ever been seen for an array of 160 if (!(ltp != NULL && ltp->t_tspec == ARRAY && rn->tn_op == STRING)) 197 debug_step("completed array type is '%s'", type_name(sym->s_type)); 296 case ARRAY: 398 } else if (tp->t_tspec == ARRAY) 503 case ARRAY: 528 lint_assert(tp->t_tspec == ARRAY); 530 /* too many array initializers, expected %d */ 589 if (is_struct_or_union(ltp->t_tspec) || ltp->t_tspec == ARRAY) { 727 /* prevent "empty array declaration for '%s' [190]" * [all...] |
decl.c | 99 /* struct, union, enum, ptr, array and func are not shared. */ 166 * Returns whether the type is 'void' or an incomplete array, struct, union 176 if (t == ARRAY) 807 * Printing a message if the outermost dimension of an array is 0 must 819 while (tp->t_tspec == ARRAY) { 856 while (tp->t_tspec == ARRAY) 919 if (t == FUNC || t == ARRAY) { 933 } else if (to == ARRAY) { 935 /* array of function is invalid */ 940 if (t == ARRAY && tp->u.dimension == 0) [all...] |
emit1.c | 115 if (ts == ARRAY) {
|
tree.c | 592 /* Build 'pointer to tp', 'array of tp' or 'function returning tp'. */ 707 sym->s_type = block_derive_type(gettyp(CHAR), ARRAY); 834 tp->t_tspec = ARRAY; 1367 while (tp->t_tspec == ARRAY) { 1435 if (ltp->t_tspec != ARRAY || ltp->t_incomplete_array) 1471 /* maximum value %d for '%s' of type '%s' does not match maximum array index %d */ 2384 if (tn->tn_type->t_tspec == ARRAY) { 2487 if (t == ARRAY || t == FUNC) { 3383 /* Allow enum in array indices. */ 3821 return tp->t_tspec == ARRAY & [all...] |
debug.c | 464 if (sym->s_type->t_tspec == ARRAY
|
/src/sys/external/bsd/common/include/linux/ |
kernel.h | 136 #define ARRAY_SIZE(ARRAY) __arraycount(ARRAY)
|
/src/sys/kern/ |
subr_kmem.c | 243 #define KMEM_CACHE_PROBE(ARRAY, INDEX, PTR, REQSIZE, ALLOCSIZE, FLAGS) \ 253 #define KMEM_CACHE_PROBE(ARRAY, INDEX, PTR, REQSIZE, ALLOCSIZE, FLAGS) do \ 257 KDASSERT((INDEX) < __arraycount(ARRAY)); \ 258 if (__predict_false((id = *(ARRAY)[INDEX]) != 0)) { \ 458 kmem_create_caches(const struct kmem_cache_info *array, 467 for (i = 0; array[i].kc_size != 0 ; i++) { 468 const char *name = array[i].kc_name; 469 size_t cache_size = array[i].kc_size; 512 array[i].kc_alloc_probe_id; 516 array[i].kc_free_probe_id [all...] |
/src/usr.bin/xlint/lint2/ |
emit2.c | 73 if (ts == ARRAY) {
|
read.c | 58 * The array pointed to by inpfns maps the file name indices of input files 65 * The array pointed to by *fnames maps file name indices to file names. 76 * hash table. Access by indices is done via an array of pointers to the 85 type_t **tlst; /* array for indexed access */ 628 return ARRAY; 686 case ARRAY: 844 t = ARRAY; 875 case ARRAY:
|
chk.c | 596 * Compare the types in the NULL-terminated array ap with the format 824 * Compare the types in the NULL-terminated array ap with the format 1296 if (t == ARRAY && tp1->t_dim != tp2->t_dim) {
|