diff th_string.h @ 457:85fa3d333556

Actually, revert the boolean changes .. meh.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Jan 2018 23:09:29 +0200
parents 347bfd3e017e
children 77ad030e82c9
line wrap: on
line diff
--- a/th_string.h	Tue Jan 02 22:57:47 2018 +0200
+++ b/th_string.h	Tue Jan 02 23:09:29 2018 +0200
@@ -123,10 +123,10 @@
         const char *str, int f_flags, const int f_width, const int f_prec);
 int 	th_vprintf_put_int(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
         va_list ap, const int f_radix, int f_flags, int f_width, int f_prec,
-        const bool f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
+        const BOOL f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
 int	 th_vprintf_put_int_format(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
         char *buf, int f_flags, int f_width, int f_prec, int f_len, int vret,
-        bool f_neg, bool f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
+        BOOL f_neg, BOOL f_unsig, char *(f_alt)(const char *buf, const size_t blen, const int vret, const int flags));
 
 char *  th_vprintf_altfmt_oct(const char *buf, const size_t len, const int vret, const int flags);
 char *  th_vprintf_altfmt_hex(const char *buf, const size_t len, const int vret, const int flags);
@@ -152,11 +152,11 @@
 const char    *th_findsep(const char *, size_t *, char);
 const char    *th_findseporspace(const char *, size_t *, char);
 
-bool    th_strmatch(const char *haystack, const char *pattern);
-bool    th_strcasematch(const char *haystack, const char *pattern);
+BOOL    th_strmatch(const char *haystack, const char *pattern);
+BOOL    th_strcasematch(const char *haystack, const char *pattern);
 
 int     th_get_hex_triplet(const char *str);
-bool    th_get_boolean(const char *str, bool *value);
+BOOL    th_get_boolean(const char *str, BOOL *value);
 
 void    th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width);