fixed some more bugs
This commit is contained in:
parent
bc565a13f1
commit
6e551adf21
4 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,6 @@
|
|||
extern char *symbol2str();
|
||||
|
||||
LLmessage(tk) {
|
||||
err_occurred = 1;
|
||||
if (tk < 0)
|
||||
error("garbage at end of line");
|
||||
else if (tk) {
|
||||
|
|
|
@ -15,7 +15,7 @@ ch3bin(pval, oper, val)
|
|||
switch (oper) {
|
||||
case '%':
|
||||
if (val == 0)
|
||||
error("% by 0");
|
||||
error("%% by 0");
|
||||
else
|
||||
*pval = *pval % val;
|
||||
break;
|
||||
|
|
|
@ -35,6 +35,7 @@ error(va_alist)
|
|||
char *fmt;
|
||||
va_list ap;
|
||||
|
||||
err_occurred = 1;
|
||||
err_hdr("");
|
||||
va_start(ap);
|
||||
fmt = va_arg(ap, char *);
|
||||
|
|
|
@ -53,7 +53,7 @@ init_pp()
|
|||
register struct mkey *mk = &mkey[0];
|
||||
|
||||
while (mk->mk_reserved) {
|
||||
register struct idf *idf = str2idf(mk->mk_reserved);
|
||||
register struct idf *idf = str2idf(mk->mk_reserved, 0);
|
||||
|
||||
if (idf->id_resmac)
|
||||
fatal("maximum identifier length insufficient");
|
||||
|
|
Loading…
Reference in a new issue