summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-05 20:53:38 +0200
committerMattias Andrée <maandree@kth.se>2021-09-05 20:53:38 +0200
commit387c4d793c5025290c18c7f8393e1595adde7942 (patch)
tree100661194546e3b50a953df6503a0a5b58c471c8 /common.h
parentAdd tests for and fix Swedish (diff)
downloadlibnumtext-387c4d793c5025290c18c7f8393e1595adde7942.tar.gz
libnumtext-387c4d793c5025290c18c7f8393e1595adde7942.tar.bz2
libnumtext-387c4d793c5025290c18c7f8393e1595adde7942.tar.xz
Work on Swedish
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/common.h b/common.h
index 2984213..15801eb 100644
--- a/common.h
+++ b/common.h
@@ -2,7 +2,27 @@
#include "libnumtext.h"
#include <ctype.h>
#include <errno.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
-ssize_t libnumtext_num2text_swedish__(char outbuf[], size_t outbuf_size, const char *num, size_t num_len, uint32_t flags);
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wcovered-switch-default"
+# pragma clang diagnostic ignored "-Wpadded"
+#endif
+
+
+#if defined(__clang__)
+# define FALL_THROUGH __attribute__((fallthrough));
+#else
+# define FALL_THROUGH
+#endif
+
+
+#define UNICODE_MINUS "−"
+
+
+ssize_t libnumtext_num2text_swedish__(char *outbuf, size_t outbuf_size, const char *num, size_t num_len, uint32_t flags);