From: Yuval Turgeman <yuvalt@gmail.com>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: sam@ravnborg.org, rddunlap@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Menuconfig search changes - pt. 3
Date: Sat, 4 Sep 2004 20:13:36 +0300 [thread overview]
Message-ID: <9ae345c0040904101365a1ca63@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0409040152160.877@scrub.home>
On Sat, 4 Sep 2004 02:47:29 +0200 (CEST), Roman Zippel
<zippel@linux-m68k.org> wrote:
> Please send a complete patch, it makes commenting on it easier.
Ok, will do.
> You shouldn't compute the pattern at every search.
You are correct, I fixed it.
> menu->dep contains only temporary information. The real information is in
> prop->visible.expr.
Fixed that also...
> sym->dep doesn't contain user relevant information.
Fixed.
> With this you print all selection with every menu entry.
> You probably also want to print sym->rev_dep, which is used to calculate
> the selections for this symbol.
I wasn't really aware of rev_dep - very cool! Added a "Selected by" tag also.
>
> > while (submenu) {
> > menu[j++] = submenu;
> > submenu = submenu->parent;
> > }
>
> This loop should stop when you find root_menu.
It does stop when it gets to rootmenu (rootmenu's parent is NULL).
>
> > if (j > 0) {
> > + if (!hit)
> > + hit = true;
> > + if (prop->text)
> > + fprintf(fp, "%s (%s)\n", prop->text,
> > + sym->name);
> > else
> > fprintf(fp, "%s\n", sym->name);
>
> This test isn't necessary, every prompt has a text.
Left overs from the old menu search. Removed.
>
> > + space = (char*)malloc(sizeof(char)*j);
>
> This isn't necessary, just use "%*c" like the other indentations.
Ok - I keep learning new stuff.... :) - Done also.
I'll submit a final patch against mm3 soon.
Thanks for the help!
--
Yuval Turgeman
next prev parent reply other threads:[~2004-09-04 17:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-03 19:00 [PATCH] Menuconfig search changes - pt. 3 Yuval Turgeman
2004-09-04 0:47 ` Roman Zippel
2004-09-04 17:13 ` Yuval Turgeman [this message]
2004-09-13 23:16 ` Roman Zippel
2004-09-14 10:53 ` Yuval Turgeman
2004-09-14 11:00 ` Roman Zippel
2004-09-14 11:10 ` Yuval Turgeman
2004-09-14 11:45 ` Roman Zippel
-- strict thread matches above, loose matches on Subject: below --
2004-09-14 12:14 Yuval Turgeman
2004-09-14 17:53 ` Roman Zippel
2004-09-14 22:19 ` Yuval Turgeman
2004-09-17 15:59 ` Roman Zippel
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=9ae345c0040904101365a1ca63@mail.gmail.com \
--to=yuvalt@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
--cc=sam@ravnborg.org \
--cc=zippel@linux-m68k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.