void (* f) (struct Win *))
{
char * err = "Trouble in init_win_from_file() with malloc().";
- char * prefix = "config/Win_";
+ char * prefix = "config/windows/";
uint8_t size = strlen(prefix) + strlen(w_name) + 1;
char * path = malloc(size);
exit_err(NULL == path, world, err);
{
char * err = "Trouble in sorted_wintoggle() with fopen() on file "
"'config/toggle_win_order'.";
- FILE * file = fopen("config/toggle_win_order", "r");
+ FILE * file = fopen("config/windows/toggle_order", "r");
exit_err(NULL == file, world, err);
uint16_t linemax;
textfile_sizes(file, &linemax, NULL);
/* Wrapper around init_win() that reads the desired window size from a file
- * at the path prefixing the provided win name "w_name" with "config/Win_".
+ * at the path prefixing the provided win name "w_name" with "config/windows/".
* "f" is the window drawing function (Win._draw()).
*/
extern struct Win init_win_from_file(struct World * world, char * w_name,
/* Toggle windows in world->wins in the order desribed by the first line of
- * config/toggled_win_order, wherein each character may correspond to one
- * hardcoded window.
+ * config/windows/toggled_win_order, wherein each character may correspond to
+ * one hardcoded window.
*/
extern void sorted_wintoggle(struct World * world);