summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8c6e995)
Knowing the domain of the variable is Boolean aids comprehension of the
variable's name and purpose.
-int listsw = 0;
-int rfc934sw = 0;
-int contentidsw = 1;
+bool listsw;
+bool rfc934sw;
+bool contentidsw = true;
if (compfile)
die("cannot specify both standard input and a file");
compfile = cp;
if (compfile)
die("cannot specify both standard input and a file");
compfile = cp;
- listsw = 0; /* turn off -list if using standard in/out */
+ listsw = false; /* turn off -list if using standard in/out */
verbosw = 0; /* turn off -verbose listings */
break;
}
verbosw = 0; /* turn off -verbose listings */
break;
}
continue;
case NRFC934SW:
continue;
case NRFC934SW:
continue;
case CONTENTIDSW:
continue;
case CONTENTIDSW:
continue;
case NCONTENTIDSW:
continue;
case NCONTENTIDSW:
continue;
case HEADERENCSW: {
continue;
case HEADERENCSW: {
-extern int listsw;
-extern int rfc934sw;
-extern int contentidsw;
+extern bool listsw;
+extern bool rfc934sw;
+extern bool contentidsw;
static char prefix[] = "----- =_aaaaaaaaaa";
static char prefix[] = "----- =_aaaaaaaaaa";