mconf/nconf: mark empty menus/menuconfigs different from non-empty ones
authorDirk Gouders <dirk@gouders.net>
Sun, 19 May 2013 19:49:34 +0000 (21:49 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Oct 2013 20:20:38 +0000 (22:20 +0200)
commitf0c03963adbc21063171d0e0bc70ac78f554f605
tree69d82e16e76d3ff3ea76b21d201ec40bbd41d7bd
parent3da4505c135382c2eb4d54c6c1a25e10884ad174
mconf/nconf: mark empty menus/menuconfigs different from non-empty ones

Submenus are sometimes empty and it would be nice if there is
something that notifies us that we should not expect any content
_before_ we enter a submenu.

A new function menu_is_empty() was introduced and empty menus and
menuconfigs are now marked by "----" as opposed to non-empty ones that
are marked by "--->".

This scheme was suggested by "Yann E. MORIN" <yann.morin.1998@free.fr>.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/lkc_proto.h
config/menu.c