File: Cregexp.h

package info (click to toggle)
dpm-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,788 kB
  • ctags: 10,782
  • sloc: ansic: 146,136; sh: 13,362; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 955; fortran: 113
file content (40 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * $Id: Cregexp.h,v 1.1.1.1 2001/11/30 10:55:27 baud Exp $
 */

#ifndef __Cregexp_h
#define __Cregexp_h

/* ============= */
/* Local headers */
/* ============= */
#include <osdep.h>

/*
 * Definitions etc. for regexp(3) routines.
 *
 * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
 * not the System V one.
 */
#ifdef CREGEXP_NSUBEXP
#undef CREGEXP_NSUBEXP
#endif
#define CREGEXP_NSUBEXP  10

struct Cregexp {
  char *startp[CREGEXP_NSUBEXP];
  char *endp[CREGEXP_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. */
};
typedef struct Cregexp Cregexp_t;

EXTERN_C Cregexp_t DLL_DECL *Cregexp_comp _PROTO((char *));
EXTERN_C int          DLL_DECL  Cregexp_exec _PROTO((Cregexp_t *, char *));
EXTERN_C int          DLL_DECL  Cregexp_sub _PROTO((Cregexp_t *, char *, char *, size_t));
EXTERN_C int          DLL_DECL  Cregexp_dump _PROTO((Cregexp_t *));

#endif /* __Cregexp_h */