diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-30 03:27:46 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-30 03:27:46 +0000 |
commit | b0bf26b076dcc5a6f1d6ecddde89948366e96a1a (patch) | |
tree | b942f6d0280ccf928411f84f2426c68b08082329 /src/map/script.h | |
parent | 544252787ad1d7b55bb1d8299e8779ad7d57fe75 (diff) | |
download | hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.gz hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.bz2 hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.tar.xz hercules-b0bf26b076dcc5a6f1d6ecddde89948366e96a1a.zip |
* Changes to the script engine:
- script ends when run_func can't find the buildin command. (script engine error)
- run_script_main doesn't change RERUNLINE to RUN automatically, the buildin command that set it is responsible for that now. The buildin command can use this to detect a rerun.
- created functions to alloc/free a script_state.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13426 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.h b/src/map/script.h index 2e10b3303..fc6422bc5 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -89,7 +89,7 @@ struct script_stack { int sp_max;// capacity of the stack int defsp; struct script_data *stack_data;// stack - struct linkdb_node **var_function; // 関数依存変数 + struct linkdb_node **var_function; // ヨ斥耐 }; @@ -141,9 +141,10 @@ 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_stack(struct script_stack*); void script_free_code(struct script_code* code); void script_free_vars(struct linkdb_node **node); +struct script_state* script_alloc_state(struct script_code* script, int pos, int rid, int oid); +void script_free_state(struct script_state* st); struct DBMap* script_get_label_db(void); struct DBMap* script_get_userfunc_db(void); |