aboutsummaryrefslogtreecommitdiffstats
path: root/src/zunsetup.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-01 18:37:05 +0100
committerMattias Andrée <maandree@kth.se>2016-03-01 18:37:05 +0100
commitb0c1cae18066d0103a440894b5256939852021eb (patch)
treeb90f419aba218eedf1cc664c7269666306e6ccaf /src/zunsetup.c
parentAdd .gitignore (diff)
downloadlibzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.gz
libzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.bz2
libzahl-b0c1cae18066d0103a440894b5256939852021eb.tar.xz
Add zsetup, zunsetup, zinit, zfree, zswap, zsave, zload, zbits, and zlsb
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/zunsetup.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zunsetup.c b/src/zunsetup.c
new file mode 100644
index 0000000..0f766e1
--- /dev/null
+++ b/src/zunsetup.c
@@ -0,0 +1,14 @@
+/* See LICENSE file for copyright and license details. */
+#include "internals"
+
+
+void
+zunsetup(jmp_buf env)
+{
+ if (libzahl_set_up) {
+ libzahl_set_up = 0;
+#define X(x) zfree(zahl_tmp_##x);
+ LIST_TEMPS;
+#undef X
+ }
+}