regexp.h

Go to the documentation of this file.
00001 /* The <regexp.h> header is used by the (V8-compatible) regexp(3) routines. */
00002 /* NOTE: Obsoleted by the POSIX regex(3) library. */
00003 
00004 #ifndef _REGEXP_H
00005 #define _REGEXP_H
00006 
00007 #ifndef _ANSI_H
00008 #include <ansi.h>
00009 #endif
00010 
00011 #define CHARBITS 0377
00012 #define NSUBEXP  10
00013 typedef struct regexp {
00014         const char *startp[NSUBEXP];
00015         const char *endp[NSUBEXP];
00016         char regstart;          /* Internal use only. */
00017         char reganch;           /* Internal use only. */
00018         char *regmust;          /* Internal use only. */
00019         int regmlen;            /* Internal use only. */
00020         char program[1];        /* Unwarranted chumminess with compiler. */
00021 } regexp;
00022 
00023 /* Keep these functions away from the POSIX versions. */
00024 #define regcomp _v8_regcomp
00025 #define regexec _v8_regexec
00026 #define regsub _v8_regsub
00027 #define regerror _v8_regerror
00028 
00029 /* Function Prototypes. */
00030 regexp *regcomp(const char *_exp);
00031 int regexec(regexp *_prog, const char *_string, int _bolflag);
00032 void regsub(regexp *_prog, char *_source, char *_dest);
00033 void regerror(const char *_message) ;
00034 
00035 #endif /* _REGEXP_H */
00036 
00037 /*
00038  * $PchId: regexp.h,v 1.4 1996/04/10 21:43:17 philip Exp $
00039  */

Generated on Fri Apr 14 22:56:41 2006 for minix by  doxygen 1.4.6