summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-28 21:50:55 +0000
committerepoque11 <epoque11@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-28 21:50:55 +0000
commit4f2de079cdabfa86b609a5ad15df3a4c1c58437b (patch)
tree0b5137762afd873246a58651ac26060a9bbac546 /src/map/script.h
parent392f7f863f7de18b26e92e7d9a9702452ef8c1e0 (diff)
downloadhercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.gz
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.bz2
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.tar.xz
hercules-4f2de079cdabfa86b609a5ad15df3a4c1c58437b.zip
- 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
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h10
1 files changed, 5 insertions, 5 deletions
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);