4 #define LENGTH(x) ((int)(sizeof (x) / sizeof *(x)))
5 #define MIN(a, b) ((a) > (b) ? (b) : (a))
6 #define MAX(a, b) ((a) < (b) ? (b) : (a))
8 /* is c the start of a utf8 sequence? */
9 #define ISUTF8(c) (((c)&0xC0)!=0x80)
10 #define ISASCII(ch) ((unsigned char)ch < 0x80)