home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed memory leak in client's reset_windows(). (Previously, not all Win
[plomrogue]
/
src
/
client
/
wincontrol.c
diff --git
a/src/client/wincontrol.c
b/src/client/wincontrol.c
index 5e818badd0b3d21d473b992e27ec4504defd94dc..01b9be84d50f74099b512c0e9688d28be9a777aa 100644
(file)
--- a/
src/client/wincontrol.c
+++ b/
src/client/wincontrol.c
@@
-56,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);
/* 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)
static char * string_prefixed_id(char * prefix, char id)
@@
-287,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;
extern struct WinConf * get_winconf_by_win(struct Win * win)
{
uint8_t i = 0;
@@
-428,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()";
extern void save_win_configs()
{
char * f_name = "save_win_configs()";