Commit | Line | Data |
---|---|---|
304f87e5 KB |
1 | /*- |
2 | * Copyright (c) 1991 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
6 | * | |
6d5d747e | 7 | * @(#)extern.h 5.2 (Berkeley) %G% |
304f87e5 KB |
8 | */ |
9 | ||
10 | typedef struct { | |
6d5d747e KB |
11 | enum { STRING1, STRING2 } which; |
12 | enum { EOS, INFINITE, NORMAL, RANGE, SEQUENCE, SET } state; | |
304f87e5 KB |
13 | int cnt; /* character count */ |
14 | int lastch; /* last character */ | |
6d5d747e | 15 | int equiv[2]; /* equivalence set */ |
304f87e5 KB |
16 | int *set; /* set of characters */ |
17 | char *str; /* user's string */ | |
304f87e5 KB |
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 *)); |