diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-02 09:59:52 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-02 10:03:25 +0100 |
| commit | a626bacf8e45af60727882250f9d3abeb15ff3cd (patch) | |
| tree | ac2d8e6b806e8ffacdaa33b44279547ac0e32acf /src/zsetup.c | |
| parent | Since zstr_length is a generalisation of zbits, add reference to each other in the man pages (diff) | |
| download | libzahl-a626bacf8e45af60727882250f9d3abeb15ff3cd.tar.gz libzahl-a626bacf8e45af60727882250f9d3abeb15ff3cd.tar.bz2 libzahl-a626bacf8e45af60727882250f9d3abeb15ff3cd.tar.xz | |
Add zsets and zstr
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsetup.c')
| -rw-r--r-- | src/zsetup.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/zsetup.c b/src/zsetup.c index 2aadbba..f7c1912 100644 --- a/src/zsetup.c +++ b/src/zsetup.c @@ -4,6 +4,9 @@ #define X(x) z_t x; LIST_TEMPS #undef X +#define X(x, f, v) z_t x; +LIST_CONSTS +#undef X jmp_buf libzahl_jmp_buf; int libzahl_set_up = 0; @@ -16,8 +19,13 @@ zsetup(jmp_buf env) if (!libzahl_set_up) { libzahl_set_up = 1; -#define X(x) zinit(zahl_tmp_##x); +#define X(x)\ + zinit(x); LIST_TEMPS; #undef X +#define X(x, f, v)\ + zinit(x), f(x, v); + LIST_CONSTS; +#undef X } } |
