From 4f2de079cdabfa86b609a5ad15df3a4c1c58437b Mon Sep 17 00:00:00 2001 From: epoque11 Date: Sat, 28 Apr 2012 21:50:55 +0000 Subject: - Updated the script engine to make use of the DBMap* structure for storing variables (for Ind <3) - Fixed missing new-lines at the end of various files causing warnings git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15997 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index 9f8752aff..4d7754241 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -76,7 +76,7 @@ typedef enum c_op { } c_op; struct script_retinfo { - struct linkdb_node** var_function;// scope variables + struct DBMap* var_function;// scope variables struct script_code* script;// script code int pos;// script location int nargs;// argument count @@ -90,7 +90,7 @@ struct script_data { char *str; struct script_retinfo* ri; } u; - struct linkdb_node** ref; + struct DBMap** ref; }; // Moved defsp from script_state to script_stack since @@ -98,7 +98,7 @@ struct script_data { struct script_code { int script_size; unsigned char* script_buf; - struct linkdb_node* script_vars; + struct DBMap* script_vars; }; struct script_stack { @@ -106,7 +106,7 @@ struct script_stack { int sp_max;// capacity of the stack int defsp; struct script_data *stack_data;// stack - struct linkdb_node** var_function;// scope variables + struct DBMap* var_function;// scope variables }; @@ -164,7 +164,7 @@ void run_script_main(struct script_state *st); void script_stop_sleeptimers(int id); struct linkdb_node* script_erase_sleepdb(struct linkdb_node *n); void script_free_code(struct script_code* code); -void script_free_vars(struct linkdb_node **node); +void script_free_vars(struct DBMap *storage); struct script_state* script_alloc_state(struct script_code* script, int pos, int rid, int oid); void script_free_state(struct script_state* st); -- cgit v1.2.3-60-g2f50