return(argr);
}
-static char*CHECKME * copyargs(from, n)
+static char ** copyargs(from, n)
char *from[];
{
- register char ** np=alloc(sizeof(char*CHECKME*)*n+3*BYTESPERWORD);
+ register char ** np=alloc(sizeof(char **)*n+3*BYTESPERWORD);
register char ** fp=from;
register char ** pp=np;
-struct trenod*CHECKME makefork(flgs, i)
+struct trenod *makefork(flgs, i)
int flgs;
struct trenod *i;
{
return(t);
}
-static struct trenod*CHECKME makelist(type,i,r)
+static struct trenod *makelist(type,i,r)
int type;
- struct trenod*CHECKME i, r;
+ struct trenod *i, *r;
{
register struct trenod *t;
* list [ ; cmd ]
*/
-struct trenod*CHECKME cmd(sym,flg)
+struct trenod *cmd(sym,flg)
register int sym;
int flg;
{
- register struct trenod*CHECKME i, e;
+ register struct trenod *i, *e;
i = list(flg);
register struct ionod *io;
if (flag) {
- io=inout((struct ionod*CHECKME)0);
+ io=inout((struct ionod *)0);
}
else {
io=0;
}
failed(s1,s2)
- char*CHECKME s1, s2;
+ char *s1, *s2;
{
prp(); prs(s1);
if (s2) {
DIR *dirf;
bool dir=0;
char *rescan = 0;
- register char*CHECKME s, cs;
+ register char *s, *cs;
struct argnod *schain = gchain;
struct direct *dp;
struct stat statb;
register bool slash; slash=0;
while (!fngchar(*cs)) {
if (*cs++==0) {
- if (rflg && slash) { break; }NEWLINEelse { return(0); }
+ if (rflg && slash) { break; } else { return(0); }
}
else if (*cs=='/') {
slash++;
}
gmatch(s, p)
- register char*CHECKME s, p;
+ register char *s, *p;
{
register int scc;
char c;
if (*p==0) { return(1); }
--s;
while (*s) {
- if (gmatch(s++,p)) { return(1); }NEWLINE}
+ if (gmatch(s++,p)) { return(1); }
+ }
return(0);
case 0:
}
static void addg(as1,as2,as3)
- char*CHECKME as1, as2, as3;
+ char *as1, *as2, *as3;
{
- register char*CHECKME s1, s2;
+ register char *s1, *s2;
register int c;
s2 = locstak()+BYTESPERWORD;
struct namnod *n=NIL;
int dolg=0;
bool bra;
- register char*CHECKME argp, v;
+ register char *argp, *v;
char idb[2];
char *id=idb;
}
{
- register struct trenod*CHECKME t = makefork(FPOU,cmd(EOFSYM,MTFLG|NLFLG));
+ register struct trenod *t = makefork(FPOU,cmd(EOFSYM,MTFLG|NLFLG));
int pv[2];
/* this is done like this so that the pipe
arg=arg->argnxt;
if (flags&execpr) {
prs(s);
- if (arg) { blank(); }NEWLINEelse { newline(); }
+ if (arg) { blank(); } else { newline(); }
}
}
}
}
while (n) {
assign(n, nullstr);
- if (*names) { n=lookup(*names++); }NEWLINEelse { n=0; }
+ if (*names) { n=lookup(*names++); } else { n=0; }
}
if (eof) { rc=1; }
}
int pathopen(path, name)
- register char*CHECKME path, name;
+ register char *path, *name;
{
register int f;
return(f);
}
-char*CHECKME catpath(path,name)
+char *catpath(path,name)
register char *path;
char *name;
{
/* leaves result on top of stack */
- register char*CHECKME scanp = path,
- argp = locstak();
+ register char *scanp = path,
+ *argp = locstak();
while (*scanp && *scanp!=':') { *argp++ = *scanp++; }
if (scanp!=path) { *argp++='/'; }
}
}
-static char*CHECKME execs(ap,t)
+static char *execs(ap,t)
char *ap;
register char *t[];
{
- register char*CHECKME p, prefix;
+ register char *p, *prefix;
prefix=catpath(ap,t[0]);
trim(p=curstak());
int argn;
{
register struct argnod *argp = Rcheat(gchain)&~ARGMK;
- register char*CHECKME *comargn, *comargm;
+ register char **comargn, **comargm;
comargn=getstak(BYTESPERWORD*argn+BYTESPERWORD); comargm = comargn += argn; *comargn = ENDARGS;
}
static void gsort(from,to)
- char*CHECKME from[], to[];
+ char *from[], *to[];
{
int k, m, n;
register int i, j;
/* ======== general purpose string handling ======== */
-char*CHECKME movstr(a,b)
- register char*CHECKME a, b;
+char *movstr(a,b)
+ register char *a, *b;
{
while (*b++ = *a++);
return(--b);
}
int cf(s1, s2)
- register char*CHECKME s1, s2;
+ register char *s1, *s2;
{
while (*s1++ == *s2) {
if (*s2++==0) {