11 panic("Can't malloc %d bytes", n);
12 /* if(err){ pfmt(err, "malloc %d->%p\n", n, p); flush(err); } /**/
17 erealloc(void *p, long n)
19 p = Realloc(p, n); /* botch, should be Realloc */
21 panic("Can't realloc %d bytes\n", n);
28 /* pfmt(err, "free %p\n", p); flush(err); /**/
31 else pfmt(err, "free 0\n");
33 extern int lastword, lastdol;
39 if(runq->cmdfile && !runq->iflag)
40 pfmt(err, "%s:%d: ", runq->cmdfile, runq->lineno);
41 else if(runq->cmdfile)
42 pfmt(err, "%s: ", runq->cmdfile);
44 pfmt(err, "line %d: ", runq->lineno);
45 if(tok[0] && tok[0]!='\n')
46 pfmt(err, "token %q: ", tok);
51 while(lastc!='\n' && lastc!=EOF) advance();
53 setvar("status", newword(m, (word *)0));
62 n=-n; /* doesn't work for n==-inf */
70 inttoascii(char *s, long n)