gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, master, updated. gawk-4.1.0-4841-gd2af5c05


From: Arnold Robbins
Subject: [SCM] gawk branch, master, updated. gawk-4.1.0-4841-gd2af5c05
Date: Mon, 8 Aug 2022 09:58:08 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  d2af5c05a2ae0cd80841f58266fc036e6d9afec0 (commit)
      from  a245edf421593a1ef994975cc32fc469089b7e08 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=d2af5c05a2ae0cd80841f58266fc036e6d9afec0

commit d2af5c05a2ae0cd80841f58266fc036e6d9afec0
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Aug 8 16:57:45 2022 +0300

    Move floatmagic.h include to awk.h.

diff --git a/ChangeLog b/ChangeLog
index 1fdc5fb3..da347645 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-08-08         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * awk.h: Include "floatmagic.h" here so that we no longer have to
+       worry about it on an indvidiual file basis.
+       * builtin.c, eval.c, node.c: Remove the include in these files.
+       * configure.ac: Check for isnan in libm also. This may not
+       be the right way to do this...
+
 2022-08-08  Eli Zaretskii  <eliz@gnu.org>
 
        * nonposix.h [__MINGW32__]: Add prototype for strsignal.
diff --git a/awk.h b/awk.h
index 834da65a..71e617af 100644
--- a/awk.h
+++ b/awk.h
@@ -213,6 +213,8 @@ typedef struct Regexp {
 
 #include "gawkapi.h"
 
+#include "floatmagic.h"
+
 /* Stuff for losing systems. */
 #if !defined(HAVE_STRTOD)
 extern double gawk_strtod();
diff --git a/builtin.c b/builtin.c
index 4d06ea7a..04fac763 100644
--- a/builtin.c
+++ b/builtin.c
@@ -30,7 +30,6 @@
 #include <fcntl.h>
 #endif
 #include "random.h"
-#include "floatmagic.h"
 
 #if defined(HAVE_POPEN_H)
 #include "popen.h"
diff --git a/configure b/configure
index 62c7d6d4..1121eb43 100755
--- a/configure
+++ b/configure
@@ -11621,6 +11621,65 @@ then :
 
 fi
 
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing 
isnan" >&5
+printf %s "checking for library containing isnan... " >&6; }
+if test ${ac_cv_search_isnan+y}
+then :
+  printf %s "(cached) " >&6
+else $as_nop
+  ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+char isnan ();
+int
+main (void)
+{
+return isnan ();
+  ;
+  return 0;
+}
+_ACEOF
+for ac_lib in '' m
+do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"
+then :
+  ac_cv_search_isnan=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+    conftest$ac_exeext
+  if test ${ac_cv_search_isnan+y}
+then :
+  break
+fi
+done
+if test ${ac_cv_search_isnan+y}
+then :
+
+else $as_nop
+  ac_cv_search_isnan=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isnan" >&5
+printf "%s\n" "$ac_cv_search_isnan" >&6; }
+ac_res=$ac_cv_search_isnan
+if test "$ac_res" != no
+then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
 case $host_os in
 osf1)  : ;;
 *)
diff --git a/configure.ac b/configure.ac
index f4c59f88..7da25b9f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,7 @@ AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAVE_GETADDRINFO, 1, 
[have getaddrinfo])],
 AC_SEARCH_LIBS(fmod, m)
 AC_SEARCH_LIBS(isinf, m)
 AC_SEARCH_LIBS(ismod, m)
+AC_SEARCH_LIBS(isnan, m)
 dnl Don't look for libsigsegv on OSF/1, gives us severe headaches
 case $host_os in
 osf1)  : ;;
diff --git a/eval.c b/eval.c
index 54b38799..1069570b 100644
--- a/eval.c
+++ b/eval.c
@@ -26,7 +26,6 @@
 
 #include "awk.h"
 #include <math.h>
-#include "floatmagic.h"
 
 NODE **fcall_list = NULL;
 long fcall_count = 0;
diff --git a/node.c b/node.c
index f069108d..44ddfdb3 100644
--- a/node.c
+++ b/node.c
@@ -25,7 +25,6 @@
  */
 
 #include "awk.h"
-#include "floatmagic.h"        /* definition of isnan */
 
 static NODE *r_make_number(double x);
 static AWKNUM get_ieee_magic_val(char *val);

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog    |  8 ++++++++
 awk.h        |  2 ++
 builtin.c    |  1 -
 configure    | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac |  1 +
 eval.c       |  1 -
 node.c       |  1 -
 7 files changed, 70 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]