/[pcre]/code/tags/pcre-2.08a/pcre.h
ViewVC logotype

Diff of /code/tags/pcre-2.08a/pcre.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

code/trunk/pcre.h revision 29 by nigel, Sat Feb 24 21:38:53 2007 UTC code/tags/pcre-2.08a/pcre.h revision 42 by nigel, Sat Feb 24 21:39:19 2007 UTC
# Line 7  Line 7 
7  #ifndef _PCRE_H  #ifndef _PCRE_H
8  #define _PCRE_H  #define _PCRE_H
9    
10    #define PCRE_MAJOR 2
11    #define PCRE_MINOR 08
12    #define PCRE_DATE  31-Aug-1999
13    
14    /* Win32 uses DLL by default */
15    
16    #ifdef _WIN32
17    # ifdef STATIC
18    #  define PCRE_DL_IMPORT
19    # else
20    #  define PCRE_DL_IMPORT __declspec(dllimport)
21    # endif
22    #else
23    # define PCRE_DL_IMPORT
24    #endif
25    
26  /* Have to include stdlib.h in order to ensure that size_t is defined;  /* Have to include stdlib.h in order to ensure that size_t is defined;
27  it is needed here for malloc. */  it is needed here for malloc. */
28    
# Line 31  extern "C" { Line 47  extern "C" {
47  #define PCRE_NOTBOL          0x0080  #define PCRE_NOTBOL          0x0080
48  #define PCRE_NOTEOL          0x0100  #define PCRE_NOTEOL          0x0100
49  #define PCRE_UNGREEDY        0x0200  #define PCRE_UNGREEDY        0x0200
50    #define PCRE_NOTEMPTY        0x0400
51    
52  /* Exec-time and get-time error codes */  /* Exec-time and get-time error codes */
53    
# Line 48  typedef void pcre; Line 65  typedef void pcre;
65  typedef void pcre_extra;  typedef void pcre_extra;
66    
67  /* Store get and free functions. These can be set to alternative malloc/free  /* Store get and free functions. These can be set to alternative malloc/free
68  functions if required. */  functions if required. Some magic is required for Win32 DLL; it is null on
69    other OS. */
70    
71    PCRE_DL_IMPORT extern void *(*pcre_malloc)(size_t);
72    PCRE_DL_IMPORT extern void  (*pcre_free)(void *);
73    
74  extern void *(*pcre_malloc)(size_t);  #undef PCRE_DL_IMPORT
 extern void  (*pcre_free)(void *);  
75    
76  /* Functions */  /* Functions */
77    
# Line 59  extern pcre *pcre_compile(const char *, Line 79  extern pcre *pcre_compile(const char *,
79    const unsigned char *);    const unsigned char *);
80  extern int pcre_copy_substring(const char *, int *, int, int, char *, int);  extern int pcre_copy_substring(const char *, int *, int, int, char *, int);
81  extern int pcre_exec(const pcre *, const pcre_extra *, const char *,  extern int pcre_exec(const pcre *, const pcre_extra *, const char *,
82    int, int, int *, int);    int, int, int, int *, int);
83  extern int pcre_get_substring(const char *, int *, int, int, const char **);  extern int pcre_get_substring(const char *, int *, int, int, const char **);
84  extern int pcre_get_substring_list(const char *, int *, int, const char ***);  extern int pcre_get_substring_list(const char *, int *, int, const char ***);
85  extern int pcre_info(const pcre *, int *, int *);  extern int pcre_info(const pcre *, int *, int *);

Legend:
Removed from v.29  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.5