From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 28 Nov 2010 22:02:05 +0100 Subject: [U-Boot] [PATCH] autocomplete: remove runtime handler install In-Reply-To: <1287561159-9517-1-git-send-email-vapier@gentoo.org> References: <1287561159-9517-1-git-send-email-vapier@gentoo.org> Message-ID: <20101128210205.751151352CD@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1287561159-9517-1-git-send-email-vapier@gentoo.org> you wrote: > Rather than add runtime overhead of installing completion handlers, do it > statically at build time. This requires a new build time helper macro to > declare a command and the completion handler at the same time. Then we > convert the env related funcs over to this. > > This gives an opportunity to also unify the U_BOOT_CMD macros. > > Signed-off-by: Mike Frysinger > --- > common/cmd_nvedit.c | 20 ++++++++++++-------- > common/command.c | 24 ------------------------ > common/main.c | 4 ---- > include/command.h | 30 ++++++++++++++++++------------ > 4 files changed, 30 insertions(+), 48 deletions(-) Applied to "next" branch, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "In Christianity neither morality nor religion come into contact with reality at any point." - Friedrich Nietzsche