version 1.67 | | version 1.68 |
---|
| | |
extern object *load_object_str(char *obstr); | | extern object *load_object_str(char *obstr); |
extern object *find_obj_by_type_subtype(object *who, int type, int subtype); | | extern object *find_obj_by_type_subtype(object *who, int type, int subtype); |
/* porting.c */ | | /* porting.c */ |
extern char *tempnam_local(char *dir, char *pfx); | | extern char *tempnam_local(const char *dir, const char *pfx); |
extern void remove_directory(const char *path); | | extern void remove_directory(const char *path); |
extern char *strdup_local(char *str); | | extern char *strdup_local(const char *str); |
extern long strtol_local(register char *str, char **ptr, register int base); | | extern long strtol_local(register char *str, char **ptr, register int base); |
extern char *strcasestr_local(const char *s, const char *find); | | extern char *strcasestr_local(const char *s, const char *find); |
extern char *strerror_local(int errnum); | | extern char *strerror_local(int errnum); |
| | |
extern int quest_is_same_quest( const char* slaying1, const char* slaying2 ); | | extern int quest_is_same_quest( const char* slaying1, const char* slaying2 ); |
extern int quest_marker_compatible( object* marker, object* player ); | | extern int quest_marker_compatible( object* marker, object* player ); |
extern void quest_clear_markers( object* marker, object* player ); | | extern void quest_clear_markers( object* marker, object* player ); |
extern char* quest_message_check( char* message, object* pl ); | | extern const char* quest_message_check( const char* message, object* pl ); |
extern const char* quest_get_name( object* marker ); | | extern const char* quest_get_name( object* marker ); |
extern int quest_is_quest_marker( object* marker ); | | extern int quest_is_quest_marker( object* marker ); |
extern int quest_is_start( const char* slaying ); | | extern int quest_is_start( const char* slaying ); |
extern int quest_is_end( const char* slaying ); | | extern int quest_is_end( const char* slaying ); |
/* re-cmp.c */ | | /* re-cmp.c */ |
extern char *re_cmp(char *str, char *regexp); | | extern const char *re_cmp(const char *str, const char *regexp); |
/* readable.c */ | | /* readable.c */ |
extern int nstrtok(char *buf1, char *buf2); | | extern int nstrtok(char *buf1, char *buf2); |
extern char *strtoktolin(char *buf1, char *buf2); | | extern char *strtoktolin(char *buf1, char *buf2); |
extern int book_overflow(char *buf1, char *buf2, int booksize); | | extern int book_overflow(const char *buf1, const char *buf2, int booksize); |
extern void init_readable(void); | | extern void init_readable(void); |
extern void change_book(object *book, int msgtype); | | extern void change_book(object *book, int msgtype); |
extern object *get_random_mon(int level); | | extern object *get_random_mon(int level); |
| | |
extern void check_formulae(void); | | extern void check_formulae(void); |
extern void dump_alchemy(void); | | extern void dump_alchemy(void); |
extern archetype *find_treasure_by_name(treasure *t, const char *name, int depth); | | extern archetype *find_treasure_by_name(treasure *t, const char *name, int depth); |
extern long find_ingred_cost(char *name); | | extern long find_ingred_cost(const char *name); |
extern void dump_alchemy_costs(void); | | extern void dump_alchemy_costs(void); |
extern char *ingred_name(char *name); | | extern const char *ingred_name(const char *name); |
extern int strtoint(char *buf); | | extern int strtoint(const char *buf); |
extern artifact *locate_recipe_artifact(recipe *rp); | | extern artifact *locate_recipe_artifact(recipe *rp); |
extern int numb_ingred(char *buf); | | extern int numb_ingred(const char *buf); |
extern recipelist *get_random_recipelist(void); | | extern recipelist *get_random_recipelist(void); |
extern recipe *get_random_recipe(recipelist *rpl); | | extern recipe *get_random_recipe(recipelist *rpl); |
extern void free_all_recipes(void); | | extern void free_all_recipes(void); |
| | |
extern void free_string(char *str); | | extern void free_string(char *str); |
extern void ss_dump_statistics(void); | | extern void ss_dump_statistics(void); |
extern char *ss_dump_table(int what); | | extern char *ss_dump_table(int what); |
extern int buf_overflow(char *buf1, char *buf2, int bufsize); | | extern int buf_overflow(const char *buf1, const char *buf2, int bufsize); |
/* time.c */ | | /* time.c */ |
extern void reset_sleep(void); | | extern void reset_sleep(void); |
extern void log_time(long process_utime); | | extern void log_time(long process_utime); |
| | |
extern void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags); | | extern void fix_generated_item(object *op, object *creator, int difficulty, int max_magic, int flags); |
extern artifactlist *find_artifactlist(int type); | | extern artifactlist *find_artifactlist(int type); |
extern void dump_artifacts(void); | | extern void dump_artifacts(void); |
extern void dump_monster_treasure_rec(char *name, treasure *t, int depth); | | extern void dump_monster_treasure_rec(const char *name, treasure *t, int depth); |
extern void dump_monster_treasure(char *name); | | extern void dump_monster_treasure(const char *name); |
extern void init_artifacts(void); | | extern void init_artifacts(void); |
extern void add_abilities(object *op, object *change); | | extern void add_abilities(object *op, object *change); |
extern void give_artifact_abilities(object *op, object *artifct); | | extern void give_artifact_abilities(object *op, object *artifct); |