diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:25:37 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:25:37 -0500 |
commit | eb55cd7a9e8a8e77f48f0c7d7449fa9e00cea75f (patch) | |
tree | 2da53e254943e2e1836f63fd260a1322862d02b5 /src/string | |
parent | c03798ecaecc529eab2332c11d1550f02f503c87 (diff) |
git rid of __check_* in favor of CHECK_*
Diffstat (limited to 'src/string')
-rw-r--r-- | src/string/memchr.c | 2 | ||||
-rw-r--r-- | src/string/memcmp.c | 2 | ||||
-rw-r--r-- | src/string/memcpy_s.c | 2 | ||||
-rw-r--r-- | src/string/memmove.c | 2 | ||||
-rw-r--r-- | src/string/memmove_s.c | 2 | ||||
-rw-r--r-- | src/string/memset.c | 2 | ||||
-rw-r--r-- | src/string/memset_s.c | 2 | ||||
-rw-r--r-- | src/string/strcat.c | 2 | ||||
-rw-r--r-- | src/string/strcat_s.c | 2 | ||||
-rw-r--r-- | src/string/strchr.c | 2 | ||||
-rw-r--r-- | src/string/strcmp.c | 2 | ||||
-rw-r--r-- | src/string/strcoll.c | 2 | ||||
-rw-r--r-- | src/string/strcpy.c | 2 | ||||
-rw-r--r-- | src/string/strcpy_s.c | 2 | ||||
-rw-r--r-- | src/string/strcspn.c | 2 | ||||
-rw-r--r-- | src/string/strerror.c | 2 | ||||
-rw-r--r-- | src/string/strerror_s.c | 2 | ||||
-rw-r--r-- | src/string/strerrorlen_s.c | 2 | ||||
-rw-r--r-- | src/string/strlen.c | 2 | ||||
-rw-r--r-- | src/string/strncat.c | 2 | ||||
-rw-r--r-- | src/string/strncat_s.c | 2 | ||||
-rw-r--r-- | src/string/strncmp.c | 2 |
22 files changed, 22 insertions, 22 deletions
diff --git a/src/string/memchr.c b/src/string/memchr.c index 1c228220..aac59df0 100644 --- a/src/string/memchr.c +++ b/src/string/memchr.c @@ -25,7 +25,7 @@ void * memchr(const void *s, int c, size_t n) return NULL; } -__check_3(void *, 0, memchr, const void *, int, size_t) +CHECK_3(void *, 0, memchr, const void *, int, size_t) /*** searches the first ARGUMENT(n) bytes of memory at ARGUMENT(s) for diff --git a/src/string/memcmp.c b/src/string/memcmp.c index f87f849a..156c8b03 100644 --- a/src/string/memcmp.c +++ b/src/string/memcmp.c @@ -28,7 +28,7 @@ int memcmp(const void *s1, const void *s2, size_t n) return 0; } -__check_3(int, 0, memcmp, const void *, const void *, size_t) +CHECK_3(int, 0, memcmp, const void *, const void *, size_t) /*** compares the first ARGUMENT(n) bytes of memory at ARGUMENT(s1) diff --git a/src/string/memcpy_s.c b/src/string/memcpy_s.c index dc4179ea..2b5ebec7 100644 --- a/src/string/memcpy_s.c +++ b/src/string/memcpy_s.c @@ -18,7 +18,7 @@ errno_t memcpy_s(void * restrict s1, rsize_t s1max, const void * restrict s2, rs return 0; } -__check_4(errno_t, 0, memcpy_s, void * restrict, rsize_t, const void * restrict, rsize_t) +CHECK_4(errno_t, 0, memcpy_s, void * restrict, rsize_t, const void * restrict, rsize_t) /*** The fn(memcpy) copies arg(n) bytes from the object at arg(s2) to the object at diff --git a/src/string/memmove.c b/src/string/memmove.c index 0de82247..22677b6d 100644 --- a/src/string/memmove.c +++ b/src/string/memmove.c @@ -27,7 +27,7 @@ void * memmove(void *s1, const void *s2, size_t n) return s1; } -__check_3(void *, 0, memmove, void *, const void *, size_t) +CHECK_3(void *, 0, memmove, void *, const void *, size_t) /*** copies ARGUMENT(n) bytes of memory from the object at diff --git a/src/string/memmove_s.c b/src/string/memmove_s.c index a6d84b55..209a8957 100644 --- a/src/string/memmove_s.c +++ b/src/string/memmove_s.c @@ -18,7 +18,7 @@ errno_t memmove_s(void *s1, rsize_t s1max, const void *s2, rsize_t n) return 0; } -__check_4(errno_t, 0, memmove_s, void *, rsize_t, const void *, rsize_t) +CHECK_4(errno_t, 0, memmove_s, void *, rsize_t, const void *, rsize_t) /*** The fn(memmove) function copies arg(n) bytes of memory from the object at diff --git a/src/string/memset.c b/src/string/memset.c index a009ec94..0cda3b90 100644 --- a/src/string/memset.c +++ b/src/string/memset.c @@ -21,7 +21,7 @@ void * memset(void *s, int c, size_t n) return s; } -__check_3(void *, 0, memset, void *, int, size_t) +CHECK_3(void *, 0, memset, void *, int, size_t) /*** fills the first ARGUMENT(n) bytes of memory at ARGUMENT(s) with diff --git a/src/string/memset_s.c b/src/string/memset_s.c index f79c3e54..90157c9b 100644 --- a/src/string/memset_s.c +++ b/src/string/memset_s.c @@ -17,7 +17,7 @@ errno_t memset_s(void *s, rsize_t smax, int c, rsize_t n) return 0; } -__check_4(errno_t, 0, memset_s, void *, rsize_t, int, rsize_t) +CHECK_4(errno_t, 0, memset_s, void *, rsize_t, int, rsize_t) /*** The fn(memset) function fills the first arg(n) bytes of memory at arg(s) with diff --git a/src/string/strcat.c b/src/string/strcat.c index 5f5da102..afbdf84c 100644 --- a/src/string/strcat.c +++ b/src/string/strcat.c @@ -21,7 +21,7 @@ char * strcat(char * restrict s1, const char * restrict s2) return s1; } -__check_2(char *, 0, strcat, char * restrict, const char * restrict) +CHECK_2(char *, 0, strcat, char * restrict, const char * restrict) /*** appends a copy of the string at ARGUMENT(s2) to the end of diff --git a/src/string/strcat_s.c b/src/string/strcat_s.c index 45cfefd4..f5116325 100644 --- a/src/string/strcat_s.c +++ b/src/string/strcat_s.c @@ -12,7 +12,7 @@ errno_t strcat_s(char * restrict s1, rsize_t s1max, const char * restrict s2) return 0; } -__check_3(errno_t, 0, strcat_s, char * restrict, rsize_t, const char * restrict) +CHECK_3(errno_t, 0, strcat_s, char * restrict, rsize_t, const char * restrict) /*** The fn(strcat) function appends a copy of the string at arg(s2) to the end of diff --git a/src/string/strchr.c b/src/string/strchr.c index 92557030..cde96cbf 100644 --- a/src/string/strchr.c +++ b/src/string/strchr.c @@ -15,7 +15,7 @@ char * strchr(const char *s, int c) return (char*)memchr(s, (char)c, strlen(s)); } -__check_2(char *, 0, strchr, const char *, int) +CHECK_2(char *, 0, strchr, const char *, int) /*** searches the string ARGUMENT(s) for the first occurrence of diff --git a/src/string/strcmp.c b/src/string/strcmp.c index 58102d79..750f6772 100644 --- a/src/string/strcmp.c +++ b/src/string/strcmp.c @@ -35,7 +35,7 @@ int strcmp(const char *s1, const char *s2) return 0; } -__check_2(int, 0, strcmp, const char *, const char *) +CHECK_2(int, 0, strcmp, const char *, const char *) /*** compares the strings at ARGUMENT(s1) and ARGUMENT(s2). diff --git a/src/string/strcoll.c b/src/string/strcoll.c index 8ad9361e..7091e30f 100644 --- a/src/string/strcoll.c +++ b/src/string/strcoll.c @@ -35,7 +35,7 @@ int strcoll(const char *s1, const char *s2) return ret; } -__check_2(int, 0, strcoll, const char *, const char *) +CHECK_2(int, 0, strcoll, const char *, const char *) /*** compares the collation values of the strings at ARGUMENT(s1) and ARGUMENT(s2). diff --git a/src/string/strcpy.c b/src/string/strcpy.c index 1faf6409..3f5339bf 100644 --- a/src/string/strcpy.c +++ b/src/string/strcpy.c @@ -22,7 +22,7 @@ char * strcpy(char * restrict s1, const char * restrict s2) return p; } -__check_2(char *, 0, strcpy, char * restrict, const char * restrict) +CHECK_2(char *, 0, strcpy, char * restrict, const char * restrict) /*** copies the string at ARGUMENT(s2) to ARGUMENT(s1), up to and diff --git a/src/string/strcpy_s.c b/src/string/strcpy_s.c index 89914f23..1e3546f2 100644 --- a/src/string/strcpy_s.c +++ b/src/string/strcpy_s.c @@ -14,7 +14,7 @@ errno_t strcpy_s(char * restrict s1, rsize_t s1max, const char * restrict s2) return 0; } -__check_3(errno_t, 0, strcpy_s, char * restrict, rsize_t, const char * restrict) +CHECK_3(errno_t, 0, strcpy_s, char * restrict, rsize_t, const char * restrict) /*** The fn(strcpy) function copies the string at arg(s2) to arg(s1), up to and diff --git a/src/string/strcspn.c b/src/string/strcspn.c index f2e8c588..b5c3c506 100644 --- a/src/string/strcspn.c +++ b/src/string/strcspn.c @@ -21,7 +21,7 @@ size_t strcspn(const char *s1, const char *s2) return i; } -__check_2(size_t, 0, strcspn, const char *, const char *) +CHECK_2(size_t, 0, strcspn, const char *, const char *) /*** the number of characters that the beginning of diff --git a/src/string/strerror.c b/src/string/strerror.c index 910d7490..69984886 100644 --- a/src/string/strerror.c +++ b/src/string/strerror.c @@ -26,7 +26,7 @@ char * strerror(int errnum) return errstr; } -__check_1(char *, 0, strerror, int) +CHECK_1(char *, 0, strerror, int) /*** converts the error number ARGUMENT(errnum) to an error message diff --git a/src/string/strerror_s.c b/src/string/strerror_s.c index 65ff77c4..bbc204b5 100644 --- a/src/string/strerror_s.c +++ b/src/string/strerror_s.c @@ -10,7 +10,7 @@ errno_t strerror_s(char *s, rsize_t maxsize, errno_t errnum) return errnum; } -__check_3(errno_t, 0, strerror_s, char *, rsize_t, errno_t) +CHECK_3(errno_t, 0, strerror_s, char *, rsize_t, errno_t) /*** The fn(strerror_s) converts the error number arg(errnum) to an error message diff --git a/src/string/strerrorlen_s.c b/src/string/strerrorlen_s.c index 5e0240da..9b05655a 100644 --- a/src/string/strerrorlen_s.c +++ b/src/string/strerrorlen_s.c @@ -9,7 +9,7 @@ size_t strerrorlen_s(errno_t errnum) return strlen(buffer); } -__check_1(size_t, 0, strerrorlen_s, errno_t) +CHECK_1(size_t, 0, strerrorlen_s, errno_t) /* CEXT1(201112) diff --git a/src/string/strlen.c b/src/string/strlen.c index 1499eac4..f0de348f 100644 --- a/src/string/strlen.c +++ b/src/string/strlen.c @@ -16,7 +16,7 @@ size_t strlen(const char *s) return i; } -__check_1(size_t, 0, strlen, const char *) +CHECK_1(size_t, 0, strlen, const char *) /*** counts the number of bytes in the string ARGUMENT(s), not diff --git a/src/string/strncat.c b/src/string/strncat.c index b455a36c..563f055f 100644 --- a/src/string/strncat.c +++ b/src/string/strncat.c @@ -29,7 +29,7 @@ char * strncat(char * restrict s1, const char * restrict s2, size_t n) return s1; } -__check_3(char *, 0, strncat, char * restrict, const char * restrict, size_t) +CHECK_3(char *, 0, strncat, char * restrict, const char * restrict, size_t) /*** appends a copy of the frist ARGUMENT(n) bytes of the string diff --git a/src/string/strncat_s.c b/src/string/strncat_s.c index 99b3f0ad..8cc1875e 100644 --- a/src/string/strncat_s.c +++ b/src/string/strncat_s.c @@ -25,7 +25,7 @@ errno_t strncat_s(char * restrict s1, rsize_t s1max, const char * restrict s2, r return 0; } -__check_4(errno_t, 0, strncat_s, char * restrict, rsize_t, const char * restrict, rsize_t) +CHECK_4(errno_t, 0, strncat_s, char * restrict, rsize_t, const char * restrict, rsize_t) /*** The fn(strncat) function appends a copy of the frist arg(n) bytes of the string diff --git a/src/string/strncmp.c b/src/string/strncmp.c index 627f9c47..cf10e3f7 100644 --- a/src/string/strncmp.c +++ b/src/string/strncmp.c @@ -25,7 +25,7 @@ int strncmp(const char *s1, const char *s2, size_t n) return memcmp(s1, s2, n); } -__check_3(int, 0, strncmp, const char *, const char *, size_t) +CHECK_3(int, 0, strncmp, const char *, const char *, size_t) /*** compares up to the first ARGUMENT(n) bytes of the strings at ARGUMENT(s1) and |