adding test for non zero return of calloc (a980a4cd) · 提交 · mmix / mmixware · GitLab
Ruckert, Martin
·
2024-07-31
·
via mmix activity
提交
a980a4cd
编辑于
作者:
浏览文件
| 原始行号 |
差异行号 |
差异行 |
|
@@ -741,6 +741,7 @@ for (j=0;j<=funit_count;j++) { |
|
|
@<Determine the number of stages, |n|, needed by |funit[j]|@>;
|
|
|
funit[j].k=n;
|
|
|
funit[j].co=(coroutine*)calloc(n,sizeof(coroutine));
|
|
|
if (!funit[j].co) panic(errprint1("Can't allocate coroutine %d",j));
|
|
|
for (i=0;i<n;i++) {
|
|
|
funit[j].co[i].name=funit[j].name;
|
|
|
funit[j].co[i].stage=i+1;
|
|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。