Author | Jamozed <[email protected]> |
Date | 2022-03-05 12:25:30 |
Commit | 483949f44663424c8c39c0d9417cf5b0698412e5 |
Parent | 8a5f06f43d142e99ca2278361a9de4366ada1844 |
strconv: Move version information to definition
Diffstat
M | src/strconv.h | | | 19 | ++++++++++--------- |
M | src/strtos.c | | | 3 | +-- |
M | src/strtou.c | | | 2 | +- |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/strconv.h b/src/strconv.h index 5d5b102..f991e32 100644 --- a/src/strconv.h +++ b/src/strconv.h @@ -1,4 +1,4 @@ -// util/strconv.h, version 1.1.3 +// util/strconv.h // String conversion header file from libutil // Copyright (C) 2021, Jakob Wakeling // All rights reserved. @@ -32,6 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. #ifndef UTIL_STRCONV_H_3EQMSZZK #define UTIL_STRCONV_H_3EQMSZZK +#define UTIL_STRCONV_H_VERSION "1.1.3" #ifdef __cplusplus extern "C" { @@ -39,15 +40,15 @@ extern "C" { #include "util.h" -s8 strtos8(const char *nptr, char **endptr, register int base); -s16 strtos16(const char *nptr, char **endptr, register int base); -s32 strtos32(const char *nptr, char **endptr, register int base); -s64 strtos64(const char *nptr, char **endptr, register int base); +extern s8 strtos8(const char *nptr, char **endptr, register int base); +extern s16 strtos16(const char *nptr, char **endptr, register int base); +extern s32 strtos32(const char *nptr, char **endptr, register int base); +extern s64 strtos64(const char *nptr, char **endptr, register int base); -u8 strtou8(const char *nptr, char **endptr, register int base); -u16 strtou16(const char *nptr, char **endptr, register int base); -u32 strtou32(const char *nptr, char **endptr, register int base); -u64 strtou64(const char *nptr, char **endptr, register int base); +extern u8 strtou8(const char *nptr, char **endptr, register int base); +extern u16 strtou16(const char *nptr, char **endptr, register int base); +extern u32 strtou32(const char *nptr, char **endptr, register int base); +extern u64 strtou64(const char *nptr, char **endptr, register int base); #ifdef __cplusplus } // extern "C" diff --git a/src/strtos.c b/src/strtos.c index 7c5b1cf..e5ce76f 100644 --- a/src/strtos.c +++ b/src/strtos.c @@ -1,4 +1,4 @@ -// util/strtos.c, version 1.1.3 +// util/strtos.c // String conversion source file from libutil // Copyright (C) 2021, Jakob Wakeling // All rights reserved. @@ -34,7 +34,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. #include <ctype.h> #include <errno.h> -#include <stdbool.h> /* Convert a string to a signed 8-bit integer */ s8 strtos8(const char *nptr, char **endptr, register int base) { diff --git a/src/strtou.c b/src/strtou.c index ffccbe7..e64d762 100644 --- a/src/strtou.c +++ b/src/strtou.c @@ -1,4 +1,4 @@ -// util/strtou.c, version 1.1.3 +// util/strtou.c // String conversion source file from libutil // Copyright (C) 2021, Jakob Wakeling // All rights reserved.