From f2383946d9e52f61844a9f6e3ec679c99f697e04 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 8 Feb 2014 04:50:58 +0100 Subject: Added get_substring to the libpcre interface Signed-off-by: Haru --- src/map/npc.h | 1 + src/map/npc_chat.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/map/npc.h b/src/map/npc.h index 719974ac4..346a9f8c0 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -336,6 +336,7 @@ struct pcre_interface { int (*copy_substring) (const char *subject, int *ovector, int stringcount, int stringnumber, char *buffer, int buffersize); void (*free_substring) (const char *stringptr); int (*copy_named_substring) (const pcre *code, const char *subject, int *ovector, int stringcount, const char *stringname, char *buffer, int buffersize); + int (*get_substring) (const char *subject, int *ovector, int stringcount, int stringnumber, const char **stringptr); }; struct pcre_interface *libpcre; diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c index 896bbae5b..9d5639efc 100644 --- a/src/map/npc_chat.c +++ b/src/map/npc_chat.c @@ -440,6 +440,7 @@ void npc_chat_defaults(void) { libpcre->copy_substring = pcre_copy_substring; libpcre->free_substring = pcre_free_substring; libpcre->copy_named_substring = pcre_copy_named_substring; + libpcre->get_substring = pcre_get_substring; } #endif //PCRE_SUPPORT -- cgit v1.2.3-60-g2f50