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