summaryrefslogtreecommitdiff
path: root/src/wctype
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 15:54:38 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 15:54:38 -0500
commit57fd57ab4005e37bfab4bf7c637eecc1eb5445b5 (patch)
treea5cc5b9ad040955a0a7247091cbc542f297229bb /src/wctype
parent1dcdfdc0141e94b57b80526ca917b1228fe53f53 (diff)
clean up UB detection
Diffstat (limited to 'src/wctype')
-rw-r--r--src/wctype/iswalnum.c2
-rw-r--r--src/wctype/iswalpha.c2
-rw-r--r--src/wctype/iswblank.c2
-rw-r--r--src/wctype/iswcntrl.c2
-rw-r--r--src/wctype/iswctype.c2
-rw-r--r--src/wctype/iswdigit.c2
-rw-r--r--src/wctype/iswgraph.c2
-rw-r--r--src/wctype/iswlower.c2
-rw-r--r--src/wctype/iswprint.c2
-rw-r--r--src/wctype/iswpunct.c2
-rw-r--r--src/wctype/iswspace.c2
-rw-r--r--src/wctype/iswupper.c2
-rw-r--r--src/wctype/iswxdigit.c2
-rw-r--r--src/wctype/towctrans.c2
-rw-r--r--src/wctype/towlower.c2
-rw-r--r--src/wctype/towupper.c2
-rw-r--r--src/wctype/wctrans.c1
-rw-r--r--src/wctype/wctype.c1
18 files changed, 16 insertions, 18 deletions
diff --git a/src/wctype/iswalnum.c b/src/wctype/iswalnum.c
index 82a0c345..98c2f08c 100644
--- a/src/wctype/iswalnum.c
+++ b/src/wctype/iswalnum.c
@@ -1,7 +1,7 @@
#include <wctype.h>
#include <limits.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is alphanumeric **/
int iswalnum(wint_t wc)
diff --git a/src/wctype/iswalpha.c b/src/wctype/iswalpha.c
index 5888647b..8300b7ea 100644
--- a/src/wctype/iswalpha.c
+++ b/src/wctype/iswalpha.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is alphabetic **/
int iswalpha(wint_t wc)
diff --git a/src/wctype/iswblank.c b/src/wctype/iswblank.c
index 153b1d2b..2e0f0724 100644
--- a/src/wctype/iswblank.c
+++ b/src/wctype/iswblank.c
@@ -1,5 +1,5 @@
#include <wctype.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is blank **/
int iswblank(wint_t wc)
diff --git a/src/wctype/iswcntrl.c b/src/wctype/iswcntrl.c
index fe8b86ea..de6dd237 100644
--- a/src/wctype/iswcntrl.c
+++ b/src/wctype/iswcntrl.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is a control character */
int iswcntrl(wint_t wc)
diff --git a/src/wctype/iswctype.c b/src/wctype/iswctype.c
index 4113e790..8ce67657 100644
--- a/src/wctype/iswctype.c
+++ b/src/wctype/iswctype.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is part of a character class **/
int iswctype(wint_t wc, wctype_t desc)
diff --git a/src/wctype/iswdigit.c b/src/wctype/iswdigit.c
index 12e3a793..94feb0a3 100644
--- a/src/wctype/iswdigit.c
+++ b/src/wctype/iswdigit.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is a digit **/
int iswdigit(wint_t wc)
diff --git a/src/wctype/iswgraph.c b/src/wctype/iswgraph.c
index 0a3f1727..346af2b1 100644
--- a/src/wctype/iswgraph.c
+++ b/src/wctype/iswgraph.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is graphic **/
int iswgraph(wint_t wc)
diff --git a/src/wctype/iswlower.c b/src/wctype/iswlower.c
index f181779e..ec3a59a3 100644
--- a/src/wctype/iswlower.c
+++ b/src/wctype/iswlower.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a character is a lowercase letter **/
int iswlower(wint_t wc)
diff --git a/src/wctype/iswprint.c b/src/wctype/iswprint.c
index e026ae61..8d6ec64a 100644
--- a/src/wctype/iswprint.c
+++ b/src/wctype/iswprint.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is printable **/
int iswprint(wint_t wc)
diff --git a/src/wctype/iswpunct.c b/src/wctype/iswpunct.c
index 3aa074c7..831448db 100644
--- a/src/wctype/iswpunct.c
+++ b/src/wctype/iswpunct.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is punctuation **/
int iswpunct(wint_t wc)
diff --git a/src/wctype/iswspace.c b/src/wctype/iswspace.c
index 198ed6ec..c95a4e1d 100644
--- a/src/wctype/iswspace.c
+++ b/src/wctype/iswspace.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is white-space **/
int iswspace(wint_t wc)
diff --git a/src/wctype/iswupper.c b/src/wctype/iswupper.c
index 1abe4116..7c9faa9c 100644
--- a/src/wctype/iswupper.c
+++ b/src/wctype/iswupper.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is an uppercase letter **/
int iswupper(wint_t wc)
diff --git a/src/wctype/iswxdigit.c b/src/wctype/iswxdigit.c
index 9f3aabd6..bbb669ca 100644
--- a/src/wctype/iswxdigit.c
+++ b/src/wctype/iswxdigit.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** test whether a wide character is a hexadecimal digit **/
int iswxdigit(wint_t wc)
diff --git a/src/wctype/towctrans.c b/src/wctype/towctrans.c
index fdb25589..0c3d9a06 100644
--- a/src/wctype/towctrans.c
+++ b/src/wctype/towctrans.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
wint_t towctrans(wint_t wc, wctrans_t desc)
{
diff --git a/src/wctype/towlower.c b/src/wctype/towlower.c
index b162afa7..8fa94e5a 100644
--- a/src/wctype/towlower.c
+++ b/src/wctype/towlower.c
@@ -1,7 +1,7 @@
#include <wctype.h>
#include <wchar.h>
#include <stdlib.h>
-#include "_safety.h"
+#include "_wctype.h"
/** convert a wide uppercase letter to lowercase **/
wint_t towlower(wint_t wc)
diff --git a/src/wctype/towupper.c b/src/wctype/towupper.c
index 2426d689..1c819c32 100644
--- a/src/wctype/towupper.c
+++ b/src/wctype/towupper.c
@@ -1,6 +1,6 @@
#include <wctype.h>
#include <wchar.h>
-#include "_safety.h"
+#include "_wctype.h"
/** convert a wide lowercase letter to uppercase **/
wint_t towupper(wint_t wc)
diff --git a/src/wctype/wctrans.c b/src/wctype/wctrans.c
index d8e65d96..9fc08884 100644
--- a/src/wctype/wctrans.c
+++ b/src/wctype/wctrans.c
@@ -1,6 +1,5 @@
#include <wctype.h>
#include <string.h>
-#include "_safety.h"
#include "_wctype.h"
/** lookup character translation **/
diff --git a/src/wctype/wctype.c b/src/wctype/wctype.c
index 89c8ccc2..767025e0 100644
--- a/src/wctype/wctype.c
+++ b/src/wctype/wctype.c
@@ -1,6 +1,5 @@
#include <wctype.h>
#include <string.h>
-#include "_safety.h"
#include "_wctype.h"
/** lookup character class **/