summaryrefslogtreecommitdiff
path: root/include/u8c
diff options
context:
space:
mode:
Diffstat (limited to 'include/u8c')
-rw-r--r--include/u8c/fmt.h2
-rw-r--r--include/u8c/geterr.h2
-rw-r--r--include/u8c/u32cmp.h27
-rw-r--r--include/u8c/u32cp.h2
-rw-r--r--include/u8c/u32sz.h2
-rw-r--r--include/u8c/u8dec.h2
-rw-r--r--include/u8c/u8enc.h2
-rw-r--r--include/u8c/ver.h2
-rw-r--r--include/u8c/vfmt.h2
-rw-r--r--include/u8c/vprint.h2
10 files changed, 36 insertions, 9 deletions
diff --git a/include/u8c/fmt.h b/include/u8c/fmt.h
index 70aea51..7f31528 100644
--- a/include/u8c/fmt.h
+++ b/include/u8c/fmt.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_fmt(size_t * const restrict outsz,uint_least32_t * restrict * const restrict out,uint_least32_t * const restrict in,...);
+extern uint_least8_t u8c_fmt(size_t * const outsz,uint_least32_t * * const out,uint_least32_t * const in,...);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/geterr.h b/include/u8c/geterr.h
index fe0a51d..abc1fb6 100644
--- a/include/u8c/geterr.h
+++ b/include/u8c/geterr.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_geterr(size_t * const restrict sz,uint_least32_t * restrict * const restrict out);
+extern uint_least8_t u8c_geterr(size_t * const sz,uint_least32_t * * const out);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/u32cmp.h b/include/u8c/u32cmp.h
new file mode 100644
index 0000000..aa437f0
--- /dev/null
+++ b/include/u8c/u32cmp.h
@@ -0,0 +1,27 @@
+/*
+ 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/>.
+*/
+/* UTF-32 compare */
+# if !defined(luma_sym_u32cmp)
+# define luma_sym_u32cmp
+# include <stdint.h>
+# if defined(__cplusplus)
+extern "C" {
+# endif
+extern uint_least8_t u8c_u32cmp(uint_least8_t * const res,uint_least32_t * const lstr,uint_least32_t * const rstr);
+# if defined(__cplusplus)
+}
+# endif
+# endif
diff --git a/include/u8c/u32cp.h b/include/u8c/u32cp.h
index 8ec1864..4b2a66e 100644
--- a/include/u8c/u32cp.h
+++ b/include/u8c/u32cp.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_u32cp(size_t * const restrict sz,uint_least32_t * restrict * const restrict out,uint_least32_t * const restrict in);
+extern uint_least8_t u8c_u32cp(size_t * const sz,uint_least32_t * * const out,uint_least32_t * const in);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/u32sz.h b/include/u8c/u32sz.h
index 5b39393..1a763f7 100644
--- a/include/u8c/u32sz.h
+++ b/include/u8c/u32sz.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_u32sz(size_t * restrict sz,uint_least32_t * restrict in);
+extern uint_least8_t u8c_u32sz(size_t * sz,uint_least32_t * in);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/u8dec.h b/include/u8c/u8dec.h
index 851cc4c..45c7f72 100644
--- a/include/u8c/u8dec.h
+++ b/include/u8c/u8dec.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_u8dec(size_t * const restrict sz,uint_least32_t * restrict * const restrict out,uint_least8_t * const restrict in);
+extern uint_least8_t u8c_u8dec(size_t * const sz,uint_least32_t * * const out,uint_least8_t * const in);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/u8enc.h b/include/u8c/u8enc.h
index 72710a1..5223898 100644
--- a/include/u8c/u8enc.h
+++ b/include/u8c/u8enc.h
@@ -21,7 +21,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_u8enc(size_t * const restrict sz,uint_least8_t * restrict * const restrict out,uint_least32_t * const restrict in);
+extern uint_least8_t u8c_u8enc(size_t * const sz,uint_least8_t * * const out,uint_least32_t * const in);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/ver.h b/include/u8c/ver.h
index eb02d7c..d2e8314 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(0x8))
+# define u8c_ver (UINT64_C(0x9))
# endif
diff --git a/include/u8c/vfmt.h b/include/u8c/vfmt.h
index 60e744e..dc29311 100644
--- a/include/u8c/vfmt.h
+++ b/include/u8c/vfmt.h
@@ -22,7 +22,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_vfmt(size_t * const restrict sz,uint_least32_t * restrict * const restrict out,uint_least32_t * const restrict in,va_list args);
+extern uint_least8_t u8c_vfmt(size_t * const sz,uint_least32_t * * const out,uint_least32_t * const in,va_list args);
# if defined(__cplusplus)
}
# endif
diff --git a/include/u8c/vprint.h b/include/u8c/vprint.h
index a10a50a..c2b292e 100644
--- a/include/u8c/vprint.h
+++ b/include/u8c/vprint.h
@@ -22,7 +22,7 @@
# if defined(__cplusplus)
extern "C" {
# endif
-extern uint_least8_t u8c_vprint(FILE * fp,uint_least32_t * const restrict msg,va_list args);
+extern uint_least8_t u8c_vprint(FILE * fp,uint_least32_t * const msg,va_list args);
# if defined(__cplusplus)
}
# endif