struct Win;
-void draw_with_linebreaks (struct Win *, char *, uint16_t);
-void draw_text_from_bottom (struct Win *, char *);
-void draw_log_win (struct Win *);
-void draw_map_win (struct Win *);
-void draw_info_win (struct Win *);
-void draw_keys_win (struct Win *);
+extern void draw_with_linebreaks (struct Win *, char *, uint16_t);
+extern void draw_text_from_bottom (struct Win *, char *);
+extern void draw_log_win (struct Win *);
+extern void draw_map_win (struct Win *);
+extern void draw_info_win (struct Win *);
+extern void draw_keys_win (struct Win *);
#endif
char edit;
uint16_t select; };
-void init_keybindings(struct World *);
-void save_keybindings(struct World *);
-uint16_t get_action_key (struct KeyBinding *, char *);
-char * get_keyname(uint16_t);
-void keyswin_mod_key (struct World *, struct WinMeta *);
-void keyswin_move_selection (struct World *, char);
+extern void init_keybindings(struct World *);
+extern void save_keybindings(struct World *);
+extern uint16_t get_action_key (struct KeyBinding *, char *);
+extern char * get_keyname(uint16_t);
+extern void keyswin_mod_key (struct World *, struct WinMeta *);
+extern void keyswin_move_selection (struct World *, char);
#endif
#include <stdio.h>
#include <stdint.h>
-uint16_t read_uint16_bigendian(FILE * file);
-void write_uint16_bigendian(uint16_t x, FILE * file);
-uint32_t read_uint32_bigendian(FILE * file);
-void write_uint32_bigendian(uint32_t x, FILE * file);
+extern uint16_t read_uint16_bigendian(FILE * file);
+extern void write_uint16_bigendian(uint16_t x, FILE * file);
+extern uint32_t read_uint32_bigendian(FILE * file);
+extern void write_uint32_bigendian(uint32_t x, FILE * file);
#endif
struct yx_uint16 offset;
char * cells; };
-uint16_t rrand(char, uint32_t);
-void update_log (struct World *, char *);
+extern uint16_t rrand(char, uint32_t);
+extern void update_log (struct World *, char *);
-struct Map init_map ();
-void map_scroll (struct Map *, char);
+extern struct Map init_map ();
+extern void map_scroll (struct Map *, char);
-void turn_over (struct World *, char);
-void save_game(struct World *);
+extern void turn_over (struct World *, char);
+extern void save_game(struct World *);
-void toggle_window (struct WinMeta *, struct Win *);
-void scroll_pad (struct WinMeta *, char);
-void growshrink_active_window (struct WinMeta *, char);
+extern void toggle_window (struct WinMeta *, struct Win *);
+extern void scroll_pad (struct WinMeta *, char);
+extern void growshrink_active_window (struct WinMeta *, char);
-unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
+extern unsigned char meta_keys(int, struct World *, struct WinMeta *, struct Win *, struct Win *, struct Win *, struct Win *);
#endif
uint16_t x; };
extern char yx_uint16_cmp (struct yx_uint16, struct yx_uint16);
-struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16);
+extern struct yx_uint16 mv_yx_in_dir (char, struct yx_uint16);
#endif