Home
last modified time | relevance | path

Searched refs:nums (Results 1 – 25 of 29) sorted by relevance

12

/netbsd/src/usr.bin/tput/
Dtput.c150 long nums[TPARM_MAX]; in process() local
170 nums[i] = strtol(*argv, &tmp, 0); in process()
172 (nums[i] == LONG_MIN || nums[i] == LONG_MAX)) || in process()
173 (errno != 0 && nums[i] == 0) || in process()
182 (piss[i - 1] ? (long)strs[i - 1] : nums[i - 1]) : 0) in process()
/netbsd/src/lib/libterminfo/
Dcompile.c110 obuf = tic->nums.buf; in _ti_promote()
112 entries = tic->nums.entries; in _ti_promote()
113 tic->nums.buf = NULL; in _ti_promote()
114 tic->nums.entries = tic->nums.buflen = tic->nums.bufpos = 0; in _ti_promote()
119 !_ti_encode_buf_id_num(&tic->nums, ind, num, in _ti_promote()
390 (sizeof(uint16_t) * 2) + tic->nums.bufpos + in _ti_flatten()
407 _ti_encode_buf(&cap, &tic->nums); in _ti_flatten()
717 _ti_find_cap(tic, &tic->nums, 'n', ind) != NULL) in _ti_compile()
745 if (!_ti_encode_buf_id_num(&tic->nums, in _ti_compile()
761 if (_ti_find_cap(tic, &tic->nums, 'n', ind) in _ti_compile()
[all …]
Dterm.h236 #define t_bit_image_entwining(t) (t)->nums[TICODE_bitwin]
237 #define t_bit_image_type(t) (t)->nums[TICODE_bitype]
238 #define t_buffer_capacity(t) (t)->nums[TICODE_bufsz]
239 #define t_buttons(t) (t)->nums[TICODE_btns]
240 #define t_columns(t) (t)->nums[TICODE_cols]
241 #define t_dot_horz_spacing(t) (t)->nums[TICODE_spinh]
242 #define t_dot_vert_spacing(t) (t)->nums[TICODE_spinv]
243 #define t_init_tabs(t) (t)->nums[TICODE_it]
244 #define t_label_height(t) (t)->nums[TICODE_lh]
245 #define t_label_width(t) (t)->nums[TICODE_lw]
[all …]
Dterm.c97 if (allocset(&term->nums, -1, TINUMMAX+1, sizeof(*term->nums)) == -1) in _ti_readterm()
146 term->nums[ind] = _ti_decode_num(&cap, rtype); in _ti_readterm()
147 if (flags == 0 && !VALID_NUMERIC(term->nums[ind])) in _ti_readterm()
148 term->nums[ind] = ABSENT_NUMERIC; in _ti_readterm()
Dti.c81 if (!VALID_NUMERIC(term->nums[ind])) in ti_getnum()
83 return term->nums[ind]; in ti_getnum()
Dtparm.c54 long nums[20]; member
67 if (stack->offset >= sizeof(stack->nums)) { in push()
71 stack->nums[stack->offset] = num; in push()
90 *num = stack->nums[stack->offset]; in pop()
Dterm_private.h116 int *nums; member
167 TBUF nums; member
Dgenman56 numcaps=$(gentab $TERMH $TERMC nums)
Dcurterm.c139 free(oterm->nums); in del_curterm()
Dtermcap.c120 if (!VALID_NUMERIC(cur_term->nums[te->ti])) in tgetnum()
122 return cur_term->nums[te->ti]; in tgetnum()
/netbsd/src/external/bsd/atf/dist/atf-c/detail/
Dmap_test.c290 int nums[10]; in ATF_TC_BODY() local
306 nums[i] = i + 1; in ATF_TC_BODY()
307 snprintf(keys[i], sizeof(keys[i]), "%d", nums[i]); in ATF_TC_BODY()
308 RE(atf_map_insert(&map, keys[i], &nums[i], false)); in ATF_TC_BODY()
331 int nums[10]; in ATF_TC_BODY() local
347 nums[i] = i + 1; in ATF_TC_BODY()
348 snprintf(keys[i], sizeof(keys[i]), "%d", nums[i]); in ATF_TC_BODY()
349 RE(atf_map_insert(&map, keys[i], &nums[i], false)); in ATF_TC_BODY()
Dlist_test.c276 int nums[10]; in ATF_TC_BODY() local
292 nums[i] = i + 1; in ATF_TC_BODY()
293 RE(atf_list_append(&list, &nums[i], false)); in ATF_TC_BODY()
315 int nums[10]; in ATF_TC_BODY() local
331 nums[i] = i + 1; in ATF_TC_BODY()
332 RE(atf_list_append(&list, &nums[i], false)); in ATF_TC_BODY()
/netbsd/src/external/mit/lua/dist/src/
Dltable.c401 static unsigned int computesizes (unsigned int nums[], unsigned int *pna) { in computesizes() argument
411 a += nums[i]; in computesizes()
423 static int countint (lua_Integer key, unsigned int *nums) { in countint() argument
426 nums[luaO_ceillog2(k)]++; /* count as such */ in countint()
439 static unsigned int numusearray (const Table *t, unsigned int *nums) { in numusearray() argument
459 nums[lg] += lc; in numusearray()
466 static int numusehash (const Table *t, unsigned int *nums, unsigned int *pna) { in numusehash() argument
474 ause += countint(keyival(n), nums); in numusehash()
611 unsigned int nums[MAXABITS + 1]; in rehash() local
614 for (i = 0; i <= MAXABITS; i++) nums[i] = 0; /* reset counts */ in rehash()
[all …]
/netbsd/src/usr.bin/infocmp/
Dinfocmp.c249 if (VALID_NUMERIC(t->nums[i]) || in load_ents()
250 (aflag && t->nums[i] == CANCELLED_NUMERIC)) in load_ents()
254 ents[n++].num = t->nums[i]; in load_ents()
478 if (t1->nums[i] != ABSENT_NUMERIC || in show_missing()
479 t2->nums[i] != ABSENT_NUMERIC) in show_missing()
545 if (terms[j]->nums[i] == ABSENT_NUMERIC || in use_terms()
546 terms[j]->nums[i] == CANCELLED_NUMERIC) in use_terms()
550 if (term->nums[i] == terms[j]->nums[i]) in use_terms()
557 term->nums[i] = ABSENT_NUMERIC; in use_terms()
558 else if (term->nums[i] == ABSENT_NUMERIC) in use_terms()
[all …]
/netbsd/src/sys/altq/
Daltq_wfq.c146 new_wfqp->nums = DEFAULT_QSIZE; in wfq_ifattach()
154 for (i = 0; i < new_wfqp->nums; i++, queue++) { in wfq_ifattach()
247 return (&wfqp->queue[(*wfqp->hash_func)(&flow, wfqp->nums)]); in wfq_classify()
509 gqidp->qid = (*wfqp->hash_func)(&gqidp->flow, wfqp->nums); in wfq_getqid()
526 if (swp->qid < 0 || swp->qid >= wfqp->nums) in wfq_setweight()
547 if (gsp->qid < 0 || gsp->qid >= wfqp->nums) in wfq_getstats()
575 if (cf->nqueues != wfqp->nums) { in wfq_config()
585 wfqp->nums = cf->nqueues; in wfq_config()
589 for (i = 0; i < wfqp->nums; i++, queue++) { in wfq_config()
Daltq_wfq.h117 int nums; /* number of queues */ member
/netbsd/src/external/bsd/openldap/dist/libraries/liblunicode/ucdata/
Ducgendat.c215 static _num_t *nums; variable
222 static _num_t *nums; variable
757 if (nums[n].numerator == num && nums[n].denominator == denom) in make_number()
763 nums = (_num_t *) malloc(sizeof(_num_t) << 3); in make_number()
765 nums = (_num_t *) realloc((char *) nums, in make_number()
771 nums[n].numerator = num; in make_number()
772 nums[n].denominator = denom; in make_number()
1844 if (nums[i].numerator < 0) { in write_cdata()
1846 nums[i].numerator, nums[i].denominator); in write_cdata()
1849 nums[i].numerator, nums[i].denominator); in write_cdata()
[all …]
/netbsd/src/usr.bin/tic/
Dtic.c271 cap = utic->nums.buf; in merge()
272 for (n = utic->nums.entries; n > 0; n--) { in merge()
276 _ti_find_cap(rtic, &rtic->nums, 'n', ind) == NULL) in merge()
278 if (!_ti_encode_buf_id_num(&rtic->nums, ind, num, in merge()
380 if (dup_tbuf(&tic->nums, &rtic->nums) == -1) in promote()
399 free(tic->nums.buf); in promote()
/netbsd/src/usr.bin/tip/
Dcmds.c719 int nums[3]; in prtime() local
722 nums[i] = (int)(a % quant[i]); in prtime()
727 if (nums[i] || (i == 0 && nums[1] == 0 && nums[2] == 0)) in prtime()
728 (void)printf("%d %s%c ", nums[i], sep[i], in prtime()
729 nums[i] == 1 ? '\0' : 's'); in prtime()
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
Dpretty-array.c18 int nums[2][3] = {{11, 12, 13}, {21, 22, 23}}; variable
/netbsd/src/external/bsd/file/dist/magic/magdir/
Dsequent22 # Symmetry magic nums will not be reached if DOS COM comes before them;
/netbsd/src/external/gpl3/binutils/dist/gas/
Dread.c4589 LITTLENUM_TYPE *nums; in emit_expr_with_reloc() local
4647 nums = generic_bignum + size / CHARS_PER_LITTLENUM; in emit_expr_with_reloc()
4650 --nums; in emit_expr_with_reloc()
4651 md_number_to_chars (p, (valueT) *nums, CHARS_PER_LITTLENUM); in emit_expr_with_reloc()
4658 nums = generic_bignum; in emit_expr_with_reloc()
4661 md_number_to_chars (p, (valueT) *nums, CHARS_PER_LITTLENUM); in emit_expr_with_reloc()
4662 ++nums; in emit_expr_with_reloc()
/netbsd/src/usr.bin/m4/TEST/
Dtest.m4109 # include a square_root function for fixed nums
/netbsd/src/external/gpl3/gdb/dist/gdb/doc/
Dgdb.texinfo13710 @item delete mem @var{nums}@dots{}
13711 Remove memory regions @var{nums}@dots{} from the list of regions
13715 @item disable mem @var{nums}@dots{}
13716 Disable monitoring of memory regions @var{nums}@dots{}.
13721 @item enable mem @var{nums}@dots{}
13722 Enable monitoring of memory regions @var{nums}@dots{}.
/netbsd/src/external/gpl2/gawk/dist/
Dawk.texi14507 # Load all fields of each record into nums.
14510 nums[NR, i] = $i
14514 print maxelt(nums)

12