11 panic("Can't malloc %d bytes", n);
16 erealloc(void *p, long n)
20 panic("Can't realloc %d bytes\n", n);
36 extern int lastword, lastdol;
42 if(runq->cmdfile && !runq->iflag)
43 pfmt(err, "%s:%d: ", runq->cmdfile, runq->lineno);
44 else if(runq->cmdfile)
45 pfmt(err, "%s: ", runq->cmdfile);
47 pfmt(err, "line %d: ", runq->lineno);
48 if(tok[0] && tok[0]!='\n')
49 pfmt(err, "token %q: ", tok);
54 while(lastc!='\n' && lastc!=EOF) advance();
56 setvar("status", newword(m, (word *)0));
65 n=-n; /* doesn't work for n==-inf */
73 inttoascii(char *s, long n)