From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/acme/ecmd.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/cmd/acme/ecmd.c') 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); -- cgit v1.2.3