Skip to content
Snippets Groups Projects
Commit 5540c3d2 authored by Peter Krempa's avatar Peter Krempa
Browse files

vsh: Refactor logic in vshCommandParse


Refactor the existing logic using two nested loops with a jump into the
middle of both with 3 separate places fetching next token to a single
loop using a state machine with one centralized place to fetch next
tokens and add explanation comments.

Signed-off-by: default avatarPeter Krempa <pkrempa@redhat.com>
Reviewed-by: default avatarMichal Privoznik <mprivozn@redhat.com>
parent c27070f7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment