~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to o/regexp.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _REGEXP
 
2
#define _REGEXP 1
 
3
 
 
4
#define NSUBEXP  10
 
5
typedef struct regexp {
 
6
        char *startp[NSUBEXP];
 
7
        char *endp[NSUBEXP];
 
8
        char regstart;          /* Internal use only. */
 
9
        char reganch;           /* Internal use only. */
 
10
        char *regmust;          /* Internal use only. */
 
11
        int regmlen;            /* Internal use only. */
 
12
        unsigned char regmaybe_boyer;
 
13
        char program[1];        /* Unwarranted chumminess with compiler. */
 
14
} regexp;
 
15
 
 
16
#if __STDC__ == 1
 
17
#define _ANSI_ARGS_(x) x
 
18
#else
 
19
#define _ANSI_ARGS_(x) ()
 
20
#endif
 
21
 
 
22
/* extern regexp *regcomp _ANSI_ARGS_((char *exp)); */
 
23
/* extern int regexec _ANSI_ARGS_((regexp *prog, char *string, char *start,int length )); */
 
24
extern void regsub _ANSI_ARGS_((regexp *prog, char *source, char *dest));
 
25
#ifndef regerror
 
26
extern void regerror _ANSI_ARGS_((char *msg));
 
27
#endif
 
28
 
 
29
#endif /* REGEXP */