/********************************************************************
* wilkinson
* 3.7VMS
* 1995/09/25 10:45
* gopher_root1:[gopher.g2.vms2_13.object]Regex.h,v
* Exp
*
* Paul Lindner, University of Minnesota CIS.
*
* Copyright 1991, 1992 by the Regents of the University of Minnesota
* see the file "Copyright" in the distribution for conditions of use.
*********************************************************************
* MODULE: Regex.h
* Portable method of doing regular expressions
*********************************************************************
* Revision History:
* Regex.h,v
* Revision 3.7VMS 1995/09/25 10:45 wilkinson
* Consolodate VMS/Unix source code for server as well as client
* - use __VMS instead of VMS as trigger for VMS items
*
* Revision 3.7 1994/07/25 13:56:54 lindner
* First crack at POSIX regular expressions
*
* Revision 3.6 1994/07/21 17:29:13 lindner
* Fix typo
*
* Revision 3.5 1994/03/08 04:04:16 lindner
* add regex.h for NeXT systems
*
* Revision 3.4 1994/03/04 17:42:00 lindner
* Fix for SCO machines
*
* Revision 3.3 1994/02/20 16:24:02 lindner
* no message
*
* Revision 3.2 1993/10/27 18:50:38 lindner
* Support for more sysv platforms
*
* Revision 3.1 1993/10/19 20:48:26 lindner
* Portable versions of Regular expression routines for System V and BSD..
*
*
*********************************************************************/
/*
* Posix Regular expressions routines
*/
#if defined(REGEX_POSIX)
# include "Malloc.h"
# include <libgen.h>
# define re_comp(a) REGEX_param=regcomp(a,NULL)
# define re_exec(a) regex(REGEX_param,a)
# undef REGEX_POSIX
# define REGEX_POSIX
#endif
#if defined(USG) || defined(__svr4__) || defined(_AUX_SOURCE) || defined(hpux) || defined(irix) || defined(M_XENIX) || defined(SYSVREGEX)
# include "Malloc.h" /** For NULL **/
# ifdef REGEX_CODEIT
# define INIT register char *sp = instring;
# define GETC() (*sp++)
# define PEEKC() (*sp)
# define UNGETC(c) (--sp)
# define RETURN(c) return(NULL);
# define ERROR(c) return("error")
# include <regexp.h>
# define REGEX_SYSV
# endif
/*** BSDize the puppy ***/
char *re_comp();
int re_exec();
#else
/** BSD regex.. **/
# ifdef NeXT
# include <regex.h>
# endif
#ifdef __VMS
char *re_comp(char *);
int re_exec(char *);
#endif
#endif
.
Response:
text/plain