/[pcre]/code/tags/pcre-3.5/get.c
ViewVC logotype

Diff of /code/tags/pcre-3.5/get.c

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

revision 29 by nigel, Sat Feb 24 21:38:53 2007 UTC revision 49 by nigel, Sat Feb 24 21:39:33 2007 UTC
# Line 9  the file Tech.Notes for some information Line 9  the file Tech.Notes for some information
9    
10  Written by: Philip Hazel <ph10@cam.ac.uk>  Written by: Philip Hazel <ph10@cam.ac.uk>
11    
12             Copyright (c) 1997-1999 University of Cambridge             Copyright (c) 1997-2000 University of Cambridge
13    
14  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
15  Permission is granted to anyone to use this software for any purpose on any  Permission is granted to anyone to use this software for any purpose on any
# Line 144  return 0; Line 144  return 0;
144    
145    
146  /*************************************************  /*************************************************
147    *   Free store obtained by get_substring_list    *
148    *************************************************/
149    
150    /* This function exists for the benefit of people calling PCRE from non-C
151    programs that can call its functions, but not free() or (pcre_free)() directly.
152    
153    Argument:   the result of a previous pcre_get_substring_list()
154    Returns:    nothing
155    */
156    
157    void
158    pcre_free_substring_list(const char **pointer)
159    {
160    (pcre_free)((void *)pointer);
161    }
162    
163    
164    
165    /*************************************************
166  *      Copy captured string to new store         *  *      Copy captured string to new store         *
167  *************************************************/  *************************************************/
168    
# Line 186  substring[yield] = 0; Line 205  substring[yield] = 0;
205  return yield;  return yield;
206  }  }
207    
208    
209    
210    /*************************************************
211    *       Free store obtained by get_substring     *
212    *************************************************/
213    
214    /* This function exists for the benefit of people calling PCRE from non-C
215    programs that can call its functions, but not free() or (pcre_free)() directly.
216    
217    Argument:   the result of a previous pcre_get_substring()
218    Returns:    nothing
219    */
220    
221    void
222    pcre_free_substring(const char *pointer)
223    {
224    (pcre_free)((void *)pointer);
225    }
226    
227  /* End of get.c */  /* End of get.c */

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12