VAL
#define VAL(c) ( (c) < 9 ? (c)+1 : 10 ) /* val of rank */
#define VAL() ((*p++) - '0')
#define VAL 0
#define VAL c0