[PATCH v2 1/3] cli_hush.c: refactor handle_dollar() to prepare for "run with arguments"

Simon Glass sjg at chromium.org
Mon Oct 12 05:34:53 CEST 2020


On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes
<rasmus.villemoes at prevas.dk> wrote:
>
> A later patch will add handling of $1 through $9 as well as $#, using
> the same SPECIAL_VAR_SYMBOL handling as is currently used for $?. So
> move that case to an explicit #ifdef __U_BOOT__ branch, and
> consolidate a few of the #ifndef __U_BOOT__ cases, making it easier to
> see the original hush code.
>
> No functional change.
>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
>  common/cli_hush.c | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list