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

Diff of /code/trunk/pcreposix.c

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

revision 144 by ph10, Fri Mar 9 15:59:06 2007 UTC revision 145 by ph10, Wed Apr 4 14:06:52 2007 UTC
# Line 141  static const char *const pstring[] = { Line 141  static const char *const pstring[] = {
141  *          Translate error code to string        *  *          Translate error code to string        *
142  *************************************************/  *************************************************/
143    
144  PCRE_DATA_SCOPE size_t  PCREPOSIX_EXP_DEFN size_t
145  regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)  regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
146  {  {
147  const char *message, *addmessage;  const char *message, *addmessage;
# Line 176  return length + addlength; Line 176  return length + addlength;
176  *           Free store held by a regex           *  *           Free store held by a regex           *
177  *************************************************/  *************************************************/
178    
179  PCRE_DATA_SCOPE void  PCREPOSIX_EXP_DEFN void
180  regfree(regex_t *preg)  regfree(regex_t *preg)
181  {  {
182  (pcre_free)(preg->re_pcre);  (pcre_free)(preg->re_pcre);
# Line 199  Returns: 0 on success Line 199  Returns: 0 on success
199                various non-zero codes on failure                various non-zero codes on failure
200  */  */
201    
202  PCRE_DATA_SCOPE int  PCREPOSIX_EXP_DEFN int
203  regcomp(regex_t *preg, const char *pattern, int cflags)  regcomp(regex_t *preg, const char *pattern, int cflags)
204  {  {
205  const char *errorptr;  const char *errorptr;
# Line 241  If REG_NOSUB was specified at compile ti Line 241  If REG_NOSUB was specified at compile ti
241  be set. When this is the case, the nmatch and pmatch arguments are ignored, and  be set. When this is the case, the nmatch and pmatch arguments are ignored, and
242  the only result is yes/no/error. */  the only result is yes/no/error. */
243    
244  PCRE_DATA_SCOPE int  PCREPOSIX_EXP_DEFN int
245  regexec(const regex_t *preg, const char *string, size_t nmatch,  regexec(const regex_t *preg, const char *string, size_t nmatch,
246    regmatch_t pmatch[], int eflags)    regmatch_t pmatch[], int eflags)
247  {  {

Legend:
Removed from v.144  
changed lines
  Added in v.145

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12