From 5f1529083ad1f35a3ac66cc041ee74d6db2f3552 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 9 May 2014 07:37:53 +0200 Subject: Return EXIT_FAILURE if a script parse error occurred. - This affects normal execution as well as ./script-checker runs. Signed-off-by: Haru --- src/map/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index eed0dbf1d..90b18d87f 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -564,7 +564,7 @@ struct script_interface { void (*final) (void); int (*reload) (void); /* parse */ - struct script_code* (*parse) (const char* src,const char* file,int line,int options); + struct script_code* (*parse) (const char* src,const char* file,int line,int options, int *retval); bool (*add_builtin) (const struct script_function *buildin, bool override); void (*parse_builtin) (void); const char* (*parse_subexpr) (const char* p,int limit); -- cgit v1.2.3-60-g2f50