ref: ddc38da1edf82344f6a211e0a00e075549861ba8
parent: 496c846ff65f795f72af5a8c8163f2e032bd2859
parent: 7bfdb88963c69e5bb738ad914549c4cb20d6db10
author: Lennart Augustsson <lennart@augustsson.net>
date: Thu Jan 18 03:20:07 EST 2024
Merge branch 'master' of github.com:augustss/MicroHs
--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -1300,16 +1300,15 @@
l = parse_int(f); /* The label */
if (!gobble(f, ' ')) ERR("parse ' '");nodep = find_label(l);
+ x = TOP(0);
if (*nodep == NIL) {- /* not referenced yet, so create a node */
- *nodep = alloc_node(T_IND);
- INDIR(*nodep) = NIL;
+ /* not referenced yet, so add a direct reference */
+ *nodep = x;
} else {/* Sanity check */
if (INDIR(*nodep) != NIL) ERR("shared != NIL");+ INDIR(*nodep) = x;
}
- x = TOP(0);
- INDIR(*nodep) = x;
break;
case '"' :
/* Everything up to the next " is a string.
--
⑨