From e7d92e1b0e67e78b1b35f5a2f216a3d64b8d4b43 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Mon, 16 Nov 2026 01:02:07 -0500 Subject: move modules to global, export all --- algo/algo.tnsl | 2 +- box/box.tnsl | 2 +- crypto/crypto.tnsl | 2 +- crypto/hash/hash.tnsl | 2 +- io/io.tnsl | 2 +- lang/lang.tnsl | 2 +- libtnsl.tnsl | 19 +++++++++---------- text/cstr.tnsl | 2 +- text/text.tnsl | 2 +- 9 files changed, 17 insertions(+), 18 deletions(-) diff --git a/algo/algo.tnsl b/algo/algo.tnsl index 7c261ae..4bd24f2 100644 --- a/algo/algo.tnsl +++ b/algo/algo.tnsl @@ -1,4 +1,4 @@ -/; module algo +/; export module algo ;/ diff --git a/box/box.tnsl b/box/box.tnsl index ab934b8..09d5ca8 100644 --- a/box/box.tnsl +++ b/box/box.tnsl @@ -1,5 +1,5 @@ -/; module box +/; export module box import "list.tnsl" import "map.tnsl" import "optional.tnsl" diff --git a/crypto/crypto.tnsl b/crypto/crypto.tnsl index f7c0ed9..5e2eeb0 100644 --- a/crypto/crypto.tnsl +++ b/crypto/crypto.tnsl @@ -1,5 +1,5 @@ -/; module crypto +/; export module crypto import "hash/hash.tnsl" ;/ diff --git a/crypto/hash/hash.tnsl b/crypto/hash/hash.tnsl index 2c3241a..5aa5760 100644 --- a/crypto/hash/hash.tnsl +++ b/crypto/hash/hash.tnsl @@ -1,5 +1,5 @@ -/; module hash +/; export module hash import "siphash.tnsl" ;/ diff --git a/io/io.tnsl b/io/io.tnsl index 3364490..0308714 100644 --- a/io/io.tnsl +++ b/io/io.tnsl @@ -1,5 +1,5 @@ -/; module io +/; export module io import "file.tnsl" import "path.tnsl" ;/ diff --git a/lang/lang.tnsl b/lang/lang.tnsl index b9cc157..d1f3fe0 100644 --- a/lang/lang.tnsl +++ b/lang/lang.tnsl @@ -1,4 +1,4 @@ -/; module lang +/; export module lang ;/ diff --git a/libtnsl.tnsl b/libtnsl.tnsl index 7995127..216649a 100644 --- a/libtnsl.tnsl +++ b/libtnsl.tnsl @@ -1,12 +1,11 @@ -# Base module for libtnsl -/; module tnsl - # Wrap c calls for now wrt memory management - import "internal/c_wrap_linux.tnsl" +# Base file containing all modules for libtnsl - # Basic modules - import "box/box.tnsl" - import "crypto/crypto.tnsl" - import "io/io.tnsl" - import "text/text.tnsl" -;/ +# Wrap c calls for now wrt memory management +import "internal/c_wrap_linux.tnsl" + +# Basic modules +import "box/box.tnsl" +import "crypto/crypto.tnsl" +import "io/io.tnsl" +import "text/text.tnsl" diff --git a/text/cstr.tnsl b/text/cstr.tnsl index 01e300c..d51d06d 100644 --- a/text/cstr.tnsl +++ b/text/cstr.tnsl @@ -1,5 +1,5 @@ -/; module cstr +/; export module cstr /; eq (~uint8 a, b) [bool] /; loop (a` == b` && a` !== 0) [a++; b++] ;/ diff --git a/text/text.tnsl b/text/text.tnsl index 951e697..6ead22a 100644 --- a/text/text.tnsl +++ b/text/text.tnsl @@ -1,5 +1,5 @@ -/; module text +/; export module text import "cstr.tnsl" ;/ -- cgit v1.3.1