]> ncurses.scripts.mit.edu Git - ncurses.git/blob - progs/dump_entry.h
7ea6fcf2e1df49ff09c4d0709ab386e161c48ca7
[ncurses.git] / progs / dump_entry.h
1
2 /***************************************************************************
3 *                            COPYRIGHT NOTICE                              *
4 ****************************************************************************
5 *                ncurses is copyright (C) 1992-1995                        *
6 *                          Zeyd M. Ben-Halim                               *
7 *                          zmbenhal@netcom.com                             *
8 *                          Eric S. Raymond                                 *
9 *                          esr@snark.thyrsus.com                           *
10 *                                                                          *
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.                *
17 *                                                                          *
18 *        ncurses comes AS IS with no warranty, implied or expressed.       *
19 *                                                                          *
20 ***************************************************************************/
21
22
23 /*
24  * Dump control definitions and variables
25  */
26
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 */
33
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 */
40
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 *);
48
49 #define FAIL    -1