~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/script-fu/re/regex.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _REGEX_H_
 
2
#define   _REGEX_H_ /* never again */
 
3
 
 
4
/* Added by dsouflis - include files should be self contained */
 
5
#include <stdio.h>
 
6
#include <string.h>
 
7
#include <ctype.h>
 
8
#include <limits.h>
 
9
#include <stdlib.h>
 
10
#include <sys/types.h>
 
11
 
 
12
/* ========= begin header generated by ././mkh ========= */
 
13
#ifdef __cplusplus
 
14
extern "C" {
 
15
#endif
 
16
 
 
17
/* === regex2.h === */
 
18
#ifdef WIN32
 
19
#define API_EXPORT(type)    __declspec(dllexport) type __stdcall
 
20
#else
 
21
#define API_EXPORT(type)    type
 
22
#endif
 
23
 
 
24
typedef off_t regoff_t;
 
25
typedef struct {
 
26
     int re_magic;
 
27
     size_t re_nsub;          /* number of parenthesized subexpressions */
 
28
     const char *re_endp;     /* end pointer for REG_PEND */
 
29
     struct re_guts *re_g;    /* none of your business :-) */
 
30
} regex_t;
 
31
typedef struct {
 
32
     regoff_t rm_so;          /* start of match */
 
33
     regoff_t rm_eo;          /* end of match */
 
34
} regmatch_t;
 
35
 
 
36
 
 
37
/* === regcomp.c === */
 
38
API_EXPORT(int) regcomp(regex_t *, const char *, int);
 
39
#define   REG_BASIC 0000
 
40
#define   REG_EXTENDED   0001
 
41
#define   REG_ICASE 0002
 
42
#define   REG_NOSUB 0004
 
43
#define   REG_NEWLINE    0010
 
44
#define   REG_NOSPEC     0020
 
45
#define   REG_PEND  0040
 
46
#define   REG_DUMP  0200
 
47
 
 
48
 
 
49
/* === regerror.c === */
 
50
#define   REG_NOMATCH     1
 
51
#define   REG_BADPAT      2
 
52
#define   REG_ECOLLATE    3
 
53
#define   REG_ECTYPE      4
 
54
#define   REG_EESCAPE     5
 
55
#define   REG_ESUBREG     6
 
56
#define   REG_EBRACK      7
 
57
#define   REG_EPAREN      8
 
58
#define   REG_EBRACE      9
 
59
#define   REG_BADBR 10
 
60
#define   REG_ERANGE     11
 
61
#define   REG_ESPACE     12
 
62
#define   REG_BADRPT     13
 
63
#define   REG_EMPTY 14
 
64
#define   REG_ASSERT     15
 
65
#define   REG_INVARG     16
 
66
#define   REG_ATOI  255  /* convert name to number (!) */
 
67
#define   REG_ITOA  0400 /* convert number to name (!) */
 
68
API_EXPORT(size_t) regerror(int, const regex_t *, char *, size_t);
 
69
 
 
70
 
 
71
/* === regexec.c === */
 
72
API_EXPORT(int) regexec(const regex_t *, const char *, size_t, regmatch_t [], int);
 
73
#define   REG_NOTBOL     00001
 
74
#define   REG_NOTEOL     00002
 
75
#define   REG_STARTEND   00004
 
76
#define   REG_TRACE 00400     /* tracing of execution */
 
77
#define   REG_LARGE 01000     /* force large representation */
 
78
#define   REG_BACKR 02000     /* force use of backref code */
 
79
 
 
80
 
 
81
/* === regfree.c === */
 
82
API_EXPORT(void) regfree(regex_t *);
 
83
 
 
84
#ifdef __cplusplus
 
85
}
 
86
#endif
 
87
/* ========= end header generated by ././mkh ========= */
 
88
#endif