home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f8c8dd2
)
Make get_drawfunc_by_char() return a proper function pointer.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 10 Mar 2014 15:17:04 +0000
(16:17 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 10 Mar 2014 15:17:04 +0000
(16:17 +0100)
src/client/windows.c
patch
|
blob
|
history
diff --git
a/src/client/windows.c
b/src/client/windows.c
index e15a65ac0becfbb33053c3c57ab2fc5bc194fc5b..a9bea11c00c9ac04053ef3bb4fc7eb65399e60cc 100644
(file)
--- a/
src/client/windows.c
+++ b/
src/client/windows.c
@@
-51,7
+51,7
@@
static void init_win_size_from_winconf_and_v_screen_size(char id);
* match_func() is just a little helper to it.
*/
static uint8_t match_func(char c, void (** f) (), char c_m, void (* f_m) ());
* match_func() is just a little helper to it.
*/
static uint8_t match_func(char c, void (** f) (), char c_m, void (* f_m) ());
-static void
* get_drawfunc_by_char(char c
);
+static void
(* get_drawfunc_by_char(char c)) (
);
/* Write "win"'s size back to .target_(height/width) as per .target_*_type. */
static void set_win_target_size(struct Win * win);
/* Write "win"'s size back to .target_(height/width) as per .target_*_type. */
static void set_win_target_size(struct Win * win);
@@
-170,7
+170,7
@@
static uint8_t match_func(char c, void (** f) (), char c_m, void (* f_m) ())
-static void
* get_drawfunc_by_char(char c
)
+static void
(* get_drawfunc_by_char(char c)) (
)
{
void (* f) (struct Win *) = NULL;
if ( match_func(c, &f, 'c', draw_win_inventory)
{
void (* f) (struct Win *) = NULL;
if ( match_func(c, &f, 'c', draw_win_inventory)