X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fclient%2Fwincontrol.c;h=01b9be84d50f74099b512c0e9688d28be9a777aa;hb=52d7524ce047cd16192bb83bea15d36a90bb2a9f;hp=b241eba3d4ac271e05bfd3e38ad854503792295a;hpb=a8097b8fef09444ebac0f1e2d3ffc4e621557b28;p=plomrogue
diff --git a/src/client/wincontrol.c b/src/client/wincontrol.c
index b241eba..01b9be8 100644
--- a/src/client/wincontrol.c
+++ b/src/client/wincontrol.c
@@ -3,6 +3,7 @@
#include "wincontrol.h"
#include /* global errno */
#include /* DIR, struct dirent, opendir(), closedir(), readdir() */
+#include /* NULL */
#include /* uint8_t, uint16_t, uint32_t */
#include /* FILE */
#include /* free(), atoi() */
@@ -55,9 +56,6 @@ static struct WinConf * get_winconf_by_id(char id);
/* Get (Win->draw) function identified by "c"; NULL if c not mapped to one. */
static void * get_drawfunc_by_char(char c);
-/* Iterate over chars of world.winconf_db.winconf_ids array. Restart after \0.*/
-static char get_next_winconf_id();
-
static char * string_prefixed_id(char * prefix, char id)
@@ -286,21 +284,6 @@ static void * get_drawfunc_by_char(char c)
-static char get_next_winconf_id()
-{
- static uint8_t i = 0;
- char c = world.winconf_db.winconf_ids[i];
- if (0 == c)
- {
- i = 0;
- return c;
- }
- i++;
- return c;
-}
-
-
-
extern struct WinConf * get_winconf_by_win(struct Win * win)
{
uint8_t i = 0;
@@ -427,6 +410,21 @@ extern void sorted_wintoggle_and_activate()
+extern char get_next_winconf_id()
+{
+ static uint8_t i = 0;
+ char c = world.winconf_db.winconf_ids[i];
+ if (0 == c)
+ {
+ i = 0;
+ return c;
+ }
+ i++;
+ return c;
+}
+
+
+
extern void save_win_configs()
{
char * f_name = "save_win_configs()";