dump_entry.h revision 62449
1129202Scognet/**************************************************************************** 2129202Scognet * Copyright (c) 1998,1999 Free Software Foundation, Inc. * 3129202Scognet * * 4129202Scognet * Permission is hereby granted, free of charge, to any person obtaining a * 5129202Scognet * copy of this software and associated documentation files (the * 6129202Scognet * "Software"), to deal in the Software without restriction, including * 7129202Scognet * without limitation the rights to use, copy, modify, merge, publish, * 8129202Scognet * distribute, distribute with modifications, sublicense, and/or sell * 9129202Scognet * copies of the Software, and to permit persons to whom the Software is * 10129202Scognet * furnished to do so, subject to the following conditions: * 11129202Scognet * * 12129202Scognet * The above copyright notice and this permission notice shall be included * 13129202Scognet * in all copies or substantial portions of the Software. * 14129202Scognet * * 15129202Scognet * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16129202Scognet * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17129202Scognet * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18129202Scognet * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19129202Scognet * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20129202Scognet * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21129202Scognet * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22129202Scognet * * 23129202Scognet * Except as contained in this notice, the name(s) of the above copyright * 24129202Scognet * holders shall not be used in advertising or otherwise to promote the * 25129202Scognet * sale, use or other dealings in this Software without prior written * 26129202Scognet * authorization. * 27129202Scognet ****************************************************************************/ 28129202Scognet 29129202Scognet/**************************************************************************** 30129202Scognet * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 31129202Scognet * and: Eric S. Raymond <esr@snark.thyrsus.com> * 32129202Scognet ****************************************************************************/ 33129202Scognet 34129202Scognet 35129202Scognet/* 36129202Scognet * Dump control definitions and variables 37129202Scognet */ 38129202Scognet 39129202Scognet/* capability output formats */ 40129202Scognet#define F_TERMINFO 0 /* use terminfo names */ 41129202Scognet#define F_VARIABLE 1 /* use C variable names */ 42129202Scognet#define F_TERMCAP 2 /* termcap names with capability conversion */ 43129202Scognet#define F_TCONVERR 3 /* as T_TERMCAP, no skip of untranslatables */ 44129202Scognet#define F_LITERAL 4 /* like F_TERMINFO, but no smart defaults */ 45129202Scognet 46129202Scognet/* capability sort modes */ 47129202Scognet#define S_DEFAULT 0 /* sort by terminfo name (implicit) */ 48129202Scognet#define S_NOSORT 1 /* don't sort */ 49129202Scognet#define S_TERMINFO 2 /* sort by terminfo names (explicit) */ 50129202Scognet#define S_VARIABLE 3 /* sort by C variable names */ 51129202Scognet#define S_TERMCAP 4 /* sort by termcap names */ 52129202Scognet 53129202Scognet/* capability types for the comparison hook */ 54129202Scognet#define CMP_BOOLEAN 0 /* comparison on booleans */ 55271337Sian#define CMP_NUMBER 1 /* comparison on numerics */ 56#define CMP_STRING 2 /* comparison on strings */ 57#define CMP_USE 3 /* comparison on use capabilities */ 58 59extern NCURSES_CONST char *nametrans(const char *); 60extern void dump_init(const char *, int, int, int, int, bool); 61extern int fmt_entry(TERMTYPE *, int (*)(int, int), bool, bool, int); 62extern int dump_entry(TERMTYPE *, bool, int, int (*)(int, int)); 63extern int dump_uses(const char *, bool); 64extern void compare_entry(void (*)(int, int, const char *), TERMTYPE *, bool); 65extern void repair_acsc(TERMTYPE * tp); 66 67#define FAIL -1 68