Home
last modified time | relevance | path

Searched refs:NUM_STRINGS (Results 1 – 7 of 7) sorted by relevance

/openbsd-src/lib/libcurses/
H A Dterm_entry.h61 #define NUM_STRINGS(tp) (tp)->num_Strings macro
66 #define NUM_STRINGS(tp) STRCOUNT
74 #define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++)
79 #define for_each_ext_string(n,tp) for(n = STRCOUNT; (int) n < (int) NUM_STRINGS(tp); n++)
/openbsd-src/usr.bin/top/
H A Dutils.c302 #define NUM_STRINGS 8 macro
307 static char retarray[NUM_STRINGS][16]; in format_k()
312 idx = (idx + 1) % NUM_STRINGS; in format_k()
/openbsd-src/lib/libcurses/tinfo/
H A Dinit_keytry.c95 for (n = STRCOUNT; n < NUM_STRINGS(tp); ++n) { in _nc_init_keytry()
H A Dalloc_ttype.c546 TYPE_MALLOC(char *, NUM_STRINGS(dst), dst->Strings); in copy_termtype()
553 NUM_STRINGS(dst) * sizeof(dst->Strings[0])); in copy_termtype()
/openbsd-src/usr.bin/infocmp/
H A Dinfocmp.c316 for (i = 0; i < NUM_STRINGS(t1); i++) in entryeq()
1406 || (NUM_STRINGS(term) != STRCOUNT)) { in dump_initializers()
1417 for (n = STRCOUNT; n < NUM_STRINGS(term); ++n) { in dump_initializers()
1444 || (NUM_STRINGS(term) != STRCOUNT)) in dump_termtype()
1450 (void) printf("\t\t%d,\t\t/* count total Strings */\n", NUM_STRINGS(term)); in dump_termtype()
1457 NUM_STRINGS(term) - STRCOUNT); in dump_termtype()
/openbsd-src/usr.bin/tic/
H A Ddump_entry.c1319 for (n = 0; n < NUM_STRINGS(tterm); ++n) { in kill_string()
1332 for (n = 0; n < NUM_STRINGS(tterm); ++n) { in find_string()
1581 for (n = STRCOUNT; n < NUM_STRINGS(tterm); n++) { in dump_entry()
H A Dtic.c2704 NAME_VALUE *result = typeMalloc(NAME_VALUE, NUM_STRINGS(tp) + 1); in get_fkey_list()
2722 for (j = STRCOUNT; j < NUM_STRINGS(tp); ++j) { in get_fkey_list()
2756 char *check = calloc((size_t) (NUM_STRINGS(tp) + 1), sizeof(char)); in check_conflict()