summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-31 22:02:25 -0500
committermidipix <writeonce@midipix.org>2015-12-31 22:02:25 -0500
commitfe1e1599bc1c8e738f918fff00d77e6fe32607c5 (patch)
tree9fdfeb7b3fba08c8575a7ef7bd672d36b3a125b7
parenta2826e00278ef7824c821c8bd6e45e77299742e7 (diff)
downloadsofort-fe1e1599bc1c8e738f918fff00d77e6fe32607c5.tar.bz2
sofort-fe1e1599bc1c8e738f918fff00d77e6fe32607c5.tar.xz
argv.h: rename ARGV_TAB to (the clearer) ARGV_TAB_WIDTH.
-rw-r--r--src/internal/argv/argv.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index b685130..a3c353d 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -21,8 +21,8 @@
#define ARGV_VERBOSITY_STATUS 0x02
#define ARGV_CLONE_VECTOR 0x80
-#ifndef ARGV_TAB
-#define ARGV_TAB 8
+#ifndef ARGV_TAB_WIDTH
+#define ARGV_TAB_WIDTH 8
#endif
enum argv_optarg {
@@ -669,8 +669,8 @@ static void argv_usage(
}
}
- optlen += ARGV_TAB;
- optlen &= (~(ARGV_TAB-1));
+ optlen += ARGV_TAB_WIDTH;
+ optlen &= (~(ARGV_TAB_WIDTH-1));
paradigm = next_para = buf = 0;
fnewline = false;
@@ -678,8 +678,8 @@ static void argv_usage(
mparalen = 0;
if (paralen) {
- paralen += (ARGV_TAB);
- paralen &= (~(ARGV_TAB-1));
+ paralen += (ARGV_TAB_WIDTH);
+ paralen &= (~(ARGV_TAB_WIDTH-1));
mparalen = paralen + 2*rbblen;
if (optlen + paralen > 64)
@@ -687,10 +687,10 @@ static void argv_usage(
}
/* account for ' ','\t', try to fit in 80 or 96 columns */
- if (optlen+paralen+2+ARGV_TAB < 80-32)
- desclen = 80 - (optlen+paralen+2+ARGV_TAB);
- else if (optlen+paralen+2+ARGV_TAB < 96-32)
- desclen = 96 - (optlen+paralen+2+ARGV_TAB);
+ if (optlen+paralen+2+ARGV_TAB_WIDTH < 80-32)
+ desclen = 80 - (optlen+paralen+2+ARGV_TAB_WIDTH);
+ else if (optlen+paralen+2+ARGV_TAB_WIDTH < 96-32)
+ desclen = 96 - (optlen+paralen+2+ARGV_TAB_WIDTH);
else
desclen = 32;