summaryrefslogtreecommitdiff
path: root/get.c
diff options
context:
space:
mode:
authornigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:39:33 +0000
committernigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:39:33 +0000
commit722283cf906c849b43a73af9527627e0fd2a3e8d (patch)
treea6d41530464f8772bddde9ff3770c2b29b81f7ce /get.c
parentb82aaed025b2fb55a381b51a3cf13a06c2e8ceff (diff)
downloadpcre-722283cf906c849b43a73af9527627e0fd2a3e8d.tar.gz
Load pcre-3.3 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@49 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'get.c')
-rw-r--r--get.c40
1 files changed, 39 insertions, 1 deletions
diff --git a/get.c b/get.c
index 035668e..42e9bd4 100644
--- a/get.c
+++ b/get.c
@@ -9,7 +9,7 @@ the file Tech.Notes for some information on the internals.
Written by: Philip Hazel <ph10@cam.ac.uk>
- Copyright (c) 1997-1999 University of Cambridge
+ Copyright (c) 1997-2000 University of Cambridge
-----------------------------------------------------------------------------
Permission is granted to anyone to use this software for any purpose on any
@@ -144,6 +144,25 @@ return 0;
/*************************************************
+* Free store obtained by get_substring_list *
+*************************************************/
+
+/* This function exists for the benefit of people calling PCRE from non-C
+programs that can call its functions, but not free() or (pcre_free)() directly.
+
+Argument: the result of a previous pcre_get_substring_list()
+Returns: nothing
+*/
+
+void
+pcre_free_substring_list(const char **pointer)
+{
+(pcre_free)((void *)pointer);
+}
+
+
+
+/*************************************************
* Copy captured string to new store *
*************************************************/
@@ -186,4 +205,23 @@ substring[yield] = 0;
return yield;
}
+
+
+/*************************************************
+* Free store obtained by get_substring *
+*************************************************/
+
+/* This function exists for the benefit of people calling PCRE from non-C
+programs that can call its functions, but not free() or (pcre_free)() directly.
+
+Argument: the result of a previous pcre_get_substring()
+Returns: nothing
+*/
+
+void
+pcre_free_substring(const char *pointer)
+{
+(pcre_free)((void *)pointer);
+}
+
/* End of get.c */