2 # $Id: MKcaptab.awk,v 1.10 1997/09/11 17:40:46 tom Exp $
4 DATA=${2-../include/Caps}
8 * comp_captab.c -- The names of the capabilities indexed via a hash
9 * table for the compiler.
13 #include <ncurses_cfg.h>
19 ./make_hash 1 info <$DATA
20 ./make_hash 3 cap <$DATA
23 const struct alias _nc_capalias_table[] =
33 printf "\t{\"%s\", %s, \"%s\"},\t /* %s */\n",
39 {(char *)NULL, (char *)NULL, (char *)NULL}
42 const struct alias _nc_infoalias_table[] =
52 printf "\t{\"%s\", %s, \"%s\"},\t /* %s */\n",
58 {(char *)NULL, (char *)NULL, (char *)NULL}
61 const struct name_table_entry *_nc_get_table(bool termcap)
63 return termcap ? _nc_cap_table: _nc_info_table ;