From 724babffe10a6908d1510c941e5abfbe840fd271 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 17 Oct 2007 20:15:39 +0000 Subject: * Reworked the parsing at npc.c. - Fixes npc.c discarding the '}' at the end of file, when there is no newline. (uncovered as a side-effect of r11487) * Empty script functions always have code now (won't report as missing when you try to call them). * Changed userfunc_db to not limit the name to 50 characters. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11502 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index 9783eeb3b..1e92f73d1 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -63,9 +63,14 @@ struct script_state { enum script_parse_options { SCRIPT_USE_LABEL_DB = 0x1,// records labels in scriptlabel_db - SCRIPT_IGNORE_EXTERNAL_BRACKETS = 0x2// ignores the check for {} brackets around the script + SCRIPT_IGNORE_EXTERNAL_BRACKETS = 0x2,// ignores the check for {} brackets around the script + SCRIPT_RETURN_EMPTY_SCRIPT = 0x4// returns the script object instead of NULL for empty scripts }; +const char* skip_space(const char* p); +const char* script_print_line(const char* p, const char* mark, int line); +void script_error(const char *src,const char *file,int start_line, const char *error_msg, const char *error_pos); + struct script_code* parse_script(const char* src,const char* file,int line,int options); void run_script_sub(struct script_code *rootscript,int pos,int rid,int oid, char* file, int lineno); void run_script(struct script_code*,int,int,int); -- cgit v1.2.3-60-g2f50