2 # $Id: MKfallback.sh,v 1.8 1996/09/15 01:44:13 tom Exp $
4 # MKfallback.sh -- create fallback table for entry reads
6 # This script generates source code for a custom version of read_entry.c
7 # that (instead of reading capabilities for an argument terminal type
8 # from an on-disk terminfo tree) tries to match the type with one of a
9 # specified list of types generated in.
13 * DO NOT EDIT THIS FILE BY HAND! It is generated by MKfallback.sh.
16 #include <curses.priv.h>
26 /* fallback entries for: $* */
28 static const TERMTYPE fallbacks[$#] =
34 echo "$comma /* $x */"
46 const TERMTYPE *_nc_fallback(const char *name GCC_UNUSED)
56 tp < fallbacks + sizeof(fallbacks)/sizeof(TERMTYPE);
58 if (_nc_name_match(tp->term_names, name, "|"))
62 echo " /* the fallback list is empty */";
66 return((TERMTYPE *)0);