diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/acme/ecmd.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/acme/ecmd.c')
-rw-r--r-- | src/cmd/acme/ecmd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd/acme/ecmd.c b/src/cmd/acme/ecmd.c index 6fef0698..ac578235 100644 --- a/src/cmd/acme/ecmd.c +++ b/src/cmd/acme/ecmd.c @@ -898,14 +898,14 @@ alllooper(Window *w, void *v) lp = v; cp = lp->cp; -// if(w->isscratch || w->isdir) -// return; +/* if(w->isscratch || w->isdir) */ +/* return; */ t = &w->body; /* only use this window if it's the current window for the file */ if(t->file->curtext != t) return; -// if(w->nopen[QWevent] > 0) -// return; +/* if(w->nopen[QWevent] > 0) */ +/* return; */ /* no auto-execute on files without names */ if(cp->re==nil && t->file->nname==0) return; @@ -1012,7 +1012,7 @@ cmdaddress(Addr *ap, Address a, int sign) case '\'': editerror("can't handle '"); -// a.r = f->mark; +/* a.r = f->mark; */ break; case '?': @@ -1093,8 +1093,8 @@ alltofile(Window *w, void *v) /* only use this window if it's the current window for the file */ if(t->file->curtext != t) return; -// if(w->nopen[QWevent] > 0) -// return; +/* if(w->nopen[QWevent] > 0) */ +/* return; */ if(runeeq(tp->r->r, tp->r->n, t->file->name, t->file->nname)) tp->f = t->file; } @@ -1127,8 +1127,8 @@ allmatchfile(Window *w, void *v) /* only use this window if it's the current window for the file */ if(t->file->curtext != t) return; -// if(w->nopen[QWevent] > 0) -// return; +/* if(w->nopen[QWevent] > 0) */ +/* return; */ if(filematch(w->body.file, tp->r)){ if(tp->f != nil) editerror("too many files match \"%S\"", tp->r->r); |