/[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 77 by nigel, Sat Feb 24 21:40:45 2007 UTC revision 85 by nigel, Sat Feb 24 21:41:13 2007 UTC
# Line 131  static const char *const pstring[] = { Line 131  static const char *const pstring[] = {
131  *          Translate error code to string        *  *          Translate error code to string        *
132  *************************************************/  *************************************************/
133    
134  EXPORT size_t  PCRE_EXPORT size_t
135  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)
136  {  {
137  const char *message, *addmessage;  const char *message, *addmessage;
# Line 166  return length + addlength; Line 166  return length + addlength;
166  *           Free store held by a regex           *  *           Free store held by a regex           *
167  *************************************************/  *************************************************/
168    
169  EXPORT void  PCRE_EXPORT void
170  regfree(regex_t *preg)  regfree(regex_t *preg)
171  {  {
172  (pcre_free)(preg->re_pcre);  (pcre_free)(preg->re_pcre);
# Line 189  Returns: 0 on success Line 189  Returns: 0 on success
189                various non-zero codes on failure                various non-zero codes on failure
190  */  */
191    
192  EXPORT int  PCRE_EXPORT int
193  regcomp(regex_t *preg, const char *pattern, int cflags)  regcomp(regex_t *preg, const char *pattern, int cflags)
194  {  {
195  const char *errorptr;  const char *errorptr;
# Line 225  ints. However, if the number of possible Line 225  ints. However, if the number of possible
225  block of store on the stack, to reduce the use of malloc/free. The threshold is  block of store on the stack, to reduce the use of malloc/free. The threshold is
226  in a macro that can be changed at configure time. */  in a macro that can be changed at configure time. */
227    
228  EXPORT int  PCRE_EXPORT int
229  regexec(const regex_t *preg, const char *string, size_t nmatch,  regexec(const regex_t *preg, const char *string, size_t nmatch,
230    regmatch_t pmatch[], int eflags)    regmatch_t pmatch[], int eflags)
231  {  {

Legend:
Removed from v.77  
changed lines
  Added in v.85

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12