1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)extern.h 8.1 (Berkeley) 06/06/93 8 */ 9 10 typedef struct { 11 enum { STRING1, STRING2 } which; 12 enum { EOS, INFINITE, NORMAL, RANGE, SEQUENCE, SET } state; 13 int cnt; /* character count */ 14 int lastch; /* last character */ 15 int equiv[2]; /* equivalence set */ 16 int *set; /* set of characters */ 17 char *str; /* user's string */ 18 } STR; 19 20 #include <limits.h> 21 #define NCHARS (UCHAR_MAX + 1) /* Number of possible characters. */ 22 #define OOBCH (UCHAR_MAX + 1) /* Out of band character value. */ 23 24 void err __P((const char *fmt, ...)); 25 int next __P((STR *)); 26