mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-10-31 11:07:44 +00:00
784e3de7cd
passwd, ps, purge, shutdown, stty, upper, and vi. These sources are for the versions of the utils shipped with GNO v2.0.4.
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/*
|
|
* NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
|
|
*
|
|
* This is NOT the original regular expression code as written by
|
|
* Henry Spencer. This code has been modified specifically for use
|
|
* with the STEVIE editor, and should not be used apart from compiling
|
|
* STEVIE. If you want a good regular expression library, get the
|
|
* original code. The copyright notice that follows is from the
|
|
* original.
|
|
*
|
|
* NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
|
|
*
|
|
* 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 *regcomp();
|
|
extern int regexec();
|
|
extern void regsub();
|
|
extern void regerror();
|
|
|
|
#ifndef ORIGINAL
|
|
extern int reg_ic; /* set non-zero to ignore case in searches */
|
|
#endif
|