/[pcre]/code/trunk/pcre.h.in
ViewVC logotype

Diff of /code/trunk/pcre.h.in

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

revision 117 by ph10, Fri Mar 9 15:59:06 2007 UTC revision 149 by ph10, Mon Apr 16 15:28:08 2007 UTC
# Line 46  POSSIBILITY OF SUCH DAMAGE. Line 46  POSSIBILITY OF SUCH DAMAGE.
46  #define PCRE_PRERELEASE     @PCRE_PRERELEASE@  #define PCRE_PRERELEASE     @PCRE_PRERELEASE@
47  #define PCRE_DATE           @PCRE_DATE@  #define PCRE_DATE           @PCRE_DATE@
48    
49  /* Win32 uses DLL by default; it needs special stuff for exported functions  /* When an application links to a PCRE DLL in Windows, the symbols that are
50  when building PCRE. */  imported have to be identified as such. When building PCRE, the appropriate
51    export setting is defined in pcre_internal.h, which includes this file. So we
52    don't change an existing definition of PCRE_EXP_DECL. */
53    
54  #ifdef _WIN32  #ifndef PCRE_EXP_DECL
55  #  ifdef PCRE_DEFINITION  #  ifdef _WIN32
 #    ifdef DLL_EXPORT  
 #      define PCRE_DATA_SCOPE __declspec(dllexport)  
 #    endif  
 #  else  
