]> Savannah Git Hosting - gnulib.git/commitdiff
_GL_CMP: Improve documentation.
authorBruno Haible <bruno@clisp.org>
Fri, 31 Jul 2020 09:32:02 +0000 (11:32 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 Jul 2020 09:44:53 +0000 (11:44 +0200)
Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.

* m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
passed.

ChangeLog
m4/gnulib-common.m4

index 9e70bd36f0dec5c9d7bd51f38bf18ce4e4da702c..654c52bdde4b30dd37ca4970f1d55013b7e13fcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-07-31  Bruno Haible  <bruno@clisp.org>
+
+       _GL_CMP: Improve documentation.
+       Reported by Paul Eggert in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
+       * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
+       passed.
+
 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        largefile: sync with Autoconf master
index 57f3a7801188b194000ea23cfa3849d0900d2fa4..50acc0a474b582c8031de1d9c449434bcf7b9d88 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 52
+# gnulib-common.m4 serial 53
 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -300,7 +300,9 @@ AC_DEFUN([gl_COMMON_BODY], [
 #define _GL_ASYNC_SAFE
 ])
   AH_VERBATIM([micro_optimizations],
-[/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2.
+[/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where
+   n1 and n2 are expressions without side effects, that evaluate to real
+   numbers (excluding NaN).
    It returns
      1  if n1 > n2
      0  if n1 == n2