Adding parentheses around <Scan a decimal constant> (0d240cd1) · 提交 · mmix / mmixware · GitLab
2026-03-31
·
via mmix activity
| 原始行号 |
差异行号 |
差异行 |
|
@@ -2430,6 +2430,7 @@ else *p='\"', *--p=','; |
|
|
goto constant_found;
|
|
|
|
|
|
@ @<Scan a decimal constant@>=
|
|
|
{
|
|
|
acc.h=0, acc.l=*p-'0';
|
|
|
for (p++;isdigit(*p);p++) {
|
|
|
acc=oplus(acc,shift_left(acc,2));
|
|
@@ -2439,6 +2440,7 @@ constant_found: val_ptr++; |
|
|
top_val.link=NULL;
|
|
|
top_val.equiv=acc;
|
|
|
top_val.status=pure;
|
|
|
}
|
|
|
|
|
|
@ @<Scan a hexadecimal constant@>=
|
|
|
if (!isxdigit(*p)) err("illegal hexadecimal constant");
|
|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。