2 # $Id: MKcaptab.awk,v 1.12 2000/12/10 00:14:12 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>
14 #include <curses.priv.h>
20 ./make_hash 1 info <$DATA
21 ./make_hash 3 cap <$DATA
24 const struct alias _nc_capalias_table[] =
34 printf "\t{\"%s\", %s, \"%s\"},\t /* %s */\n",
40 {(char *)NULL, (char *)NULL, (char *)NULL}
43 const struct alias _nc_infoalias_table[] =
53 printf "\t{\"%s\", %s, \"%s\"},\t /* %s */\n",
59 {(char *)NULL, (char *)NULL, (char *)NULL}
62 NCURSES_EXPORT(const struct name_table_entry *) _nc_get_table (bool termcap)
64 return termcap ? _nc_cap_table: _nc_info_table ;
67 NCURSES_EXPORT(const struct name_table_entry * const *) _nc_get_hash_table (bool termcap)
69 return termcap ? _nc_cap_hash_table: _nc_info_hash_table ;