/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | getenv_num.c | 42 _nc_getenv_num(const char *name) argument 44 char *dst = 0; local 45 char *src = getenv(name); local 46 long value; local 59 _nc_setenv_num(const char *name, int value) argument 62 char buffer[128]; local 67 char *s; local [all...] |
H A D | hashed_db.c | 42 static DBC *cursor; variable 45 typedef struct _myconn { struct 46 struct _myconn *next; member in struct:_myconn 47 DB *db; member in struct:_myconn 48 char *path; member in struct:_myconn 49 bool modify; member in struct:_myconn 50 } MYCONN; typedef in typeref:struct:_myconn 52 static MYCONN *connections; variable 55 cleanup(void) function 63 find_connection(const char *path, bool modify) argument 65 DB *result = 0; local 66 MYCONN *p; local 79 drop_connection(DB * db) argument 81 MYCONN *p, *q; local 97 make_connection(DB * db, const char *path, bool modify) argument 99 MYCONN *p = typeCalloc(MYCONN, 1); local 118 _nc_db_open(const char *path, bool modify) argument 120 DB *result = 0; local 121 int code; local 182 _nc_db_close(DB * db) argument 184 int result; local 204 _nc_db_put(DB * db, DBT * key, DBT * data) argument 206 int result; local 223 _nc_db_get(DB * db, DBT * key, DBT * data) argument 225 int result; local 242 _nc_db_first(DB * db, DBT * key, DBT * data) argument 244 int result; local 264 _nc_db_next(DB * db, DBT * key, DBT * data) argument 266 int result; local 285 NCURSES_EXPORT(bool) function 288 bool result = FALSE; local 289 int used = (int) data->size - 1; local 290 char *have = (char *) data->data; local 308 NCURSES_EXPORT(bool) function 311 bool result = FALSE; local 312 int used = (int) data->size - 1; local 313 char *have = (char *) data->data; local 337 _nc_hashed_db(void) function [all...] |
H A D | home_terminfo.c | 44 #define MyBuffer macro 47 _nc_home_terminfo(void) function 49 char *result = 0; local 51 char *home; local 56 size_t want = (strlen(home) + sizeof(PRIVATE_INFO)); local [all...] |
H A D | init_keytry.c | 45 #undef CUR macro 46 #define CUR macro 49 #undef _nc_tinfo_fkeys macro 60 _nc_tinfo_fkeysf(void) function 67 _nc_init_keytry(SCREEN *sp) argument 69 unsigned n; local 91 TERMTYPE *tp = &(sp->_term->type); local 93 const char *name = ExtStrname(tp, (int) n, strnames); local 94 char *value = tp->Strings[n]; local [all...] |
H A D | lib_acs.c | 39 #define CUR macro 45 #define MyBuffer macro 47 NCURSES_PUBLIC_VAR(acs_map) (void) function 53 #undef MyBuffer macro 62 NCURSES_EXPORT(chtype) function 65 chtype *map; local 80 NCURSES_SP_NAME(_nc_init_acs) (NCURSES_SP_DCL0) function 82 chtype *fake_map = acs_map; local 83 chtype *real_map = SP_PARM != 0 ? SP_PARM->_acs_map : fake_map; local 84 int j; local 185 #define PCH_KLUDGE macro 188 size_t i; local 202 size_t i = 0; local 203 size_t length = strlen(acs_chars); local 219 size_t n, m; local 220 char show[ACS_LEN * 2 + 1]; local 247 _nc_init_acs(void) function [all...] |
H A D | lib_cur_term.c | 44 #undef CUR macro 45 #define CUR macro 50 NCURSES_SP_NAME(_nc_get_cur_term) (NCURSES_SP_DCL0) function 58 _nc_get_cur_term(void) function 65 NCURSES_PUBLIC_VAR(cur_term) (void) function 79 set_curterm(NCURSES_SP_DCLx TERMINAL * termp) argument 81 TERMINAL *oldterm; local 96 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; local 117 set_curterm(TERMINAL * termp) argument 124 del_curterm(NCURSES_SP_DCLx TERMINAL * termp) argument 126 int rc = ERR; local 132 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; local 134 TERMINAL *cur = ( local 165 del_curterm(TERMINAL * termp) argument 167 int rc = ERR; local [all...] |
H A D | lib_data.c | 53 NCURSES_PUBLIC_VAR(stdscr) (void) function 58 NCURSES_PUBLIC_VAR(curscr) (void) function 63 NCURSES_PUBLIC_VAR(newscr) (void) function 86 static SCREEN *my_screen; variable 89 _nc_screen(void) function 95 _nc_alloc_screen(void) function 101 _nc_set_screen(SCREEN *sp) argument 111 #define CHARS_0s macro 113 #define TGETENT_0 macro 114 #define TGETENT_0s macro 209 #define STACK_FRAME_0 macro 210 #define STACK_FRAME_0s macro 211 #define NUM_VARS_0s macro 213 #define RIPOFF_0 macro 214 #define RIPOFF_0s macro 270 _nc_screen_of(WINDOW *win) argument 272 SCREEN *sp = 0; local 283 init_global_mutexes(void) function 285 static bool initialized = FALSE; local 296 _nc_init_pthreads(void) function 326 _nc_mutex_init(pthread_mutex_t * obj) argument 328 pthread_mutexattr_t recattr; local 338 _nc_mutex_lock(pthread_mutex_t * obj) argument 346 _nc_mutex_trylock(pthread_mutex_t * obj) argument 354 _nc_mutex_unlock(pthread_mutex_t * obj) argument 369 _nc_sigprocmask(int how, const sigset_t * newmask, sigset_t * oldmask) argument [all...] |
H A D | lib_has_cap.c | 46 #define CUR macro 51 NCURSES_EXPORT(bool) function 54 bool code = FALSE; local 68 NCURSES_EXPORT(bool) function 75 NCURSES_EXPORT(bool) function 78 bool code = FALSE; local 89 NCURSES_EXPORT(bool) function [all...] |
H A D | lib_kernel.c | 54 _nc_vdisable(void) function 56 int value = -1; local 82 NCURSES_SP_NAME(erasechar) (NCURSES_SP_DCL0) function 84 int result = ERR; local 85 TERMINAL *termp = TerminalOf(SP_PARM); local 103 erasechar(void) function 117 NCURSES_SP_NAME(killchar) (NCURSES_SP_DCL0) function 119 int result = ERR; local 120 TERMINAL *termp = TerminalOf(SP_PARM); local 138 killchar(void) function 152 NCURSES_SP_NAME(flushinp) (NCURSES_SP_DCL0) function 154 TERMINAL *termp = TerminalOf(SP_PARM); local 180 flushinp(void) function [all...] |
H A D | lib_longname.c | 49 NCURSES_SP_NAME(longname) (NCURSES_SP_DCL0) function 51 static char empty[] = local 53 char *ptr; local 70 longname(void) function [all...] |
H A D | lib_napms.c | 57 napms(NCURSES_SP_DCLx int ms) argument 71 struct timespec request, remaining; local 89 napms(int ms) argument [all...] |
H A D | lib_options.c | 46 #define CUR macro 52 idlok(WINDOW *win, bool flag) argument 54 int res = ERR; local 58 SCREEN *sp = _nc_screen_of(win); local 74 idcok(WINDOW *win, bool flag) argument 79 SCREEN *sp = _nc_screen_of(win); local 86 halfdelay(NCURSES_SP_DCLx int t) argument 100 halfdelay(int t) argument 107 nodelay(WINDOW *win, bool flag) argument 122 notimeout(WINDOW *win, bool f) argument 134 wtimeout(WINDOW *win, int delay) argument 145 keypad(WINDOW *win, bool flag) argument 157 meta(WINDOW *win GCC_UNUSED, bool flag) argument 159 int result = ERR; local 160 SCREEN *sp = (win == 0) ? CURRENT_SCREEN : _nc_screen_of(win); local 192 curs_set(NCURSES_SP_DCLx int vis) argument 194 int code = ERR; local 198 int cursor = SP_PARM->_cursor; local 199 bool bBuiltIn = !IsTermInfo(SP_PARM); local 230 curs_set(int vis) argument 237 typeahead(NCURSES_SP_DCLx int fd) argument 250 typeahead(int fd) argument 265 has_key_internal(int keycode, TRIES * tp) argument 278 TINFO_HAS_KEY(SCREEN *sp, int keycode) argument 285 has_key(NCURSES_SP_DCLx int keycode) argument 293 has_key(int keycode) argument 302 _nc_putp_flush(NCURSES_SP_DCLx const char *name, const char *value) argument 305 int rc = NCURSES_PUTP2(name, value); local 328 _nc_keypad(SCREEN *sp, int flag) argument 330 int rc = ERR; local 340 SCREEN *save_sp; local [all...] |
H A D | lib_print.c | 39 #define CUR macro 45 mcprint(NCURSES_SP_DCLx char *data, int len) argument 48 int result; local 49 char *mybuf, *switchon; local 50 size_t onsize, offsize; local 51 size_t need; local 107 mcprint(char *data, int len) argument [all...] |
H A D | lib_raw.c | 60 #define _nc_setmode macro 66 #define INCL_KBD macro 70 #define COOKED_INPUT macro 73 #define BEFORE macro 74 #define AFTER macro 81 NCURSES_SP_NAME(raw) (NCURSES_SP_DCL0) function 83 int result = ERR; local 84 TERMINAL *termp; local 88 TTY buf; local 105 KBDINFO kbdinfo; local 126 raw(void) function 133 NCURSES_SP_NAME(cbreak) (NCURSES_SP_DCL0) function 135 int result = ERR; local 136 TERMINAL *termp; local 140 TTY buf; local 167 cbreak(void) function 178 NCURSES_SP_NAME(qiflush) (NCURSES_SP_DCL0) function 180 int result = ERR; local 181 TERMINAL *termp; local 185 TTY buf; local 204 qiflush(void) function 211 NCURSES_SP_NAME(noraw) (NCURSES_SP_DCL0) function 213 int result = ERR; local 214 TERMINAL *termp; local 218 TTY buf; local 234 KBDINFO kbdinfo; local 255 noraw(void) function 262 NCURSES_SP_NAME(nocbreak) (NCURSES_SP_DCL0) function 264 int result = ERR; local 265 TERMINAL *termp; local 269 TTY buf; local 293 nocbreak(void) function 300 NCURSES_SP_NAME(noqiflush) (NCURSES_SP_DCL0) function 302 int result = ERR; local 303 TERMINAL *termp; local 307 TTY buf; local 326 noqiflush(void) function 340 intrflush(NCURSES_SP_DCLx WINDOW *win GCC_UNUSED, bool flag) argument 342 int result = ERR; local 343 TERMINAL *termp; local 350 TTY buf; local 373 intrflush(WINDOW *win GCC_UNUSED, bool flag) argument [all...] |
H A D | lib_setup.c | 84 # define IOCTL_WINSIZE macro 85 # define STRUCT_WINSIZE macro 86 # define WINSIZE_ROWS macro 87 # define WINSIZE_COLS macro 100 #undef CUR macro 101 #define CUR macro 109 NCURSES_PUBLIC_VAR(ttytype) (void) function 111 static char empty[] = ""; local 112 char *result = empty; local 116 TERMINAL *termp = TerminalOf(CURRENT_SCREEN); local 130 _nc_ptr_Lines(SCREEN *sp) argument 136 NCURSES_PUBLIC_VAR(LINES) (void) function 142 _nc_ptr_Cols(SCREEN *sp) argument 148 NCURSES_PUBLIC_VAR(COLS) (void) function 154 _nc_ptr_Tabsize(SCREEN *sp) argument 160 NCURSES_PUBLIC_VAR(TABSIZE) (void) function 173 set_tabsize(NCURSES_SP_DCLx int value) argument 175 int code = OK; local 191 set_tabsize(int value) argument 203 _nc_handle_sigwinch(SCREEN *sp) argument 205 SCREEN *scan; local 221 use_env(NCURSES_SP_DCLx bool f) argument 236 use_tioctl(NCURSES_SP_DCLx bool f) argument 252 use_env(bool f) argument 261 use_tioctl(bool f) argument 271 _nc_get_screensize(SCREEN *sp, TERMINAL * termp, int *linep, int *colp) argument 279 TERMINAL_CONTROL_BLOCK *TCB; local 280 int my_tabsize; local 415 _nc_update_screensize(SCREEN *sp) argument 417 int new_lines; local 418 int new_cols; local 421 int old_lines; local 422 int old_cols; local 429 TERMINAL *termp = cur_term; local 430 int old_lines = lines; local 431 int old_cols = columns; local 464 _nc_setup_tinfo(const char *const tn, TERMTYPE *const tp) argument 466 char filename[PATH_MAX]; local 467 int status = _nc_read_entry(tn, filename, tp); local 476 unsigned n; local 477 for_each_boolean(n, tp) { function 481 for_each_string(n, tp) { function 495 _nc_tinfo_cmdch(TERMINAL * termp, int proto) argument 497 unsigned i; local 498 char CC; local 499 char *tmp; local 521 _nc_get_locale(void) function 523 char *env; local 545 _nc_unicode_locale(void) function 547 int result = 0; local 551 char *env = nl_langinfo(CODESET); local 555 char *env = _nc_get_locale(); local 566 #define CONTROL_N macro 567 #define CONTROL_O macro 574 _nc_locale_breaks_acs(TERMINAL * termp) argument 576 const char *env_name = "NCURSES_NO_UTF8_ACS"; local 577 char *env; local 578 int value; local 579 int result = 0; local 604 TINFO_SETUP_TERM(TERMINAL ** tp, NCURSES_CONST char *tname, int Filedes, int *errret, int reuse) argument 611 TERMINAL_CONTROL_BLOCK *TCB = 0; local 615 TERMINAL *termp; local 616 SCREEN *sp = 0; local 617 int code = ERR; local 690 TERMINAL_CONTROL_BLOCK *my_tcb; local 720 const TERMTYPE *fallback = _nc_fallback(tname); local 808 new_prescr(void) function 810 static SCREEN *sp; local 844 _nc_setupterm(NCURSES_CONST char *tname, int Filedes, int *errret, int reuse) argument 849 int res; local 850 TERMINAL *termp = 0; local 865 setupterm(NCURSES_CONST char *tname, int Filedes, int *errret) argument [all...] |
H A D | lib_termcap.c | 42 #define __INTERNAL_CAPS_VISIBLE macro 50 #define CUR macro 62 #define MyCache macro 63 #define CacheInx macro 64 #define CacheSeq macro 66 #define FIX_SGR0 macro 67 #define LAST_TRM macro 68 #define LAST_BUF macro 69 #define LAST_USE macro 70 #define LAST_SEQ macro 77 #define ValidCap macro 78 #define SameCap macro 79 #define ValidExt macro 97 tgetent(NCURSES_SP_DCLx char *bufp, const char *name) argument 99 int rc = ERR; local 100 int n; local 101 bool found_cache = FALSE; local 103 TERMINAL *termp = 0; local 131 bool same_result = (MyCache[n].last_used && MyCache[n].last_bufp == bufp); local 141 TERMINAL *trm = LAST_TRM; local 153 int best = 0; local 220 tgetent(char *bufp, const char *name) argument 236 #define same_tcname macro 249 tgetflag(NCURSES_SP_DCLx NCURSES_CONST char *id) argument 251 int result = 0; /* Solaris returns zero for missing flag */ local 252 int j = -1; local 256 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 257 struct name_table_entry const *entry_ptr; local 265 int i; local 266 for_each_ext_boolean(i, tp) { function 267 const char *capname = ExtBoolname(tp, i, boolcodes); local 285 tgetflag(NCURSES_CONST char *id) argument 301 tgetnum(NCURSES_SP_DCLx NCURSES_CONST char *id) argument 303 int result = ABSENT_NUMERIC; local 304 int j = -1; local 308 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 309 struct name_table_entry const *entry_ptr; local 317 int i; local 318 for_each_ext_number(i, tp) { function 319 const char *capname = ExtNumname(tp, i, numcodes); local 337 tgetnum(NCURSES_CONST char *id) argument 353 tgetstr(NCURSES_SP_DCLx NCURSES_CONST char *id, char **area) argument 355 char *result = NULL; local 356 int j = -1; local 360 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 361 struct name_table_entry const *entry_ptr; local 369 int i; local 370 for_each_ext_string(i, tp) { function 371 const char *capname = ExtStrname(tp, i, strcodes); local 403 tgetstr(NCURSES_CONST char *id, char **area) argument 411 _nc_tgetent_leaks(void) function [all...] |
H A D | lib_termname.c | 34 NCURSES_SP_NAME(termname) (NCURSES_SP_DCL0) function 36 char *name = 0; local 54 termname(void) function [all...] |
H A D | lib_tgoto.c | 42 is_termcap(const char *string) argument 44 bool result = TRUE; local 69 tgoto_internal(const char *string, int x, int y) argument 71 static char *result; local 72 static size_t length; local 74 int swap_arg; local 75 int param[3]; local 76 size_t used = 0; local 77 size_t need = 10; local 78 int *value = param; local 79 bool need_BC = FALSE; local 97 const char *fmt = 0; local 192 tgoto(const char *string, int x, int y) argument 194 char *result; local [all...] |
H A D | lib_ti.c | 49 #define same_name macro 53 tigetflag(NCURSES_SP_DCLx NCURSES_CONST char *str) argument 55 int result = ABSENT_BOOLEAN; local 56 int j = -1; local 61 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 62 struct name_table_entry const *entry_ptr; local 70 int i; local 71 for_each_ext_boolean(i, tp) { function 72 const char *capname = ExtBoolname(tp, i, boolnames); local 91 tigetflag(NCURSES_CONST char *str) argument 98 tigetnum(NCURSES_SP_DCLx NCURSES_CONST char *str) argument 100 int j = -1; local 101 int result = CANCELLED_NUMERIC; /* Solaris returns a -1 on error */ local 106 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 107 struct name_table_entry const *entry_ptr; local 115 int i; local 116 for_each_ext_number(i, tp) { function 117 const char *capname = ExtNumname(tp, i, numnames); local 138 tigetnum(NCURSES_CONST char *str) argument 145 tigetstr(NCURSES_SP_DCLx NCURSES_CONST char *str) argument 147 char *result = CANCELLED_STRING; local 148 int j = -1; local 153 TERMTYPE *tp = &(TerminalOf(SP_PARM)->type); local 154 struct name_table_entry const *entry_ptr; local 162 int i; local 163 for_each_ext_string(i, tp) { function 164 const char *capname = ExtStrname(tp, i, strnames); local 183 tigetstr(NCURSES_CONST char *str) argument [all...] |
H A D | lib_tparm.c | 109 #define TPS macro 110 #define popcount macro 114 _nc_free_tparm(void) function 127 get_space(size_t need) argument 137 save_text(const char *fmt, const char *s, int len) argument 139 size_t s_len = strlen(s); local 152 save_number(const char *fmt, int number, int len) argument 166 save_char(int c) argument 175 npush(int x) argument 188 npop(void) function 190 int result = 0; local 203 spush(char *x) argument 216 spop(void) function 218 static char dummy[] = ""; /* avoid const-cast */ local 219 char *result = dummy; local 233 parse_format(const char *s, char *format, int *len) argument 237 bool done = FALSE; local 238 bool allowminus = FALSE; local 239 bool dot = FALSE; local 240 bool err = FALSE; local 241 char *fmt = format; local 242 int my_width = 0; local 243 int my_prec = 0; local 244 int value = 0; local 324 #define isUPPER macro 325 #define isLOWER macro 339 _nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount) argument 341 size_t len2; local 342 int i; local 343 int lastpop = -1; local 344 int len; local 345 int number = 0; local 346 const char *cp = string; local 347 static char dummy[] = ""; local 456 tparam_internal(int use_TPARM_ARG, const char *string, va_list ap) argument 458 char *p_is_s[NUM_PARM]; local 459 TPARM_ARG param[NUM_PARM]; local 460 int popcount = 0; local 461 int number; local 462 int num_args; local 463 int len; local 464 int level; local 465 int x, y; local 466 int i; local 467 const char *cp = string; local 468 size_t len2; local 557 save_number(TPS(fmt_buff), npop(), len); local 569 save_text(TPS(fmt_buff), spop(), len); local 771 #define tparm_varargs macro 773 #define tparm_proto macro 777 tparm_varargs(NCURSES_CONST char *string,...) argument 779 va_list ap; local 780 char *result; local 794 tparm_proto(NCURSES_CONST char *string, TPARM_ARG a1, TPARM_ARG a2, TPARM_ARG a3, TPARM_ARG a4, TPARM_ARG a5, TPARM_ARG a6, TPARM_ARG a7, TPARM_ARG a8, TPARM_ARG a9) argument 810 tiparm(const char *string,...) argument 812 va_list ap; local 813 char *result; local [all...] |
H A D | lib_tputs.c | 47 #define CUR macro 63 _nc_set_no_padding(SCREEN *sp) argument 65 bool no_padding = (getenv("NCURSES_NO_PADDING") != 0); local 78 #define SetOutCh macro 79 #define GetOutCh macro 81 #define SetOutCh macro 82 #define GetOutCh macro 83 static NCURSES_SP_OUTC static_outch = NCURSES_SP_NAME(_nc_outch); variable 87 delay_output(NCURSES_SP_DCLx int ms) argument 98 NCURSES_SP_OUTC my_outch = GetOutCh(); local 99 register int nullcount; local 113 delay_output(int ms) argument 120 NCURSES_SP_NAME(_nc_flush) (NCURSES_SP_DCL0) function 124 size_t amount = SP->out_inuse; local 137 _nc_flush(void) function 144 _nc_outch(NCURSES_SP_DCLx int ch) argument 146 int rc = OK; local 157 char tmp = (char) ch; local 166 char tmp = (char) ch; local 175 _nc_outch(int ch) argument 185 _nc_putchar(NCURSES_SP_DCLx int ch) argument 193 _nc_putchar(int ch) argument 206 putp(NCURSES_SP_DCLx const char *string) argument 214 putp(const char *string) argument 224 _nc_putp(NCURSES_SP_DCLx const char *name GCC_UNUSED, const char *string) argument 228 int rc = ERR; local 240 _nc_putp(const char *name, const char *string) argument 247 tputs(NCURSES_SP_DCLx const char *string, int affcnt, NCURSES_SP_OUTC outc) argument 252 NCURSES_SP_OUTC my_outch = GetOutCh(); local 253 bool always_delay; local 254 bool normal_delay; local 255 int number; local 257 int trailpad; local 261 char addrbuf[32]; local 345 bool mandatory; local 412 _nc_outc_wrapper(SCREEN *sp, int c) argument 422 tputs(const char *string, int affcnt, int (*outc) (int)) argument [all...] |
H A D | lib_ttyflags.c | 41 #define CUR macro 47 _nc_get_tty_mode(NCURSES_SP_DCLx TTY * buf) argument 49 int result = OK; local 54 TERMINAL *termp = TerminalOf(SP_PARM); local 85 _nc_get_tty_mode(TTY * buf) argument 92 _nc_set_tty_mode(NCURSES_SP_DCLx TTY * buf) argument 94 int result = OK; local 99 TERMINAL *termp = TerminalOf(SP_PARM); local 132 _nc_set_tty_mode(TTY * buf) argument 139 NCURSES_SP_NAME(def_shell_mode) (NCURSES_SP_DCL0) function 141 int rc = ERR; local 142 TERMINAL *termp = TerminalOf(SP_PARM); local 170 def_shell_mode(void) function 177 NCURSES_SP_NAME(def_prog_mode) (NCURSES_SP_DCL0) function 179 int rc = ERR; local 180 TERMINAL *termp = TerminalOf(SP_PARM); local 206 def_prog_mode(void) function 213 NCURSES_SP_NAME(reset_prog_mode) (NCURSES_SP_DCL0) function 215 int rc = ERR; local 216 TERMINAL *termp = TerminalOf(SP_PARM); local 239 reset_prog_mode(void) function 246 NCURSES_SP_NAME(reset_shell_mode) (NCURSES_SP_DCL0) function 248 int rc = ERR; local 249 TERMINAL *termp = TerminalOf(SP_PARM); local 270 reset_shell_mode(void) function 277 saved_tty(NCURSES_SP_DCL0) function 279 TTY *result = 0; local 298 NCURSES_SP_NAME(savetty) (NCURSES_SP_DCL0) function 306 savetty(void) function 313 NCURSES_SP_NAME(resetty) (NCURSES_SP_DCL0) function 321 resetty(void) function [all...] |
H A D | make_hash.c | 58 #undef MODULE_ID macro 59 #define MODULE_ID macro 63 failed(const char *s) argument 70 strmalloc(char *s) argument 72 size_t need = strlen(s) + 1; local 73 char *result = malloc(need); local 91 hash_function(const char *string) argument 93 long sum = 0; local 104 _nc_make_hash_table(struct name_table_entry *table, HashValue * hash_table) argument 107 short i; local 108 int hashvalue; local 109 int collisions = 0; local 138 #define MAX_COLUMNS macro 141 count_columns(char **list) argument 143 int result = 0; local 153 parse_columns(char *buffer) argument 155 static char **list; local 157 int col = 0; local 164 char *s; local 168 char mark = *s; local 192 main(int argc, char **argv) argument 194 struct name_table_entry *name_table = typeCalloc(struct local 196 HashValue *hash_table = typeCalloc(HashValue, HASHTABSIZE); local 197 const char *root_name = ""; local 198 int column = 0; local 199 int bigstring = 0; local 200 int n; local 201 char buffer[BUFSIZ]; local 203 static const char *typenames[] = local 206 short BoolCount = 0; local 207 short NumCount = 0; local 208 short StrCount = 0; local 228 char **list, *nlp = strchr(buffer, '\\n'); local 264 int len = 0; local 265 int nxt; local [all...] |
H A D | make_keys.c | 39 #define USE_TERMLIB macro 46 #define UNKNOWN macro 49 lookup(const char *name) argument 51 unsigned n; local 52 bool found = FALSE; local 71 make_keys(FILE *ifp, FILE *ofp) argument 73 char buffer[BUFSIZ]; local 74 char from[256]; local 75 char to[256]; local 76 unsigned maxlen = 16; local 77 int scanned; local 88 unsigned code = lookup(from); local 103 write_list(FILE *ofp, const char **list) argument 110 main(int argc, char *argv[]) argument 112 static const char *prefix[] = local 125 static const char *suffix[] = local 135 int n; local 137 FILE *fp = fopen(argv[n], "r"); local [all...] |
H A D | name_match.c | 38 #define FirstName macro 42 skip_index(const char *name) argument 45 const char *bar = strchr(name, '|'); local 59 _nc_first_name(const char *const sp) argument 61 unsigned n; local 75 const char *src = sp; local 94 _nc_name_match(const char *const namelst, const char *const name, const char *const delim) argument 96 const char *s, *d, *t; local 97 int code, found; local [all...] |