summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/pcre_get.c
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2008-09-09 07:55:10 +0000
committerNuno Lopes <nlopess@php.net>2008-09-09 07:55:10 +0000
commitc778b3eb19e6c79a20968808f13bce03c2dfdf23 (patch)
tree0357e922d288ee5d1afee302d62f0ade231f864d /ext/pcre/pcrelib/pcre_get.c
parent6a2729ed4d09ba4c387db2aa67733c8ea448e7e6 (diff)
downloadphp-git-c778b3eb19e6c79a20968808f13bce03c2dfdf23.tar.gz
upgrade to PCRE 7.8. this includes a security improvement. I'll upgrade HEAD later (not urgent..)
Diffstat (limited to 'ext/pcre/pcrelib/pcre_get.c')
-rw-r--r--ext/pcre/pcrelib/pcre_get.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/pcre/pcrelib/pcre_get.c b/ext/pcre/pcrelib/pcre_get.c
index c185c331ab..92b3808820 100644
--- a/ext/pcre/pcrelib/pcre_get.c
+++ b/ext/pcre/pcrelib/pcre_get.c
@@ -63,7 +63,7 @@ Returns: the number of the named parentheses, or a negative number
(PCRE_ERROR_NOSUBSTRING) if not found
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_get_stringnumber(const pcre *code, const char *stringname)
{
int rc;
@@ -112,7 +112,7 @@ Returns: the length of each entry, or a negative number
(PCRE_ERROR_NOSUBSTRING) if not found
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_get_stringtable_entries(const pcre *code, const char *stringname,
char **firstptr, char **lastptr)
{
@@ -229,7 +229,7 @@ Returns: if successful:
PCRE_ERROR_NOSUBSTRING (-7) no such captured substring
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_copy_substring(const char *subject, int *ovector, int stringcount,
int stringnumber, char *buffer, int size)
{
@@ -274,7 +274,7 @@ Returns: if successful:
PCRE_ERROR_NOSUBSTRING (-7) no such captured substring
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_copy_named_substring(const pcre *code, const char *subject, int *ovector,
int stringcount, const char *stringname, char *buffer, int size)
{
@@ -306,7 +306,7 @@ Returns: if successful: 0
PCRE_ERROR_NOMEMORY (-6) failed to get store
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_get_substring_list(const char *subject, int *ovector, int stringcount,
const char ***listptr)
{
@@ -351,7 +351,7 @@ Argument: the result of a previous pcre_get_substring_list()
Returns: nothing
*/
-void
+PCRE_EXP_DEFN void PCRE_CALL_CONVENTION
pcre_free_substring_list(const char **pointer)
{
(pcre_free)((void *)pointer);
@@ -384,7 +384,7 @@ Returns: if successful:
PCRE_ERROR_NOSUBSTRING (-7) substring not present
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_get_substring(const char *subject, int *ovector, int stringcount,
int stringnumber, const char **stringptr)
{
@@ -431,7 +431,7 @@ Returns: if successful:
PCRE_ERROR_NOSUBSTRING (-7) no such captured substring
*/
-int
+PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
pcre_get_named_substring(const pcre *code, const char *subject, int *ovector,
int stringcount, const char *stringname, const char **stringptr)
{
@@ -454,7 +454,7 @@ Argument: the result of a previous pcre_get_substring()
Returns: nothing
*/
-void
+PCRE_EXP_DEFN void PCRE_CALL_CONVENTION
pcre_free_substring(const char *pointer)
{
(pcre_free)((void *)pointer);