diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:38:56 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:38:56 -0500 |
| commit | efef927455cf3ee7566fbe50d4344e3162e11635 (patch) | |
| tree | 9fe860eb8f30b4ab4f1f4724f2f00d6a66040433 /src/uchar | |
| parent | 82e8594087c93c84f27ad4508520db82289bb8fe (diff) | |
update safety checks
Diffstat (limited to 'src/uchar')
| -rw-r--r-- | src/uchar/c16rtomb.c | 10 | ||||
| -rw-r--r-- | src/uchar/c32rtomb.c | 10 | ||||
| -rw-r--r-- | src/uchar/mbrtoc16.c | 10 | ||||
| -rw-r--r-- | src/uchar/mbrtoc32.c | 10 |
4 files changed, 20 insertions, 20 deletions
diff --git a/src/uchar/c16rtomb.c b/src/uchar/c16rtomb.c index 1bd1906a..ab1444b3 100644 --- a/src/uchar/c16rtomb.c +++ b/src/uchar/c16rtomb.c @@ -1,15 +1,15 @@ -#if 0 - #include <uchar.h> +#include "_safety.h" size_t c16rtomb(char * restrict s, char16_t c16, mbstate_t * restrict ps) { + SIGNAL_SAFE(0); + + (void)s; (void)c16; (void)ps; + return 0; } /* STDC(201112) */ - - -#endif diff --git a/src/uchar/c32rtomb.c b/src/uchar/c32rtomb.c index b1b5ad8f..c4257b09 100644 --- a/src/uchar/c32rtomb.c +++ b/src/uchar/c32rtomb.c @@ -1,15 +1,15 @@ -#if 0 - #include <uchar.h> +#include "_safety.h" size_t c32rtomb(char * restrict s, char32_t c32, mbstate_t * restrict ps) { + SIGNAL_SAFE(0); + + (void)s; (void)c32; (void)ps; + return 0; } /* STDC(201112) */ - - -#endif diff --git a/src/uchar/mbrtoc16.c b/src/uchar/mbrtoc16.c index 6ceaa412..235e8663 100644 --- a/src/uchar/mbrtoc16.c +++ b/src/uchar/mbrtoc16.c @@ -1,15 +1,15 @@ -#if 0 - #include <uchar.h> +#include "_safety.h" size_t mbrtoc16(char16_t * restrict pc16, const char * restrict s, size_t n, mbstate_t * restrict ps) { + SIGNAL_SAFE(0); + + (void)pc16; (void)s; (void)n; (void)ps; + return 0; } /* STDC(201112) */ - - -#endif diff --git a/src/uchar/mbrtoc32.c b/src/uchar/mbrtoc32.c index ac5954c0..28cca2e5 100644 --- a/src/uchar/mbrtoc32.c +++ b/src/uchar/mbrtoc32.c @@ -1,15 +1,15 @@ -#if 0 - #include <uchar.h> +#include "_safety.h" size_t mbrtoc32(char32_t * restrict pc32, const char * restrict s, size_t n, mbstate_t * restrict ps) { + SIGNAL_SAFE(0); + + (void)pc32; (void)s; (void)n; (void)ps; + return 0; } /* STDC(201112) */ - - -#endif |
