aboutsummaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 15:25:23 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 15:25:23 +0330
commitb6af0e942dcde433db96a298a25490aa44e88173 (patch)
treeb49182acd3b7783789907fae8e156920afb1aaae /src/compiler
parentdocs: hold blocks in LEARN.md (36-hold), spec 5.16, ACTOR.md; TODO: m:n sched... (diff)
hold: copy hold.h with micro.c everywhere; xref baseline for hold globals; lsp keyword completion yields to a same-named symbol; compiler message avoids the word actor
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/decl.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/decl.zc b/src/compiler/decl.zc
index fed7b8d..55e23a7 100644
--- a/src/compiler/decl.zc
+++ b/src/compiler/decl.zc
@@ -264,7 +264,7 @@ int kw_hold() {
if (skind[s] == K_GVAR || skind[s] == K_GARR) {
t = stype[s]; w = 1;
if (skind[s] == K_GARR) { w = tsz(t); if (t[0] == TY_ARR) t = t[1]; }
- if (t && (isptr(t) || isagg(t) || t == tbstr || t[0] == TY_DYN || t[0] == TY_FN)) serrn(sname[s], "is shared, so it holds numbers: no pointers, strings or structs (each actor has its own heap)");
+ if (t && (isptr(t) || isagg(t) || t == tbstr || t[0] == TY_DYN || t[0] == TY_FN)) serrn(sname[s], "is shared, so it holds numbers: no pointers, strings or structs (each worker has its own heap)");
sflag[s] = sflag[s] | F_SHARED | rank * F_SHARED_RANK;
if (hold_nshared >= 64) serr("too many shared variables in one hold block (64)");
else { hold_tab[hold_nshared * 2] = sval[s]; hold_tab[hold_nshared * 2 + 1] = w; hold_nshared++; }