diff options
author | Francis Laniel <francis.laniel@amarulasolutions.com> | 2023-12-22 22:02:32 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-28 12:02:56 -0500 |
commit | 9a068377313c1feabb55072d2d1157999cf9d15e (patch) | |
tree | 19502dfd7079f0c040ec2cb0a9efeedd3ee60cec /common/cli_hush_modern.c | |
parent | 6bb39f5d16e8531eeca8237454cc528aa54c9e81 (diff) |
cli: Enables using modern hush parser as command line parser
If one defines HUSH_MODERN_PARSER, it is then possible to use modern parser with:
=> cli get
old
=> cli set modern
=> cli get
modern
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
Diffstat (limited to 'common/cli_hush_modern.c')
-rw-r--r-- | common/cli_hush_modern.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cli_hush_modern.c b/common/cli_hush_modern.c index 34278fdca2f..626fed089b2 100644 --- a/common/cli_hush_modern.c +++ b/common/cli_hush_modern.c @@ -221,6 +221,9 @@ static uint8_t xfunc_error_retval; static const char defifsvar[] __aligned(1) = "IFS= \t\n"; #define defifs (defifsvar + 4) +/* This define is used to check if exit command was called. */ +#define EXIT_RET_CODE -2 + /* * This define is used for changes that need be done directly in the upstream * sources still. Ideally, its use should be minimized as much as possible. |