diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-24 06:31:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-24 06:31:12 +0000 |
commit | e9a62161121e4d9f0aa46ddcff0a3a0f8879d0ed (patch) | |
tree | f70dac47630b69f5bfa3c5d7afcb1b5fe9133f54 /lib/libcurses/term_entry.h | |
parent | 4ac175997c3d2ab53080a9546cb1fda25fc147f5 (diff) |
ncurses-4.2-990220; this is a pre-release of 5.0
Diffstat (limited to 'lib/libcurses/term_entry.h')
-rw-r--r-- | lib/libcurses/term_entry.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/libcurses/term_entry.h b/lib/libcurses/term_entry.h index 85236c000e1..e949c429a8c 100644 --- a/lib/libcurses/term_entry.h +++ b/lib/libcurses/term_entry.h @@ -1,4 +1,4 @@ -/* $OpenBSD: term_entry.h,v 1.5 1999/02/01 20:55:40 millert Exp $ */ +/* $OpenBSD: term_entry.h,v 1.6 1999/02/24 06:31:07 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -70,6 +70,24 @@ extern ENTRY *_nc_head, *_nc_tail; #define NULLHOOK (bool(*)(ENTRY *))0 +/* + * Note that WANTED and PRESENT are not simple inverses! If a capability + * has been explicitly cancelled, it's not considered WANTED. + */ +#define WANTED(s) ((s) == ABSENT_STRING) +#define PRESENT(s) (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING)) + +#define ANDMISSING(p,q) \ + {if (PRESENT(p) && !PRESENT(q)) _nc_warning(#p " but no " #q);} + +#define PAIRED(p,q) \ + { \ + if (PRESENT(q) && !PRESENT(p)) \ + _nc_warning(#q " but no " #p); \ + if (PRESENT(p) && !PRESENT(q)) \ + _nc_warning(#p " but no " #q); \ + } + /* alloc_entry.c: elementary allocation code */ extern void _nc_init_entry(TERMTYPE *const); extern char *_nc_save_str(const char *const); @@ -89,6 +107,8 @@ extern void _nc_read_entry_source(FILE*, char*, int, bool, bool (*)(ENTRY*)); extern bool _nc_entry_match(char *, char *); extern int _nc_resolve_uses(void); extern void _nc_free_entries(ENTRY *); +extern void (*_nc_check_termtype)(TERMTYPE *); + #ifdef __OpenBSD__ /* read_bsd_terminfo.c: terminfo.db reading */ |