From: Bruno Haible Date: Fri, 31 Jul 2020 09:32:02 +0000 (+0200) Subject: _GL_CMP: Improve documentation. X-Git-Tag: v1.0~3837 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f1b7d8925b5d9495ab65b659c0d728e56e5de177;p=gnulib.git _GL_CMP: Improve documentation. Reported by Paul Eggert in . * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be passed. --- diff --git a/ChangeLog b/ChangeLog index 9e70bd36f0..654c52bdde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-07-31 Bruno Haible + + _GL_CMP: Improve documentation. + Reported by Paul Eggert in + . + * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be + passed. + 2020-07-30 Paul Eggert largefile: sync with Autoconf master diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 57f3a78011..50acc0a474 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -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