wwpackage: drop the indexed-source pointer alias

The task #6 fallback landed; handles[k].result copies and &handles[k]
arguments compile directly, so the WHY-comment alias is dead.
This commit is contained in:
2026-08-08 17:12:48 +09:00
parent d3822d7730
commit 07dfc0e6af

View File

@@ -912,23 +912,18 @@ export fn packagecommand(args: []str) int = {
let k: i32 = emitted;
for (k < launched) {
let g: *pkggroup = &groups[k];
// Pointer alias: an aggregate copy from
// `handles[k].result` (N_DOT over N_INDEX source) is a
// loud cgen gap in both stages; the deref-base spine is
// wired. Same idiom as wwfixture's collect().
let hp: *exec.process = &handles[k];
if (g.state == PKGBUILDING && exec.poll(hp)) {
g.buildres = hp.result;
if (g.state == PKGBUILDING && exec.poll(&handles[k])) {
g.buildres = handles[k].result;
if (pkgbuildok(g) && !compileonly) {
pkgstartrun(g, filters, timeoutarg,
list, hp);
list, &handles[k]);
g.state = PKGRUNNING;
} else {
g.state = PKGDONE;
active -= 1;
};
} else if (g.state == PKGRUNNING && exec.poll(hp)) {
g.runres = hp.result;
} else if (g.state == PKGRUNNING && exec.poll(&handles[k])) {
g.runres = handles[k].result;
g.state = PKGDONE;
active -= 1;
};