summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-02-08 04:50:58 +0100
committerHaru <haru@dotalux.com>2014-02-08 04:51:12 +0100
commitf2383946d9e52f61844a9f6e3ec679c99f697e04 (patch)
tree9544a3c286ad4f66fbd3a0b17af1dfc9db1a14bd /src
parente4a1ca28de80e221198854b745be71d256e1f7b1 (diff)
downloadhercules-f2383946d9e52f61844a9f6e3ec679c99f697e04.tar.gz
hercules-f2383946d9e52f61844a9f6e3ec679c99f697e04.tar.bz2
hercules-f2383946d9e52f61844a9f6e3ec679c99f697e04.tar.xz
hercules-f2383946d9e52f61844a9f6e3ec679c99f697e04.zip
Added get_substring to the libpcre interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.h1
-rw-r--r--src/map/npc_chat.c1
2 files changed, 2 insertions, 0 deletions
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