aboutsummaryrefslogtreecommitdiff
path: root/std/extern.sloth
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-12-01 22:20:07 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-12-01 22:20:07 -0600
commitd767828cee67bae17b811062949653234aa14b28 (patch)
tree0a0306acc0fb9db19e6f7eff636d81c44209ee5d /std/extern.sloth
parent52f12c6c2c946d8d3c0a7845d48e11ff8b8fb597 (diff)
downloadsloth-d767828cee67bae17b811062949653234aa14b28.tar.gz
shitty ptrs
Diffstat (limited to 'std/extern.sloth')
-rw-r--r--std/extern.sloth5
1 files changed, 5 insertions, 0 deletions
diff --git a/std/extern.sloth b/std/extern.sloth
index c970541..e99a6cc 100644
--- a/std/extern.sloth
+++ b/std/extern.sloth
@@ -26,3 +26,8 @@ foreign fn clientsock(port: Int, addr: String) Int;
foreign fn closesock(soc: Int, server:Bool);
foreign fn sendsock(msg: String, soc: Int);
foreign fn recvsock(soc: Int) String;
+
+#stdmem
+foreign fn memalloc(size: Int) Int;
+foreign fn drefi(loc: Int) Int;
+foreign fn assignrefi(loc: Int, num: Int);