Home GnuPG

core: Improve readability of _gpgrt_argparse.

Description

core: Improve readability of _gpgrt_argparse.

* src/argparse.c (_gpgrt_argparse): Use enum for the states and
replace continue and break.

The use of continue and break in the endless loop if confusing due to
the size of the loop's body and because there are also inner for
loops with break. It is better to make things explicit by using goto.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 25 2020, 6:59 PM
Parents
rEe9f36cabe157: core: New flag ARGPARSE_FLAG_USERVERS to try versioned config files.
Branches
Unknown
Tags
Unknown