mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
57 lines
2.3 KiB
C
57 lines
2.3 KiB
C
|
/*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
|
||
|
* *
|
||
|
* regular_exp.h *
|
||
|
* *
|
||
|
* Function:..Routine for TWEB *
|
||
|
* *
|
||
|
* *
|
||
|
* *
|
||
|
* Authors:...Dr. Kurt Spanier & Bernhard Winkler, *
|
||
|
* Zentrum fuer Datenverarbeitung, Bereich Entwicklung *
|
||
|
* neuer Dienste, Universitaet Tuebingen, GERMANY *
|
||
|
* *
|
||
|
* ZZZZZ DDD V V *
|
||
|
* Creation date: Z D D V V *
|
||
|
* January 20 1998 Z D D V V *
|
||
|
* Last modification: Z D D V V *
|
||
|
* January 20 1998 ZZZZZ DDD V *
|
||
|
* *
|
||
|
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
|
||
|
/*
|
||
|
* $Id: regular_exp.h,v 1.6 1999/09/10 15:01:19 zrnsk01 Exp $
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef _REGULAR_EXP_
|
||
|
#define _REGULAR_EXP_
|
||
|
|
||
|
/*
|
||
|
* Definitions etc. for regexp(3) routines.
|
||
|
*
|
||
|
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
|
||
|
* not the System V one.
|
||
|
*/
|
||
|
#define NSUBEXP 10
|
||
|
typedef struct regexp {
|
||
|
char *startp[NSUBEXP];
|
||
|
char *endp[NSUBEXP];
|
||
|
char regstart; /* Internal use only. */
|
||
|
char reganch; /* Internal use only. */
|
||
|
char *regmust; /* Internal use only. */
|
||
|
int regmlen; /* Internal use only. */
|
||
|
char program[1]; /* Unwarranted chumminess with compiler. */
|
||
|
} regexp;
|
||
|
|
||
|
extern regexp *tweb_regcomp();
|
||
|
extern int tweb_regexec();
|
||
|
extern void tweb_regsub();
|
||
|
extern void tweb_regerror();
|
||
|
/*
|
||
|
* The first byte of the regexp internal "program" is actually this magic
|
||
|
* number; the start node begins in the second byte.
|
||
|
*/
|
||
|
#define MAGIC 0234
|
||
|
|
||
|
#endif /* _REGULAR_EXP_ */
|