From: FabF <fabian.frederick@skynet.be>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: mconf : find_menu
Date: Thu, 03 Jun 2004 19:12:02 +0200 [thread overview]
Message-ID: <1086282722.2295.21.camel@localhost.localdomain> (raw)
Hi,
I'd like to have some function able to find a menu struct with filename
& prompt in mconf.This one doesn't seem to give the best results.Someone
could help ? (Roman ?).
I'm scanning internal list of menus, then next menu's list then parent
list ....
Regards,
FabF
struct menu* find_menu (const char *szfile, const char *szprompt, struct
menu* currentmenu)
{
if (!strcmp(menu_get_prompt(currentmenu), szprompt)){
return currentmenu;
}else
if(currentmenu->list){
find_menu(szfile, szprompt, currentmenu->list);
}else
if(currentmenu->next){
find_menu(szfile, szprompt,currentmenu->next);
}
else if
((currentmenu->parent)&&(currentmenu->parent->next)){
find_menu(szfile, szprompt,
currentmenu->parent->next);
reply other threads:[~2004-06-03 17:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1086282722.2295.21.camel@localhost.localdomain \
--to=fabian.frederick@skynet.be \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®