diff options
author | Haru <haru@dotalux.com> | 2016-05-17 00:06:14 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-06-25 17:29:44 +0200 |
commit | 95d5ff6fde56fbd407ac5fe07ceae22f67fea1da (patch) | |
tree | a5d126e2682789f6a0f3dfd556c874eec5ab2f32 /src/map/script.h | |
parent | d9fade08f4faf1f70671bdf02f124af7c5b236bc (diff) | |
download | hercules-95d5ff6fde56fbd407ac5fe07ceae22f67fea1da.tar.gz hercules-95d5ff6fde56fbd407ac5fe07ceae22f67fea1da.tar.bz2 hercules-95d5ff6fde56fbd407ac5fe07ceae22f67fea1da.tar.xz hercules-95d5ff6fde56fbd407ac5fe07ceae22f67fea1da.zip |
Split parse_simpleexpr() in specialized sub-functions (HPM compatibility)
- parse_simpleexpr_paren()
- parse_simpleexpr_number()
- parse_simplexpr_string()
- parse_simpleexpr_name()
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/script.h b/src/map/script.h index 35a6a1bbf..a9a719099 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -731,10 +731,14 @@ struct script_interface { int (*add_word) (const char *p); const char* (*parse_callfunc) (const char *p, int require_paren, int is_custom); void (*parse_nextline) (bool first, const char *p); - const char* (*parse_variable) (const char *p); - const char* (*parse_simpleexpr) (const char *p); - const char* (*parse_expr) (const char *p); - const char* (*parse_line) (const char *p); + const char *(*parse_variable) (const char *p); + const char *(*parse_simpleexpr) (const char *p); + const char *(*parse_simpleexpr_paren) (const char *p); + const char *(*parse_simpleexpr_number) (const char *p); + const char *(*parse_simpleexpr_string) (const char *p); + const char *(*parse_simpleexpr_name) (const char *p); + const char *(*parse_expr) (const char *p); + const char *(*parse_line) (const char *p); void (*read_constdb) (void); void (*constdb_comment) (const char *comment); void (*load_parameters) (void); |