REGEX 22-SEP-1995 18:32:04 VAX C V3.2-044 Page 1 V1.0 25-JUL-1994 08:56:54 [GOPHER.G2.VMS2_13.OBJECT]REGEX.C;1 (1) 1 /******************************************************************** 2 * lindner 3 * 3.2 4 * 1994/07/25 13:56:53 5 * /home/arcwelder/GopherSrc/CVS/gopher+/object/Regex.c,v 6 * $Status: $ 7 * 8 * Paul Lindner, University of Minnesota CIS. 9 * 10 * Copyright 1991, 1992 by the Regents of the University of Minnesota 11 * see the file "Copyright" in the distribution for conditions of use. 12 ********************************************************************* 13 * MODULE: Regex.c 14 * Portable method of doing regular expressions 15 ********************************************************************* 16 * Revision History: 17 * Regex.c,v 18 * Revision 3.2 1994/07/25 13:56:53 lindner 19 * First crack at POSIX regular expressions 20 * 21 * Revision 3.1 1993/10/19 20:48:23 lindner 22 * Portable versions of Regular expression routines for System V and BSD.. 23 * 24 * 25 *********************************************************************/ 26 27 /* 28 * If you're using gcc on Solaris you might need to copy /usr/include/regexp.h 29 * to /opt/whatever/regexp.h 30 */ 31 32 #define REGEX_CODEIT /* only include sysv regex code once.. */ 33 #include "Regex.h" 126 127 #ifdef REGEX_POSIX 128 X char *REGEX_param = NULL; 129 #endif 130 131 #ifdef REGEX_SYSV 132 X 133 X #define ESIZE 512 134 X static char expbuf[ESIZE]; 135 X 136 X char * 137 X re_comp(expr) 138 X char *expr; 139 X { 140 X char *result; 141 X 142 X result = compile(expr, expbuf, &expbuf[ESIZE], '\0'); 143 X 144 X return(NULL); 145 X } 146 X 147 X int REGEX 22-SEP-1995 18:32:04 VAX C V3.2-044 Page 2 V1.0 25-JUL-1994 08:56:54 [GOPHER.G2.VMS2_13.OBJECT]REGEX.C;1 (1) 148 X re_exec(string) 149 X char *string; 150 X { 151 X return(step(string, expbuf)); 152 X } 153 X 154 #endif Command Line ------------ CC/INCL=([-],[-.OBJECT])/DEFINE=(MULTINET=1,DEBUGGING,__VMS)/DEBUG/NOOPT/OBJ=[.VAX.DBG]/LIS=[.VAX.LIS] REGEX.C .