]> git.dujemihanovic.xyz Git - u-boot.git/commit
cli: Convert cread_line() to use a struct for the main vars
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:13:11 +0000 (19:13 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 19:43:54 +0000 (15:43 -0400)
commitbe5c2edd10cc0c5c1b938fc03bc7e7c35801a0bd
tree4477b6b420aba2946cbe9f12335c2f6c3a65a5e1
parentfedd372976f499afb71f854f401cf3a4432ab8ec
cli: Convert cread_line() to use a struct for the main vars

We want to reuse the editing code elsewhere. As a first step, move the
common variables into a struct. This will allow us to eventually put the
contents of the inner loop in a function, so it can be called from
elsewhere.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cli_readline.c
include/cli.h