ncursesw-morphos/include/MKhashsize.sh

15 lines
358 B
Bash
Raw Normal View History

1997-05-15 12:00:00 +08:00
#!/bin/sh
#
# MKhashsize.sh --- generate size include for hash functions
#
echo "/*"
echo " * hashsize.h -- hash and token table constants"
echo " */"
CAPS="${1-Caps}"
TABSIZE=`grep -v '^[ #]' $CAPS | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
echo ""
echo "#define CAPTABSIZE ${TABSIZE}"
echo "#define HASHTABSIZE (${TABSIZE} * 2)"