]> Savannah Git Hosting - gnulib.git/commitdiff
maint: use a more standard return from mbrtowc test
authorPádraig Brady <P@draigBrady.com>
Mon, 2 Nov 2015 11:25:47 +0000 (11:25 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Nov 2015 11:30:32 +0000 (11:30 +0000)
* m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
from the test program as this is non standard and often
indicates an unhandled case in the test program.
* m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.

ChangeLog
m4/mbrlen.m4
m4/mbrtowc.m4

index e83b3ce26d960d1a9d9426a1af1147c007d15165..cf4b657a0d4237f3e7ea77ff49d628d2cf756a4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-11-02  Pádraig Brady  <P@draigBrady.com>
+
+       maint: use a more standard return from mbrtowc test
+       * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
+       from the test program as this is non standard and often
+       indicates an unhandled case in the test program.
+       * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
+
 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        intprops: add WRAPV and const flavors for GCC 5
index 977a1ed6fe15f44e4f50f04540e2e86edf926d1f..42eb61a12c07388e3f10f9deb15a93d1e2341d35 100644 (file)
@@ -253,10 +253,10 @@ changequote([,])dnl
            int
            main (void)
            {
-             return mbrlen ("", 0, &mbs) == (size_t) -2;
+             return mbrlen ("", 0, &mbs) == (size_t) -2;
            }]])],
-        [gl_cv_func_mbrlen_empty_input=no],
         [gl_cv_func_mbrlen_empty_input=yes],
+        [gl_cv_func_mbrlen_empty_input=no],
         [:])
     ])
 ])
index 640579e611ffe23f489f19bae27644209a6d79b3..deb9f06f33c378b7f5fdb73e1173d1e767b94913 100644 (file)
@@ -569,10 +569,10 @@ changequote([,])dnl
            int
            main (void)
            {
-             return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
+             return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
            }]])],
-        [gl_cv_func_mbrtowc_empty_input=no],
         [gl_cv_func_mbrtowc_empty_input=yes],
+        [gl_cv_func_mbrtowc_empty_input=no],
         [:])
     ])
 ])