| 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 |
| 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 |
|
|
| 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 */ |