aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-01 19:41:04 +0100
committerMattias Andrée <maandree@kth.se>2016-03-01 19:41:04 +0100
commit465749ec6de871ae244ebe6d3264c71eeb728fcc (patch)
treed14bffe84132f80fc8edd266287bec3dff224e84 /zahl.h
parentzsetu: change macro from CHARS_PER_TYPE to SIZE_MULTIPLE (diff)
downloadlibzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.gz
libzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.bz2
libzahl-465749ec6de871ae244ebe6d3264c71eeb728fcc.tar.xz
Add typedef zahl_char_t for internal use
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--zahl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/zahl.h b/zahl.h
index e2634a8..c39510f 100644
--- a/zahl.h
+++ b/zahl.h
@@ -9,12 +9,15 @@
+/* You should pretend like this typedef does not exist. */
+typedef uint32_t zahl_char_t;
+
/* This structure should be considered opaque. */
typedef struct {
int sign;
size_t used;
size_t alloced;
- uint32_t *chars;
+ zahl_char_t *chars;
} z_t[1];