aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/setjmp.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-15 22:39:04 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-15 22:39:04 +0200
commit7a1ea510a9fc43ccbc257601b149a90920332e13 (patch)
tree75ac252bb8ce029c62d6834e4ca927f59eaf5769 /src/lib/include/setjmp.h
parentd415aca695956c79110c88fa58c12bf55c0e2163 (diff)
downloadkogata-7a1ea510a9fc43ccbc257601b149a90920332e13.tar.gz
kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.zip
Add Lua source, not compiled yet as libc/libm functions remain unimplemented
Diffstat (limited to 'src/lib/include/setjmp.h')
-rw-r--r--src/lib/include/setjmp.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/include/setjmp.h b/src/lib/include/setjmp.h
new file mode 100644
index 0000000..7fab8c3
--- /dev/null
+++ b/src/lib/include/setjmp.h
@@ -0,0 +1,19 @@
+#pragma once
+
+// TODO
+
+struct _jmp_buf {
+ // TODO
+ int a;
+};
+typedef struct _jmp_buf jmp_buf;
+
+int setjmp(jmp_buf env);
+//int sigsetjmp(sigjmp_buf env, int savesigs);
+
+void longjmp(jmp_buf env, int val);
+//void siglongjmp(sigjmp_buf env, int val);
+
+
+
+/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/