2 # $Id: MKfallback.sh,v 1.9 1999/06/15 22:57:45 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: $* */
35 static const TERMTYPE fallbacks[$#] =
41 echo "$comma /* $x */"
53 const TERMTYPE *_nc_fallback(const char *name GCC_UNUSED)
63 tp < fallbacks + sizeof(fallbacks)/sizeof(TERMTYPE);
65 if (_nc_name_match(tp->term_names, name, "|"))
69 echo " /* the fallback list is empty */";
73 return((TERMTYPE *)0);