libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit a7f57068ed08cddb682f974715ffe16f9f9bfb6e
parent 927c269733ce83f670603c106fa1abc0771f5cec
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 29 Apr 2024 13:48:29 +0200

mhd_bool.m4: minor corrections

Diffstat:
Mm4/mhd_bool.m4 | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/m4/mhd_bool.m4 b/m4/mhd_bool.m4 @@ -5,14 +5,14 @@ # DESCRIPTION # # This macro checks whether the boolean keywords "bool", "true", "false" -# are supported by compiler. If they are not supported, a suitable -# replacement macros are defined +# are supported by compiler. If they are not supported, suitable replacement +# macros are defined. # # Example usage: # # MHD_BOOL # -# The cache variables are used in check so if any test will not work +# The cache variables are used in the checks so if any test will not work # correctly on some platform, user may simply fix it by giving cache # variable in configure parameters, for example: # @@ -30,7 +30,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 1 +#serial 2 AC_DEFUN([MHD_BOOL],[dnl AC_PREREQ([2.64])dnl for AS_VAR_IF @@ -89,8 +89,8 @@ int main(void) { static bool var1 = false || false; static bool var2 = false; - static bool bool_arr[2 - 3 * ((int) (false))] = {false, (bool) 0}; - i][f(var1 || var2 || bool_arr[0] || bool_arr[1] || false) + static bool bool_arr[2 - 3 * ((int) (false))] = {false, !false}; + i][f(var1 || var2 || bool_arr[0] || !bool_arr[1] || false) return 5; return 0; } @@ -106,8 +106,8 @@ int main(void) { static bool var1 = true && true; static bool var2 = true; - static bool bool_arr[2 - 3 * ((int) (!true))] = {true, !false}; - i][f(!var1 || !var2 || !bool_arr[0] || !bool_arr[1] || false) + static bool bool_arr[2 - 3 * ((int) (!true))] = {true, !true}; + i][f(!var1 || !var2 || !bool_arr[0] || bool_arr[1] || !true) return 5; return 0; }