1 /* SCCS_Id = "@(#)trexp.h\tver 1.3 (91/09/28 14:23:31) brachman@cs.ubc.ca" */ 2 3 /* 4 * Copyright 1989, 1990, 1991, 1995 by 5 * Barry Brachman and the University of British Columbia 6 * 7 * Permission to use, copy, modify, distribute, and sell this software and its 8 * documentation for any purpose is hereby granted without fee, provided that 9 * the above copyright notice appear in all copies and that both that 10 * copyright notice and this permission notice appear in supporting 11 * documentation, and that the name of U.B.C. not be used in advertising or 12 * publicity pertaining to distribution of the software without specific, 13 * written prior permission. U.B.C. makes no representations about the 14 * suitability of this software for any purpose. It is provided "as is" 15 * without express or implied warranty. 16 */ 17 18 #define trexec(t, ch) (t->exp[ch & 0377]) 19 #define trnset(t) (t->nset) 20 21 typedef struct trexp { 22 char exp[256]; 23 int nset; 24 } trexp; 25 26 trexp *trcomp(); 27 void trshow(); 28