From: Simon Glass Date: Tue, 14 Feb 2012 21:59:22 -0800 Subject: [U-Boot] [PATCH v5 5/9] Don't include standard parser if hush is used In-Reply-To: <1329285566-30386-1-git-send-email-sjg@chromium.org> References: <1329285566-30386-1-git-send-email-sjg@chromium.org> Message-ID: <1329285566-30386-6-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER defined. Signed-off-by: Simon Glass --- common/main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/main.c b/common/main.c index 10ee12c..637da2b 100644 --- a/common/main.c +++ b/common/main.c @@ -1132,6 +1132,7 @@ int parse_line (char *line, char *argv[]) /****************************************************************************/ +#ifndef CONFIG_SYS_HUSH_PARSER static void process_macros (const char *input, char *output) { char c, prev; @@ -1382,6 +1383,7 @@ static int builtin_run_command(const char *cmd, int flag) return rc ? rc : repeatable; } +#endif /* * Run a command using the selected parser. -- 1.7.7.3