#pragma once
-#include "angband.h"
+extern char auto_dump_header[];
+extern char auto_dump_footer[];
-extern errr process_pref_file(player_type *creature_ptr, concptr name);
-extern errr process_autopick_file(player_type *creature_ptr, concptr name);
-extern errr process_histpref_file(player_type *creature_ptr, concptr name);
+extern errr process_pref_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+extern errr process_autopick_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+extern errr process_histpref_file(player_type *creature_ptr, concptr name, void(*process_autopick_file_command)(char*));
+
+void auto_dump_printf(FILE *auto_dump_stream, concptr fmt, ...);
+bool open_auto_dump(FILE **fpp, concptr buf, concptr mark);
+void close_auto_dump(FILE **fpp, concptr auto_dump_mark);