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

Diff of /code/trunk/pcreposix.h

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

revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC revision 305 by ph10, Sun Jan 20 20:07:32 2008 UTC
# Line 9  Line 9 
9  Compatible Regular Expression library. It defines the things POSIX says should  Compatible Regular Expression library. It defines the things POSIX says should
10  be there. I hope.  be there. I hope.
11    
12              Copyright (c) 1997-2006 University of Cambridge              Copyright (c) 1997-2008 University of Cambridge
13    
14  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
15  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 105  typedef struct { Line 105  typedef struct {
105    regoff_t rm_eo;    regoff_t rm_eo;
106  } regmatch_t;  } regmatch_t;
107    
108    /* When an application links to a PCRE DLL in Windows, the symbols that are
109    imported have to be identified as such. When building PCRE, the appropriate
110    export settings are needed, and are set in pcreposix.c before including this
111    file. */
112    
113    #if defined(_WIN32) && !defined(PCRE_STATIC) && !defined(PCREPOSIX_EXP_DECL)
114    #  define PCREPOSIX_EXP_DECL  extern __declspec(dllimport)
115    #  define PCREPOSIX_EXP_DEFN  __declspec(dllimport)
116    #endif
117    
118    /* By default, we use the standard "extern" declarations. */
119    
120    #ifndef PCREPOSIX_EXP_DECL
121    #  ifdef __cplusplus
122    #    define PCREPOSIX_EXP_DECL  extern "C"
123    #    define PCREPOSIX_EXP_DEFN  extern "C"
124    #  else
125    #    define PCREPOSIX_EXP_DECL  extern
126    #    define PCREPOSIX_EXP_DEFN  extern
127    #  endif
128    #endif
129    
130  /* The functions */  /* The functions */
131    
132  PCRE_DATA_SCOPE int regcomp(regex_t *, const char *, int);  PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
133  PCRE_DATA_SCOPE int regexec(const regex_t *, const char *, size_t,  PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,
134                    regmatch_t *, int);                       regmatch_t *, int);
135  PCRE_DATA_SCOPE size_t regerror(int, const regex_t *, char *, size_t);  PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t);
136  PCRE_DATA_SCOPE void regfree(regex_t *);  PCREPOSIX_EXP_DECL void regfree(regex_t *);
137    
138  #ifdef __cplusplus  #ifdef __cplusplus
139  }   /* extern "C" */  }   /* extern "C" */

Legend:
Removed from v.87  
changed lines
  Added in v.305

  ViewVC Help
Powered by ViewVC 1.1.5