wok view syslinux/stuff/extra/readconfig.u @ rev 13747

syslinux: add MENU STARTIFNOARG
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 31 11:41:25 2012 +0100 (2012-12-31)
parents
children 922ed71c2f6d
line source
1 --- com32/menu/readconfig.c
2 +++ com32/menu/readconfig.c
3 @@ -874,6 +874,12 @@
4 }
5 } else if (looking_at(p, "start")) {
6 start_menu = m;
7 + } else if ((ep = looking_at(p, "startifnoarg"))) {
8 + size_t size;
9 + int slot;
10 + slot = strtoul(ep, &ep, 0);
11 + if (!syslinux_getadv(slot, &size))
12 + start_menu = m;
13 } else if (looking_at(p, "help")) {
14 if (ld.label) {
15 ld.action = MA_HELP;