From ce6c4c63a3a5c1516780f2eac978d02820a8dc0b Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 11 Nov 2013 03:02:44 +0100 Subject: 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 --- src/map/script.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/map/script.h') 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; -- cgit v1.2.3-60-g2f50