summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-05-23 00:37:40 +0000
committermidipix <writeonce@midipix.org>2018-05-22 23:57:03 -0400
commit23485bea0d9f0432eeef0a309023fb7024082a92 (patch)
tree7796a08d0efbd3927781d2c6db6a1af3f0b4dd9c /src
parent8764ae2aad4aa82f49a9b384eae4f61fecfe25c6 (diff)
downloadapimagic-23485bea0d9f0432eeef0a309023fb7024082a92.tar.bz2
apimagic-23485bea0d9f0432eeef0a309023fb7024082a92.tar.xz
argv.h: whitespace meditation.
Diffstat (limited to 'src')
-rw-r--r--src/internal/argv/argv.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index c87ae4c..533c78a 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -355,13 +355,16 @@ static void argv_scan(
}
if (option->optarg == ARGV_OPTARG_NONE) {
- if (!fnext && ch && (*ch == '-'))
+ if (!fnext && ch && (*ch == '-')) {
ferr = ARGV_ERROR_OPTARG_NONE;
- else
+ } else {
fval = false;
- } else if (!fnext)
+ }
+
+ } else if (!fnext) {
fval = true;
- else if (option->optarg == ARGV_OPTARG_REQUIRED) {
+
+ } else if (option->optarg == ARGV_OPTARG_REQUIRED) {
if (ch && is_short_option(ch))
ferr = ARGV_ERROR_OPTARG_REQUIRED;
else if (ch && is_long_option(ch))
@@ -385,8 +388,9 @@ static void argv_scan(
else
fval = ch;
}
- } else
+ } else {
ferr = ARGV_ERROR_SHORT_OPTION;
+ }
} else if (!fnoscan && (fhybrid || is_long_option(ch))) {
ch += (fhybrid ? 1 : 2);