char * err_winmem = "Trouble with init_win_meta() in main ().";
exit_err(init_win_meta(screen, &world.wmeta), &world, err_winmem);
set_cleanup_flag(CLEANUP_WIN_META);
- create_winconfs(&world);
+ // create_winconfs(&world);
init_winconfs(&world);
set_cleanup_flag(CLEANUP_WINCONFS);
init_wins(&world);
-extern void create_winconfs(struct World * world)
+extern void init_winconfs(struct World * world)
{
char * err = "Trouble with malloc() in init_winconfs().";
struct WinConf * winconfs = malloc(4 * sizeof(struct WinConf));
create_winconf('l', &winconfs[2], draw_log_win);
create_winconf('m', &winconfs[3], draw_map_win);
world->winconfs = winconfs;
-}
-
-
-
-extern void init_winconfs(struct World * world)
-{
init_winconf_from_file(world, 'i');
init_winconf_from_file(world, 'k');
init_winconf_from_file(world, 'l');
}
free_wins(world);
free_winconfs(world);
- create_winconfs(world);
init_winconfs(world);
init_wins(world);
sorted_wintoggle(world);
/* Create/initialize (from config files)/free Winconf / Win structs. */
-extern void create_winconfs(struct World * world);
extern void init_winconfs(struct World * world);
extern void free_winconfs(struct World * world);
extern void init_wins(struct World * world);