fix: add internal lookup for hidden compiler words

Co-authored-by: aider (openrouter/moonshotai/kimi-k2.6) <aider@aider.chat>
This commit is contained in:
2026-05-03 17:45:40 +03:00
parent 0c5c53459a
commit 58e0de7ae1
4 changed files with 15 additions and 43 deletions
+7
View File
@@ -26,3 +26,10 @@ Word* lookup_word(const char* name) {
}
return NULL;
}
Word* lookup_word_internal(const char* name) {
for (Word* w = dict_head; w != NULL; w = w->prev) {
if (strcmp(w->name, name) == 0) return w;
}
return NULL;
}