for (;;) { INT c=0;
REG BLKPTR p = blokp;
REG BLKPTR q;
- REP if(!busy(p)
+ do { if(!busy(p)
) { while(!busy(q = p->word) DO p->word = q->word OD
if(ADR(q)-ADR(p) >= rbytes
) { blokp = BLK(ADR(p)+rbytes);
;}
;}
q = p; p = BLK(Rcheat(p->word)&~BUSY);
- PER p>q || (c++)==0 );
+ } while ( p>q || (c++)==0 );
addblok(rbytes);
}
}
) { /* check for rescan */
REG STRING rs; rs=cs;
- REP if (*rs=='/' ) { rescan=rs; *rs=0; gchain=0 ;}
- PER *rs++ );
+ do { if (*rs=='/' ) { rescan=rs; *rs=0; gchain=0 ;}
+ } while(*rs++ );
// FIXME: readdir
while(read(dirf, (void *)&entry, 32) == 32 && (trapnote&SIGSET) == 0
{
REG UFD f;
- REP path=catpath(path,name);
- PER (f=open(curstak(),0))<0 && path );
+ do { path=catpath(path,name);
+ } while ( (f=open(curstak(),0))<0 && path );
return(f);
}
while((c=nextc(0), space(c)) );
if(!eofmeta(c)
- ) { REP if(c==LITERAL
+ ) { do { if(c==LITERAL
) { *argp++=(DQUOTE);
while((c=readc()) && c!=LITERAL
DO *argp++=(c|QUOTE); chkpr(c) OD
DO chkpr(c) OD
;}
;}
- PER (c=nextc(0), !eofmeta(c)) );
+ } while ( (c=nextc(0), !eofmeta(c)) );
argp=endstak(argp);
if(!letter(((ARGPTR)argp)->argval[0]) ) { wdset=0 ;}
REG FILE f=standin;
REG INT len;
- REP if(trapnote&SIGSET ) { newline(); sigchk() ;}
- PER (len=read(f->fdes,f->fbuf,f->fsiz))<0 && trapnote );
+ do { if(trapnote&SIGSET ) { newline(); sigchk() ;}
+ } while ( (len=read(f->fdes,f->fbuf,f->fsiz))<0 && trapnote );
return(len);
}