From 71af048744d79ca1968faa03fb41f49b647191de Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 29 Jul 2014 17:47:44 +0000 Subject: [PATCH] Made executeLine() static. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49184 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/c/Shell/Shell.c | 15 ++++++++++++--- workbench/c/Shell/Shell.h | 11 ----------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/workbench/c/Shell/Shell.c b/workbench/c/Shell/Shell.c index 11dd8c77cb..2800be75bd 100644 --- a/workbench/c/Shell/Shell.c +++ b/workbench/c/Shell/Shell.c @@ -57,7 +57,6 @@ ******************************************************************************/ /* TODO: - Alias [] support Break support (and +(0L) before execution) -- CreateNewProc()? */ @@ -87,6 +86,8 @@ #define IS_SYSTEM ((ss->flags & (FNF_VALIDFLAGS | FNF_SYSTEM)) == (FNF_VALIDFLAGS | FNF_SYSTEM)) #define IS_SCRIPT (cli->cli_CurrentInput != cli->cli_StandardInput) +static LONG executeLine(ShellState *ss, STRPTR commandArgs); + BOOL setInteractive(struct CommandLineInterface *cli, ShellState *ss) { D(bug("Shell %ld: Flags = 0x%lx\n", ss->cliNumber, ss->flags)); @@ -454,8 +455,16 @@ static BPTR loadCommand(ShellState *ss, STRPTR commandName, BPTR *scriptLock, return commandSeg; } -/* Execute one command */ -LONG executeLine(ShellState *ss, STRPTR commandArgs) +/* Function: executeLine + * + * Action: Execute one line of commands + * + * Input: ShellState *ss -- this state + * STRPTR commandArgs -- arguments of the 'command' + * + * Output: LONG -- error code or 0 if everything went OK + */ +static LONG executeLine(ShellState *ss, STRPTR commandArgs) { struct CommandLineInterface *cli = Cli(); STRPTR command = ss->command + 2; diff --git a/workbench/c/Shell/Shell.h b/workbench/c/Shell/Shell.h index 5de5c71f6b..60dde638e3 100644 --- a/workbench/c/Shell/Shell.h +++ b/workbench/c/Shell/Shell.h @@ -87,17 +87,6 @@ LONG convertLine(ShellState *ss, Buffer *in, Buffer *out, BOOL *haveCommand); LONG convertLineDot(ShellState *ss, Buffer *in); -/* Function: executeLine - * - * Action: Execute one line of commands - * - * Input: ShellState *ss -- this state - * STRPTR commandArgs -- arguments of the 'command' - * - * Output: LONG -- error code or 0 if everything went OK - */ -LONG executeLine(ShellState *ss, STRPTR commandArgs); - /* Function: readLine * * Action: Read one line of a stream into a buffer. -- 2.11.4.GIT