aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@adeprimo.se>2017-05-24 14:41:08 +0200
committerPetter Rodhelind <petter.rodhelind@adeprimo.se>2017-05-24 14:41:08 +0200
commitf8cfad88a860bf24c7745ec9695c4efa7ad948d5 (patch)
treea10b2a242c2bbf1a712763544cb283fc590eaae1 /src/cmd/acme
parent3118fa91a9fcbe04db0f9f09e6439edcf4293703 (diff)
downloadplan9port-f8cfad88a860bf24c7745ec9695c4efa7ad948d5.tar.gz
plan9port-f8cfad88a860bf24c7745ec9695c4efa7ad948d5.tar.bz2
plan9port-f8cfad88a860bf24c7745ec9695c4efa7ad948d5.zip
Syntax cleanup
...and the use of TRUE/FALSE instead of 1/0 for explicicy
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/exec.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
index 79a79ba4..b46d7792 100644
--- a/src/cmd/acme/exec.c
+++ b/src/cmd/acme/exec.c
@@ -1374,14 +1374,13 @@ tabexpand(Text *et, Text *_0, Text *argt, int _1, int _2, Rune *arg, int narg)
return;
w = et->w;
-if (w->tabexpand) {
-w->tabexpand = 0;
-warning(nil, "%.*S: Tabexpand OFF\n", w->body.file->nname, w->body.file->name);
-} else {
-w->tabexpand = 1;
-warning(nil, "%.*S: Tabexpand ON\n", w->body.file->nname, w->body.file->name);
-}
- /* printf("tabexpand: %d\n", w->tabexpand); */
+ if(w->tabexpand){
+ w->tabexpand = FALSE;
+ warning(nil, "%.*S: Tabexpand OFF\n", w->body.file->nname, w->body.file->name);
+ }else{
+ w->tabexpand = TRUE;
+ warning(nil, "%.*S: Tabexpand ON\n", w->body.file->nname, w->body.file->name);
+ }
}
void