diff options
author | Haru <haru@dotalux.com> | 2013-11-11 03:02:44 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-11 03:04:35 +0100 |
commit | ce6c4c63a3a5c1516780f2eac978d02820a8dc0b (patch) | |
tree | 8e3c627690dd94ae46653b68fb41ead66ca5a690 /src/map/script.h | |
parent | 8f2838878c954adc839e00d92e4663c764fb3c01 (diff) | |
download | hercules-ce6c4c63a3a5c1516780f2eac978d02820a8dc0b.tar.gz hercules-ce6c4c63a3a5c1516780f2eac978d02820a8dc0b.tar.bz2 hercules-ce6c4c63a3a5c1516780f2eac978d02820a8dc0b.tar.xz hercules-ce6c4c63a3a5c1516780f2eac978d02820a8dc0b.zip |
Follow-up to dd05ae388d69e7df1dffcd393cea5e4cdc605e75
- Reduced number of false positives when parsing .@scope variables.
- Added correct error source information where it previously said
'source not found'.
- Special thanks to Ind.
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, 12 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h index bcc524401..0bb92c433 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -637,6 +637,18 @@ struct script_interface { int (*cleanfloor_sub) (struct block_list *bl, va_list ap); int (*run_func) (struct script_state *st); const char *(*getfuncname) (struct script_state *st); + // for ENABLE_CASE_CHECK + struct str_data_struct *local_casecheck_str_data; + int local_casecheck_str_data_size; // size of the data + int local_casecheck_str_num; // next id to be assigned + // str_buf holds the strings themselves + char *local_casecheck_str_buf; + int local_casecheck_str_size; // size of the buffer + int local_casecheck_str_pos; // next position to be assigned + int local_casecheck_str_hash[SCRIPT_HASH_SIZE]; + bool (*local_casecheck_add_str) (const char* p, int h); + void (*local_casecheck_clear) (void); + // end ENABLE_CASE_CHECK }; struct script_interface *script; |