summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-11-11 03:02:44 +0100
committerHaru <haru@dotalux.com>2013-11-11 03:04:35 +0100
commitce6c4c63a3a5c1516780f2eac978d02820a8dc0b (patch)
tree8e3c627690dd94ae46653b68fb41ead66ca5a690 /src/map/script.h
parent8f2838878c954adc839e00d92e4663c764fb3c01 (diff)
downloadhercules-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.h12
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;