diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2025-12-07 18:32:35 -0500 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2025-12-07 18:32:35 -0500 |
| commit | daedfe9e1684ae855e2a4cf21249e1274ff8484d (patch) | |
| tree | 6cacc8e364efb9b1472dfeb48a02bd37e1866634 /tnslc/compile/module.tnsl | |
| parent | 9e8e52bf43b325ab636fc4de81acc89eb17a2c1d (diff) | |
| parent | 17620a6aae801ff22e8eb6a95b30f6e830742542 (diff) | |
Merge branch 'origin' of cshift.net:git/tnsl-lang into origin
Diffstat (limited to 'tnslc/compile/module.tnsl')
| -rw-r--r-- | tnslc/compile/module.tnsl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tnslc/compile/module.tnsl b/tnslc/compile/module.tnsl index 38653da..c7ceab6 100644 --- a/tnslc/compile/module.tnsl +++ b/tnslc/compile/module.tnsl @@ -183,29 +183,28 @@ struct Module { /; if ((lvl + 1) < key`.count) ~Module m - ~uint8 str = key`.get(lvl) + ~~uint8 str = key`.get(lvl) /; loop (int i = 0; i < self.subs.count) [i++] m = self.subs.get(i) - /; if (utils.strcmp(str, m`.name) == true) + /; if (utils.strcmp(str`, m`.name) == true) ~void v = m._find(stype, key, lvl + 1) /; if (v != NULL) return v ;/ - return NULL ;/ ;/ ;; else - ~uint8 str = key`.get(key`.count - 1) + ~~uint8 str = key`.get(key`.count - 1) ~void out = NULL /; if (stype == SEARCH_VAR) - out = self._find_var(str) + out = self._find_var(str`) ;; else if (stype == SEARCH_STRUCT) - out = self._find_struct(str) + out = self._find_struct(str`) ;; else if (stype == SEARCH_FUNC) - out = self._find_func(str) + out = self._find_func(str`) ;; else if (stype == SEARCH_SUB) - out = self._find_sub(str) + out = self._find_sub(str`) ;/ /; if (out !== NULL) |