summaryrefslogtreecommitdiff
path: root/sh9util.b
diff options
context:
space:
mode:
authorKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-12 06:24:08 +0300
committerKonstantin Kirik (snegovick) <snegovick@uprojects.org>2025-12-12 06:24:08 +0300
commit06c7845f0247e77ed861b85b6c48556f6b6b120d (patch)
tree6e9eac0970f97bdae439925772f51f232af5e30f /sh9util.b
parenta40ef1434889babbd88c9d0c5913c70e96ac2774 (diff)
Reorganize files according to proper directory structure
Diffstat (limited to 'sh9util.b')
-rw-r--r--sh9util.b26
1 files changed, 0 insertions, 26 deletions
diff --git a/sh9util.b b/sh9util.b
deleted file mode 100644
index f74032e..0000000
--- a/sh9util.b
+++ /dev/null
@@ -1,26 +0,0 @@
-implement Sh9Util;
-
-include "sh9util.m";
-
-reverse_list[T](toks: list of T): list of T
-{
- lt := len toks;
- out : list of T;
- for (i := 0; i < lt; i ++) {
- tok := hd toks;
- #toks = tl toks;
- out = tok :: out;
- }
- return out;
-}
-
-to_array[T](toks: list of T): array of T {
- lt := len toks;
- out := array[lt] of T;
- for (i := 0; i < lt; i ++) {
- tok := hd toks;
- toks = tl toks;
- out[i] = tok;
- }
- return out;
-}