diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | changelog.md | 5 | ||||
-rw-r--r-- | include/u8c/seterr.h (renamed from src/u8c/seterr.h) | 0 | ||||
-rw-r--r-- | include/u8c/ver.h | 2 | ||||
-rw-r--r-- | src/u8c/println.c | 2 | ||||
-rw-r--r-- | src/u8c/seterr.c | 2 | ||||
-rw-r--r-- | src/u8c/u32cmp.c | 2 | ||||
-rw-r--r-- | src/u8c/u32cp.c | 2 | ||||
-rw-r--r-- | src/u8c/u32sz.c | 2 | ||||
-rw-r--r-- | src/u8c/u8dec.c | 2 | ||||
-rw-r--r-- | src/u8c/u8enc.c | 2 | ||||
-rw-r--r-- | src/u8c/vprint.c | 2 | ||||
-rw-r--r-- | test.c | 1 | ||||
-rw-r--r-- | txttolit.c | 2 | ||||
-rw-r--r-- | u8c.svg | 9 |
15 files changed, 23 insertions, 14 deletions
@@ -54,6 +54,7 @@ HDRS = \ include/u8c/ispunct.h \ include/u8c/print.h \ include/u8c/println.h \ + include/u8c/seterr.h \ include/u8c/SIZE_C.h \ include/u8c/thrdsafe.h \ include/u8c/u32cmp.h \ @@ -67,7 +68,6 @@ HDRS = \ HDRS_PRIV = \ src/u8c/err.h \ src/u8c/errlock.h \ - src/u8c/seterr.h \ src/u8c/stat.h OBJS = $(SRCS:.c=.o) LIB = libu8c.so diff --git a/changelog.md b/changelog.md index 844934d..9daae68 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +# 10 + +* Make `u8c_seterr` public. +* Update logo. + # ↋ * Fix `u8c_ver`. diff --git a/src/u8c/seterr.h b/include/u8c/seterr.h index df3270f..df3270f 100644 --- a/src/u8c/seterr.h +++ b/include/u8c/seterr.h diff --git a/include/u8c/ver.h b/include/u8c/ver.h index 8cd9daa..b2101af 100644 --- a/include/u8c/ver.h +++ b/include/u8c/ver.h @@ -16,5 +16,5 @@ /* Version */ # if !defined(u8c_ver) # include <stdint.h> -# define u8c_ver (UINT64_C(0xB)) +# define u8c_ver (UINT64_C(0xC)) # endif diff --git a/src/u8c/println.c b/src/u8c/println.c index 6bbca02..f21bba0 100644 --- a/src/u8c/println.c +++ b/src/u8c/println.c @@ -13,12 +13,12 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stdarg.h> # include <stdint.h> # include <stdio.h> # include <u8c/println.h> +# include <u8c/seterr.h> # include <u8c/vprint.h> uint_least8_t u8c_println(FILE * _fp,uint_least32_t * const _msg,...) { assert(_fp != NULL); diff --git a/src/u8c/seterr.c b/src/u8c/seterr.c index 56967af..c9fec04 100644 --- a/src/u8c/seterr.c +++ b/src/u8c/seterr.c @@ -15,11 +15,11 @@ */ # include "err.h" # include "errlock.h" -# include "seterr.h" # include <assert.h> # include <stdint.h> # include <stdlib.h> # include <u8c/dbgprint.h> +# include <u8c/seterr.h> # include <u8c/u32cp.h> # if defined(u8c_bethrdsafe) # include <threads.h> diff --git a/src/u8c/u32cmp.c b/src/u8c/u32cmp.c index e8f5b9f..138eb22 100644 --- a/src/u8c/u32cmp.c +++ b/src/u8c/u32cmp.c @@ -13,10 +13,10 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stddef.h> # include <stdint.h> +# include <u8c/seterr.h> # include <u8c/SIZE_C.h> # include <u8c/u32cmp.h> uint_least8_t u8c_u32cmp(uint_least8_t * const _res,uint_least32_t * const _lstr,uint_least32_t * const _rstr) { diff --git a/src/u8c/u32cp.c b/src/u8c/u32cp.c index 978b445..a91226c 100644 --- a/src/u8c/u32cp.c +++ b/src/u8c/u32cp.c @@ -13,10 +13,10 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stdint.h> # include <stdlib.h> +# include <u8c/seterr.h> # include <u8c/SIZE_C.h> # include <u8c/u32cp.h> # include <u8c/u32sz.h> diff --git a/src/u8c/u32sz.c b/src/u8c/u32sz.c index aec4dd2..d0af24a 100644 --- a/src/u8c/u32sz.c +++ b/src/u8c/u32sz.c @@ -13,10 +13,10 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stddef.h> # include <stdint.h> +# include <u8c/seterr.h> # include <u8c/SIZE_C.h> # include <u8c/u32sz.h> uint_least8_t u8c_u32sz(size_t * const _sz,uint_least32_t * const _u32) { diff --git a/src/u8c/u8dec.c b/src/u8c/u8dec.c index 516e025..98288a6 100644 --- a/src/u8c/u8dec.c +++ b/src/u8c/u8dec.c @@ -13,10 +13,10 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stdint.h> # include <stdlib.h> +# include <u8c/seterr.h> # include <u8c/u8dec.h> # include <u8c/SIZE_C.h> uint_least8_t u8c_u8dec(size_t * const _sz,uint_least32_t * * const _out,uint_least8_t * const _in) { diff --git a/src/u8c/u8enc.c b/src/u8c/u8enc.c index 8e5432d..2ad8090 100644 --- a/src/u8c/u8enc.c +++ b/src/u8c/u8enc.c @@ -13,10 +13,10 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stdint.h> # include <stdlib.h> +# include <u8c/seterr.h> # include <u8c/u8enc.h> # include <u8c/SIZE_C.h> uint_least8_t u8c_u8enc(size_t * const _sz,uint_least8_t * * const _out,uint_least32_t * const _in) { diff --git a/src/u8c/vprint.c b/src/u8c/vprint.c index 7d1a4df..a731cb2 100644 --- a/src/u8c/vprint.c +++ b/src/u8c/vprint.c @@ -13,12 +13,12 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "seterr.h" # include <assert.h> # include <stdarg.h> # include <stdint.h> # include <stdio.h> # include <stdlib.h> +# include <u8c/seterr.h> # include <u8c/u8enc.h> # include <u8c/SIZE_C.h> # include <u8c/vfmt.h> @@ -19,6 +19,7 @@ # include <u8c/isspace.h> # include <u8c/print.h> # include <u8c/println.h> +# include <u8c/seterr.h> # include <u8c/SIZE_C.h> # include <u8c/thrdsafe.h> # include <u8c/u32cmp.h> @@ -15,7 +15,7 @@ int main(void) { u8c_init(); size_t u32sz = SIZE_C(0x0); - uint_least32_t * u32 = U"u8c_u32cmp: Unterminated input."; /* Place string here. */ + uint_least32_t * u32 = U"Hello ðere!"; /* Place string here. */ u8c_u32sz(&u32sz,u32); printf("Arrray:\n{"); for(size_t n = SIZE_C(0x0);n < u32sz;n += SIZE_C(0x1)) { @@ -1,17 +1,20 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg height="96" version="1.1" width="256" xmlns="http://www.w3.org/2000/svg"> + <!-- Box #0 --> <rect fill="#444747" height="64" rx="8" ry="8" width="64" x="24" y="24" /> - <rect fill="#E13D3D" height="64" rx="8" ry="8" width="64" x="16" y="16" /> + <rect fill="#E13DA9" height="64" rx="8" ry="8" width="64" x="16" y="16" /> <rect fill="#F8F8F1" height="32" width="32" x="32" y="24" /> <circle fill="#F8F8F1" cx="48" cy="56" r="16"/> - <rect fill="#E13D3D" height="36" width="16" x="40" y="20" /> - <circle fill="#E13D3D" cx="48" cy="56" r="8"/> + <rect fill="#E13DA9" height="36" width="16" x="40" y="20" /> + <circle fill="#E13DA9" cx="48" cy="56" r="8"/> + <!-- Box #1 --> <rect fill="#444747" height="64" rx="8" ry="8" width="64" x="104" y="24" /> <rect fill="#A9E13D" height="64" rx="8" ry="8" width="64" x="96" y="16" /> <circle fill="#F8F8F1" cx="128" cy="56" r="16"/> <circle fill="#A9E13D" cx="128" cy="56" r="8"/> <circle fill="#F8F8F1" cx="128" cy="40" r="16"/> <circle fill="#A9E13D" cx="128" cy="40" r="8"/> + <!-- Box #2 --> <rect fill="#444747" height="64" rx="8" ry="8" width="64" x="184" y="24" /> <rect fill="#3DA9E1" height="64" rx="8" ry="8" width="64" x="176" y="16" /> <circle fill="#F8F8F1" cx="208" cy="48" r="24"/> |