version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_glue_c = | | * static char *rcsid_glue_c = |
* "$Id: glue.c,v 1.10 2003/03/24 06:58:07 mwedel Exp $"; | | * "$Id: glue.c,v 1.11 2003/10/26 06:56:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
type_func_map set_darkness_map_func; | | type_func_map set_darkness_map_func; |
type_func_dragon_gain dragon_gain_func; | | type_func_dragon_gain dragon_gain_func; |
type_func_char weather_effect_func; | | type_func_char weather_effect_func; |
| | type_ob_func_ob_int find_skill_by_number_func; |
| | |
static char *fatalmsgs[80]={ | | static char *fatalmsgs[80]={ |
"Failed to allocate memory", | | "Failed to allocate memory", |
| | |
set_darkness_map_func = dummy_function_map; | | set_darkness_map_func = dummy_function_map; |
dragon_gain_func = dummy_function_dragongain; | | dragon_gain_func = dummy_function_dragongain; |
weather_effect_func = dummy_function_char; | | weather_effect_func = dummy_function_char; |
| | find_skill_by_number_func = dummy_ob_function_ob_int; |
} | | } |
| | |
/* | | /* |
| | |
weather_effect_func = addr; | | weather_effect_func = addr; |
} | | } |
| | |
| | void set_find_skill_by_number_func(type_ob_func_ob_int addr) { |
| | find_skill_by_number_func = addr; |
| | } |
| | |
| | |
/* | | /* |
* fatal() is meant to be called whenever a fatal signal is intercepted. | | * fatal() is meant to be called whenever a fatal signal is intercepted. |
* It will call the emergency_save and the clean_tmp_files functions. | | * It will call the emergency_save and the clean_tmp_files functions. |
| | |
void dummy_function_ob_int(object *ob, int i) { | | void dummy_function_ob_int(object *ob, int i) { |
} | | } |
| | |
| | object * dummy_ob_function_ob_int(object *ob, int i) { |
| | return NULL; |
| | } |
| | |
void dummy_function_txtnr(char *txt, int nr) { | | void dummy_function_txtnr(char *txt, int nr) { |
fprintf(logfile,"%d: %s\n",nr,txt); | | fprintf(logfile,"%d: %s\n",nr,txt); |
} | | } |