56  #    ifndef PCRE_STATIC  #    ifndef PCRE_STATIC
57  #      define PCRE_DATA_SCOPE extern __declspec(dllimport)  #      define PCRE_EXP_DECL extern __declspec(dllimport)
58  #    endif  #    endif
59  #  endif  #  endif
60  #endif  #endif
61    
62  /* Otherwise, we use the standard "extern". */  /* By default, we use the standard "extern" declarations. */
63    
64  #ifndef PCRE_DATA_SCOPE  #ifndef PCRE_EXP_DECL
65  #  ifdef __cplusplus  #  ifdef __cplusplus
66  #    define PCRE_DATA_SCOPE     extern "C"  #    define PCRE_EXP_DECL       extern "C"
67  #  else  #  else
68  #    define PCRE_DATA_SCOPE     extern  #    define PCRE_EXP_DECL       extern
69  #  endif  #  endif
70  #endif  #endif
71    
# Line 108  extern "C" { Line 106  extern "C" {
106  #define PCRE_NEWLINE_LF         0x00200000  #define PCRE_NEWLINE_LF         0x00200000
107  #define PCRE_NEWLINE_CRLF       0x00300000  #define PCRE_NEWLINE_CRLF       0x00300000
108  #define PCRE_NEWLINE_ANY        0x00400000  #define PCRE_NEWLINE_ANY        0x00400000
109    #define PCRE_NEWLINE_ANYCRLF    0x00500000
110    
111  /* Exec-time and get/set-time error codes */  /* Exec-time and get/set-time error codes */
112    
# Line 229  that is triggered by the (?) regex item. Line 228  that is triggered by the (?) regex item.
228  have to take another form. */  have to take another form. */
229    
230  #ifndef VPCOMPAT  #ifndef VPCOMPAT
231  PCRE_DATA_SCOPE void *(*pcre_malloc)(size_t);  PCRE_EXP_DECL void *(*pcre_malloc)(size_t);
232  PCRE_DATA_SCOPE void  (*pcre_free)(void *);  PCRE_EXP_DECL void  (*pcre_free)(void *);
233  PCRE_DATA_SCOPE void *(*pcre_stack_malloc)(size_t);  PCRE_EXP_DECL void *(*pcre_stack_malloc)(size_t);
234  PCRE_DATA_SCOPE void  (*pcre_stack_free)(void *);  PCRE_EXP_DECL void  (*pcre_stack_free)(void *);
235  PCRE_DATA_SCOPE int   (*pcre_callout)(pcre_callout_block *);  PCRE_EXP_DECL int   (*pcre_callout)(pcre_callout_block *);
236  #else   /* VPCOMPAT */  #else   /* VPCOMPAT */
237  PCRE_DATA_SCOPE void *pcre_malloc(size_t);  PCRE_EXP_DECL void *pcre_malloc(size_t);
238  PCRE_DATA_SCOPE void  pcre_free(void *);  PCRE_EXP_DECL void  pcre_free(void *);
239  PCRE_DATA_SCOPE void *pcre_stack_malloc(size_t);  PCRE_EXP_DECL void *pcre_stack_malloc(size_t);
240  PCRE_DATA_SCOPE void  pcre_stack_free(void *);  PCRE_EXP_DECL void  pcre_stack_free(void *);
241  PCRE_DATA_SCOPE int   pcre_callout(pcre_callout_block *);  PCRE_EXP_DECL int   pcre_callout(pcre_callout_block *);
242  #endif  /* VPCOMPAT */  #endif  /* VPCOMPAT */
243    
244  /* Exported PCRE functions */  /* Exported PCRE functions */
245    
246  PCRE_DATA_SCOPE pcre *pcre_compile(const char *, int, const char **, int *,  PCRE_EXP_DECL pcre *pcre_compile(const char *, int, const char **, int *,
247                    const unsigned char *);                    const unsigned char *);
248  PCRE_DATA_SCOPE pcre *pcre_compile2(const char *, int, int *, const char **,  PCRE_EXP_DECL pcre *pcre_compile2(const char *, int, int *, const char **,
249                    int *, const unsigned char *);                    int *, const unsigned char *);
250  PCRE_DATA_SCOPE int  pcre_config(int, void *);  PCRE_EXP_DECL int  pcre_config(int, void *);
251  PCRE_DATA_SCOPE int  pcre_copy_named_substring(const pcre *, const char *,  PCRE_EXP_DECL int  pcre_copy_named_substring(const pcre *, const char *,
252                    int *, int, const char *, char *, int);                    int *, int, const char *, char *, int);
253  PCRE_DATA_SCOPE int  pcre_copy_substring(const char *, int *, int, int, char *,  PCRE_EXP_DECL int  pcre_copy_substring(const char *, int *, int, int, char *,
254                    int);                    int);
255  PCRE_DATA_SCOPE int  pcre_dfa_exec(const pcre *, const pcre_extra *,  PCRE_EXP_DECL int  pcre_dfa_exec(const pcre *, const pcre_extra *,
256                    const char *, int, int, int, int *, int , int *, int);                    const char *, int, int, int, int *, int , int *, int);
257  PCRE_DATA_SCOPE int  pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR,  PCRE_EXP_DECL int  pcre_exec(const pcre *, const pcre_extra *, PCRE_SPTR,
258                     int, int, int, int *, int);                     int, int, int, int *, int);
259  PCRE_DATA_SCOPE void pcre_free_substring(const char *);  PCRE_EXP_DECL void pcre_free_substring(const char *);
260  PCRE_DATA_SCOPE void pcre_free_substring_list(const char **);  PCRE_EXP_DECL void pcre_free_substring_list(const char **);
261  PCRE_DATA_SCOPE int  pcre_fullinfo(const pcre *, const pcre_extra *, int,  PCRE_EXP_DECL int  pcre_fullinfo(const pcre *, const pcre_extra *, int,
262                    void *);                    void *);
263  PCRE_DATA_SCOPE int  pcre_get_named_substring(const pcre *, const char *,  PCRE_EXP_DECL int  pcre_get_named_substring(const pcre *, const char *,
264                    int *, int, const char *, const char **);                    int *, int, const char *, const char **);
265  PCRE_DATA_SCOPE int  pcre_get_stringnumber(const pcre *, const char *);  PCRE_EXP_DECL int  pcre_get_stringnumber(const pcre *, const char *);
266  PCRE_DATA_SCOPE int  pcre_get_stringtable_entries(const pcre *, const char *,  PCRE_EXP_DECL int  pcre_get_stringtable_entries(const pcre *, const char *,
267                    char **, char **);                    char **, char **);
268  PCRE_DATA_SCOPE int  pcre_get_substring(const char *, int *, int, int,  PCRE_EXP_DECL int  pcre_get_substring(const char *, int *, int, int,
269                    const char **);                    const char **);
270  PCRE_DATA_SCOPE int  pcre_get_substring_list(const char *, int *, int,  PCRE_EXP_DECL int  pcre_get_substring_list(const char *, int *, int,
271                    const char ***);                    const char ***);
272  PCRE_DATA_SCOPE int  pcre_info(const pcre *, int *, int *);  PCRE_EXP_DECL int  pcre_info(const pcre *, int *, int *);
273  PCRE_DATA_SCOPE const unsigned char *pcre_maketables(void);  PCRE_EXP_DECL const unsigned char *pcre_maketables(void);
274  PCRE_DATA_SCOPE int  pcre_refcount(pcre *, int);  PCRE_EXP_DECL int  pcre_refcount(pcre *, int);
275  PCRE_DATA_SCOPE pcre_extra *pcre_study(const pcre *, int, const char **);  PCRE_EXP_DECL pcre_extra *pcre_study(const pcre *, int, const char **);
276  PCRE_DATA_SCOPE const char *pcre_version(void);  PCRE_EXP_DECL const char *pcre_version(void);
277    
278  #ifdef __cplusplus  #ifdef __cplusplus
279  }  /* extern "C" */  }  /* extern "C" */

Legend:
Removed from v.117  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.5