gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.2-stable, updated. gawk-4.1.0-4987-ga6e03b9f


From: John Malmberg
Subject: [SCM] gawk branch, gawk-5.2-stable, updated. gawk-4.1.0-4987-ga6e03b9f
Date: Sat, 4 Feb 2023 10:13:23 -0500 (EST)

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, gawk-5.2-stable has been updated
       via  a6e03b9f35b553903901f48d09908e41a7ea189d (commit)
      from  fbfbeb2f94eab404794d3b94f6d9279193f3f3ba (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=a6e03b9f35b553903901f48d09908e41a7ea189d

commit a6e03b9f35b553903901f48d09908e41a7ea189d
Author: John Malmberg <wb8tyw@qsl.net>
Date:   Sat Feb 4 09:14:51 2023 -0600

    OpenVMS does have a bool type

diff --git a/ChangeLog b/ChangeLog
index b2d70c15..99f96267 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-02-03         John E. Malmberg      <wb8tyw@qsl.net>
+
+       * custom.h (bool) OpenVMS compilers may have a bool type
+
 2023-02-02         John E. Malmberg      <wb8tyw@qsl.net>
 
        * custom.h (bool) OpenVMS compilers do not have a bool type
diff --git a/custom.h b/custom.h
index 65140ed2..221250b3 100644
--- a/custom.h
+++ b/custom.h
@@ -72,12 +72,13 @@ typedef long long int_fast64_t;
 typedef unsigned long long uint_fast64_t;
 #endif /* __VAX */
 #endif
-/* Still lacking a lot of C99 Support in OpenVMS */
-#ifndef __bool_true_false_are_defined
-typedef _Bool bool;
-#define true 1
-#define false 0
-#define __bool_true_false_are_defined 1
+/* All currently supported OpenVMS compilers appear to have HAVE_C_BOOL.
+   The generic config_h.com is used instead of configure is not able to
+   understand the extra code in config.h.in so it comments it out.
+   This code is needed to activate the stdbool.h
+*/
+#if (defined(HAVE_C_BOOL) && defined(HAVE_STDBOOL_H))
+#include <stdbool.h>
 #endif
 #endif /* __VMS */
 
diff --git a/vms/ChangeLog b/vms/ChangeLog
index 22bf2539..752f74f2 100644
--- a/vms/ChangeLog
+++ b/vms/ChangeLog
@@ -1,3 +1,7 @@
+2023-02-03         John E. Malmberg      <wb8tyw@qsl.net>
+
+       * config_h.com: Handle HAVE_C_BOOL
+
 2022-11-23         Arnold D. Robbins     <arnold@skeeve.com>
 
        * vms_misc.c, vms_popen.c, vms_fwrite.c, vms_cli.c, vms_gawk.c,
diff --git a/vms/config_h.com b/vms/config_h.com
index 08b78562..104aa7ef 100644
--- a/vms/config_h.com
+++ b/vms/config_h.com
@@ -29,7 +29,7 @@ $!
 $! This procedure may not guess the options correctly for all architectures,
 $! and is a work in progress.
 $!
-$! Copyright (C) 2014 the Free Software Foundation, Inc.
+$! Copyright (C) 2014-2023 the Free Software Foundation, Inc.
 $!
 $! This file is part of GAWK, the GNU implementation of the
 $! AWK Progamming Language.
@@ -60,6 +60,7 @@ $! 09-Apr-2005        J. Malmberg     Update for RSYNC and 
large file.
 $! 29-Sep-2011 J. Malmberg     Update for Bash 4.2
 $! 01-Mar-2012 J. Malmberg     Warn about getcwd(0,0)
 $! 21-Dec-2012 J. Malmberg     Update for gawk
+$! 02-Feb-2023`        J. Malmberg     Add HAVE_C_BOOL special case
 $!============================================================================
 $!
 $ss_normal = 1
@@ -402,6 +403,16 @@ $      write tf "#endif"
 $          goto cfgh_in_loop1
 $      endif
 $!
+$      if key2 .eqs. "HAVE_C_BOOL"
+$      then
+$          write tf "#if (defined(__DECC) && __DECC_VER >= 60400000)"
+$          write tf "#define ''key2' 1"
+$           write tf "#else"
+$           write tf "#undef HAVE_C_BOOL"
+$          write tf "#endif"
+$          goto cfgh_in_loop1
+$      endif
+$!
 $      if key2 .eqs. "HAVE_DECL_SYS_SIGLIST"
 $      then
 $          write tf "#ifndef ''key2'"

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

Summary of changes:
 ChangeLog        |  4 ++++
 custom.h         | 13 +++++++------
 vms/ChangeLog    |  4 ++++
 vms/config_h.com | 13 ++++++++++++-
 4 files changed, 27 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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