/* Create Winconf, initialize ->view/height_type/width_type to 0, ->id to "id"
- * and ->draw to f.
+ * and ->draw to "f".
*/
static void create_winconf(char id, struct WinConf * wcp,
void (* f) (struct Win *));
/* Get WinConf by "id"; get id of WinConf mothering "win". */
static struct WinConf * get_winconf_by_id(struct World * world, char id);
-static char get_id_by_win(struct World * world, struct Win * win);
-static char get_id_by_win(struct World * world, struct Win * win)
-{
- struct WinConf * wc = get_winconf_by_win(world, win);
- return wc->id;
-}
-
-
-
extern struct WinConf * get_winconf_by_win(struct World * world,
struct Win * win)
{
uint8_t i = 0;
while (0 != w_p)
{
- line[i] = get_id_by_win(world, w_p);
+ struct WinConf * wc = get_winconf_by_win(world, w_p);
+ line[i] = wc->id;
w_p = w_p->_next;
i++;
}