summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-02-08 02:19:41 +0100
committerHaru <haru@dotalux.com>2014-02-08 02:33:49 +0100
commit1cf7c1ec251d6899707b0eced3bc75da2e212557 (patch)
tree54008176b1b0fca8affc1e01b1fac7b98e67df95 /src/map/script.h
parente7853fa6ed991fdd7bcb4b2c842761742ae3c912 (diff)
downloadhercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.gz
hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.bz2
hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.tar.xz
hercules-1cf7c1ec251d6899707b0eced3bc75da2e212557.zip
Improvements on the script commands sscanf, axtoi. Added strtol.
- Added script command strtol (conforming to the ISO C90 function) - Modified script command axtoi to internally use strtol instead of an unnecessary own implementation. - Fixed sscanf behavior to conform to the C specifications in case the input string is empty. It now correctly returns -1, or 0 if the format string is also empty. Fixes bugreport:8009, thanks to AnnieRuru - http://hercules.ws/board/tracker/issue-8009-sscanf-should-return-1-if-the-string-field-is-an-empty-string/ Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index b7e9e5741..4906d4fa8 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -665,7 +665,6 @@ struct script_interface {
int (*playbgm_foreachpc_sub) (struct map_session_data *sd, va_list args);
int (*soundeffect_sub) (struct block_list *bl, va_list ap);
int (*buildin_query_sql_sub) (struct script_state *st, Sql *handle);
- int (*axtoi) (const char *hexStg);
int (*buildin_instance_warpall_sub) (struct block_list *bl, va_list ap);
int (*buildin_mobuseskill_sub) (struct block_list *bl, va_list ap);
int (*cleanfloor_sub) (struct block_list *bl, va_list ap);