summaryrefslogtreecommitdiff
path: root/src/u8c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c')
-rw-r--r--src/u8c/println.c2
-rw-r--r--src/u8c/seterr.c2
-rw-r--r--src/u8c/seterr.h21
-rw-r--r--src/u8c/u32cmp.c2
-rw-r--r--src/u8c/u32cp.c2
-rw-r--r--src/u8c/u32sz.c2
-rw-r--r--src/u8c/u8dec.c2
-rw-r--r--src/u8c/u8enc.c2
-rw-r--r--src/u8c/vprint.c2
9 files changed, 8 insertions, 29 deletions
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/seterr.h b/src/u8c/seterr.h
deleted file mode 100644
index df3270f..0000000
--- a/src/u8c/seterr.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- Copyright 2021 Gabriel Jensen
-
- This file is part of u8c.
-
- u8c is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
-
- u8c is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
- See the GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License along with u8c.
-
- If not, see <https://www.gnu.org/licenses/>.
-*/
-/* Set error */
-# if !defined(u8c_sym_seterr)
-# define u8c_sym_seterr
-# include <stdint.h>
-extern uint_least8_t u8c_seterr(uint_least32_t * const msg);
-# endif
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>