From 634aeeb9d58b01f9de6632a014a063ef0c4cf31e Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Fri, 25 Dec 2009 05:00:31 -0500 Subject: Used the "indent" C formatting program from GNU to do some clean ups The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl --- src/map/script.h | 67 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 31 deletions(-) (limited to 'src/map/script.h') diff --git a/src/map/script.h b/src/map/script.h index c5ff909..b70aba3 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -2,46 +2,51 @@ #ifndef _SCRIPT_H_ #define _SCRIPT_H_ -struct script_data { - int type; - union { - int num; - char *str; - } u; +struct script_data +{ + int type; + union + { + int num; + char *str; + } u; }; -struct script_stack { - int sp,sp_max; - struct script_data *stack_data; +struct script_stack +{ + int sp, sp_max; + struct script_data *stack_data; }; -struct script_state { - struct script_stack *stack; - int start,end; - int pos,state; - int rid,oid; - char *script,*new_script; - int defsp,new_pos,new_defsp; +struct script_state +{ + struct script_stack *stack; + int start, end; + int pos, state; + int rid, oid; + char *script, *new_script; + int defsp, new_pos, new_defsp; }; -unsigned char * parse_script(unsigned char *,int); -typedef struct argrec { - char *name; - union { - int i; - char * s; - } v; +unsigned char *parse_script (unsigned char *, int); +typedef struct argrec +{ + char *name; + union + { + int i; + char *s; + } v; } argrec_t; -int run_script_l(unsigned char *,int,int,int,int,argrec_t *args); -int run_script(unsigned char *,int,int,int); +int run_script_l (unsigned char *, int, int, int, int, argrec_t * args); +int run_script (unsigned char *, int, int, int); -struct dbt* script_get_label_db(); -struct dbt* script_get_userfunc_db(); +struct dbt *script_get_label_db (); +struct dbt *script_get_userfunc_db (); -int script_config_read(char *cfgName); -int do_init_script(); -int do_final_script(); +int script_config_read (char *cfgName); +int do_init_script (); +int do_final_script (); extern char mapreg_txt[]; #endif - -- cgit v1.2.3-60-g2f50