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 * term_entry.h -- interface to entry-manipulation code
32 typedef struct entry {
37 void *parent; /* (char *) or (ENTRY *) */
48 extern ENTRY *_nc_head, *_nc_tail;
49 #define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next)
53 #define NULLHOOK (bool(*)(ENTRY *))0
55 /* alloc_entry.c: elementary allocation code */
56 extern void _nc_init_entry(TERMTYPE *const);
57 extern char *_nc_save_str(const char *const);
58 extern void _nc_merge_entry(TERMTYPE *const, TERMTYPE *const);
59 extern void _nc_wrap_entry(ENTRY *const);
61 /* parse_entry.c: entry-parsing code */
62 extern int _nc_parse_entry(ENTRY *, int, bool);
63 extern int _nc_capcmp(const char *, const char *);
65 /* write_entry.c: writing an entry to the file system */
66 extern void _nc_set_writedir(char *);
67 extern void _nc_write_entry(TERMTYPE *const);
69 /* comp_parse.c: entry list handling */
70 extern void _nc_read_entry_source(FILE*, char*, int, bool, bool (*)(ENTRY*));
71 extern bool _nc_entry_match(char *, char *);
72 extern int _nc_resolve_uses(void);
73 extern void _nc_free_entries(ENTRY *);
75 #endif /* _TERM_ENTRY_H */
77 /* term_entry.h ends here */