#!/bin/sh
# $Id: tioccc.sh,v 1.1 2003/01/03 03:38:15 shinra Exp $
set -e
echo '/* Automatically generated from chars.dat. Do not edit. */'
for p in `sed 's/#.*//;s/[ 	].*$//;/^$/d;' chars.dat`; do
  echo "
#ifdef V$p
# if V$p < MAXCC
    pterm->tio.c_cc[V$p] = MYC$p;
# elif TIO_TYPE == TIO_TYPE_TERMIOS
#  error \"Incorrect definition of V$p\"
# endif
#endif"
done
