source: trunk/src/emx/include/regexp.h@ 689

Last change on this file since 689 was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 723 bytes
Line 
1/*
2 * Definitions etc. for regexp(3) routines.
3 *
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
6 */
7
8#ifndef _REGEXP_H
9#define _REGEXP_H
10
11#if defined (__cplusplus)
12extern "C" {
13#endif
14
15#define NSUBEXP 10
16typedef struct regexp {
17 char *startp[NSUBEXP];
18 char *endp[NSUBEXP];
19 char regstart; /* Internal use only. */
20 char reganch; /* Internal use only. */
21 char *regmust; /* Internal use only. */
22 int regmlen; /* Internal use only. */
23 char program[1]; /* Unwarranted chumminess with compiler. */
24} regexp;
25
26extern regexp *regcomp();
27extern int regexec();
28extern void regsub();
29extern void regerror();
30
31#if defined (__cplusplus)
32}
33#endif
34
35#endif /* not _REGEXP_H */
Note: See TracBrowser for help on using the repository browser.