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();
|
extern char *symbol2str();
|
||||||
|
|
||||||
LLmessage(tk) {
|
LLmessage(tk) {
|
||||||
err_occurred = 1;
|
|
||||||
if (tk < 0)
|
if (tk < 0)
|
||||||
error("garbage at end of line");
|
error("garbage at end of line");
|
||||||
else if (tk) {
|
else if (tk) {
|
||||||
|
|
|
@ -15,7 +15,7 @@ ch3bin(pval, oper, val)
|
||||||
switch (oper) {
|
switch (oper) {
|
||||||
case '%':
|
case '%':
|
||||||
if (val == 0)
|
if (val == 0)
|
||||||
error("% by 0");
|
error("%% by 0");
|
||||||
else
|
else
|
||||||
*pval = *pval % val;
|
*pval = *pval % val;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -35,6 +35,7 @@ error(va_alist)
|
||||||
char *fmt;
|
char *fmt;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
err_occurred = 1;
|
||||||
err_hdr("");
|
err_hdr("");
|
||||||
va_start(ap);
|
va_start(ap);
|
||||||
fmt = va_arg(ap, char *);
|
fmt = va_arg(ap, char *);
|
||||||
|
|
|
@ -53,7 +53,7 @@ init_pp()
|
||||||
register struct mkey *mk = &mkey[0];
|
register struct mkey *mk = &mkey[0];
|
||||||
|
|
||||||
while (mk->mk_reserved) {
|
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)
|
if (idf->id_resmac)
|
||||||
fatal("maximum identifier length insufficient");
|
fatal("maximum identifier length insufficient");
|
||||||
|
|
Loading…
Reference in a new issue