2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
24 * Dump control definitions and variables
27 /* capability output formats */
28 #define F_TERMINFO 0 /* use terminfo names */
29 #define F_VARIABLE 1 /* use C variable names */
30 #define F_TERMCAP 2 /* termcap names with capability conversion */
31 #define F_TCONVERR 3 /* as T_TERMCAP, no skip of untranslatables */
32 #define F_LITERAL 4 /* like F_TERMINFO, but no smart defaults */
34 /* capability sort modes */
35 #define S_DEFAULT 0 /* sort by terminfo name (implicit) */
36 #define S_NOSORT 1 /* don't sort */
37 #define S_TERMINFO 2 /* sort by terminfo names (explicit) */
38 #define S_VARIABLE 3 /* sort by C variable names */
39 #define S_TERMCAP 4 /* sort by termcap names */
41 extern char *nametrans(const char *);
42 extern void dump_init(const char *, int, int, int, int);
43 extern int fmt_entry(TERMTYPE *, int (*)(int, int), bool, bool);
44 extern int dump_entry(TERMTYPE *, bool, int (*)(int, int));
45 extern int dump_uses(const char *, bool);
46 extern void compare_entry(void (*)(int, int, const char *));
47 extern char *expand(char *);