about summary refs log tree commit diff
path: root/thac.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-04-06 00:56:12 +0300
committerNakidai <nakidai@disroot.org>2026-04-06 00:56:12 +0300
commitce8647d2378514e9a77a86639dd23f1adf0f3808 (patch)
treedcfc72b113d1b75bd2aa45f17fbdcab94738642d /thac.h
parent8afa976e073c7bc29c878230eead6dddfdcc08a1 (diff)
downloadthac-ce8647d2378514e9a77a86639dd23f1adf0f3808.tar.gz
thac-ce8647d2378514e9a77a86639dd23f1adf0f3808.zip
Add TODO regarding the scope system
Diffstat (limited to 'thac.h')
-rw-r--r--thac.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/thac.h b/thac.h
index 37dd9f5..060fcdf 100644
--- a/thac.h
+++ b/thac.h
@@ -294,6 +294,11 @@ int _exptok(enum tok_t, ...);
 struct node *getstmt(void);
 struct val eval(struct node *, struct scope *);
 
+/*
+ * TODO: Probably current struct scope implementation is bad,
+ * as because of it functions below require double pointer
+ * and consequently overwrite it. Maybe a pure linked list?
+ */
 long findvar(char *, struct scope **);
 ulong assignvar(char *, struct val, struct scope **);
 int varnextchar(struct scope *);