1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Jim R. Oldroyd at The Instruction Set and Keith Gabryelski at 7 * Commodore Business Machines. 8 * 9 * %sccs.include.redist.c% 10 * 11 * @(#)quiz.h 8.1 (Berkeley) 05/31/93 12 */ 13 14 #define TRUE 1 15 #define FALSE 0 16 17 /* Length of compiled regexp machine; increase if not big enough. */ 18 #define RXP_LINE_SZ 8192 19 20 /* Maximum line length for data files. */ 21 #define LINE_SZ 1024 22 23 /* Linked list for holding index and data file information. */ 24 typedef struct qentry { 25 struct qentry *q_next; /* next one */ 26 char *q_text; /* category text string from file */ 27 int q_asked; /* TRUE if question's been asked */ 28 int q_answered; /* TRUE if question's been answered */ 29 } QE; 30 31 extern char rxperr[]; 32 33 int rxp_compile __P((char *)); 34 char *rxp_expand __P((void)); 35 int rxp_match __P((char *)); 36