clearup()
{
/* force `for' $* lists to go away */
- while(argfor=freeargs(argfor) DONE
+ while(argfor=freeargs(argfor) );
/* clean up io files */
- while(pop() DONE
+ while(pop() );
}
DOLPTR useargs()
;}
;}
q = p; p = BLK(Rcheat(p->word)&~BUSY);
- PER p>q || (c++)==0 DONE
+ PER p>q || (c++)==0 );
addblok(rbytes);
}
}
REG STRING rs; rs=cs;
REP if (*rs=='/' ) { rescan=rs; *rs=0; gchain=0 ;}
- PER *rs++ DONE
+ PER *rs++ );
// FIXME: readdir
while(read(dirf, (void *)&entry, 32) == 32 && (trapnote&SIGSET) == 0
while(*s2 = *s1++ DO s2++ OD
if (s1=as3
) { *s2++='/';
- while(*s2++ = *++s1 DONE
+ while(*s2++ = *++s1 );
;}
makearg(endstak(s2));
}
#define OD ;}
#define REP do{
#define PER }while(
-#define DONE );
#define TRUE (-1)
#define FALSE 0
REG UFD f;
REP path=catpath(path,name);
- PER (f=open(curstak(),0))<0 && path DONE
+ PER (f=open(curstak(),0))<0 && path );
return(f);
}
if(scanp!=path ) { *argp++='/' ;}
if(*scanp==COLON ) { scanp++ ;}
path=(*scanp ? scanp : 0); scanp=name;
- while((*argp++ = *scanp++) DONE
+ while((*argp++ = *scanp++) );
return(path);
}
) { xecmsg=notfound; path=getpath(*t);
namscan(exname);
xecenv=sh_setenv();
- while(path=execs(path,t) DONE
+ while(path=execs(path,t) );
failed(*t,xecmsg);
;}
}
if((n=to-from)<=1 ) { return ;}
- for (j=1; j<=n; j*=2 DONE
+ for (j=1; j<=n; j*=2 );
for (m=2*j-1; m/=2;
DO k=n-m;
STRING movstr(a,b)
REG STRING a, b;
{
- while(*b++ = *a++ DONE
+ while(*b++ = *a++ );
return(--b);
}
{
REG STRING s;
- if(s=as ) { while(*s++ DONE ;}
+ if(s=as ) { while(*s++ ); ;}
return(s-as);
}
wdnum=0; wdset=0;
- while((c=nextc(0), space(c)) DONE
+ while((c=nextc(0), space(c)) );
if(!eofmeta(c)
) { REP if(c==LITERAL
) { *argp++=(DQUOTE);
DO chkpr(c) OD
;}
;}
- PER (c=nextc(0), !eofmeta(c)) DONE
+ PER (c=nextc(0), !eofmeta(c)) );
argp=endstak(argp);
if(!letter(((ARGPTR)argp)->argval[0]) ) { wdset=0 ;}
REG INT len;
REP if(trapnote&SIGSET ) { newline(); sigchk() ;}
- PER (len=read(f->fdes,f->fbuf,f->fsiz))<0 && trapnote DONE
+ PER (len=read(f->fdes,f->fbuf,f->fsiz))<0 && trapnote );
return(len);
}