gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, feature/dev-5.0, updated. gawk-4.1.0-282


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, feature/dev-5.0, updated. gawk-4.1.0-2820-g9b85ee5
Date: Fri, 13 Oct 2017 09:03:58 -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, feature/dev-5.0 has been updated
       via  9b85ee5535a0fd1f21b1cb43d4f5c91ef719684d (commit)
      from  919ef69e86da9cbed3ba50c462e89313bb283e48 (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=9b85ee5535a0fd1f21b1cb43d4f5c91ef719684d

commit 9b85ee5535a0fd1f21b1cb43d4f5c91ef719684d
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Oct 13 16:03:33 2017 +0300

    Remove gawkbool.h; rely on their being a stdbool.h.

diff --git a/ChangeLog b/ChangeLog
index 4686e41..a7dee7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-10-13         Arnold D. Robbins     <address@hidden>
+
+       Assume a more C99 environment:
+
+       * awk.h: Assume we have limits.h, stdarg.h and stdbool.h.
+       * configure.ac: Remove checks for limits.h and stdarg.h.
+
 2017-10-10         Arnold D. Robbins     <address@hidden>
 
        * configure.ac: Remove --with-whiny-user-strftime option.
diff --git a/NEWS b/NEWS
index bcc2409..fd41194 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@ Changes from 4.2.0 to 5.0.0
 
 2. The `--with-whiny-user-strftime' configuration option is now gone.
 
+3. The code now makes some stronger assumptions about a C99 environment.
+
 Changes from 4.1.4 to 4.2.0
 ---------------------------
 
diff --git a/awk.h b/awk.h
index 5eec241..895dad9 100644
--- a/awk.h
+++ b/awk.h
@@ -53,9 +53,7 @@
 
 #include <stdio.h>
 #include <assert.h>
-#ifdef HAVE_LIMITS_H
 #include <limits.h>
-#endif /* HAVE_LIMITS_H */
 #include <ctype.h>
 #include <setjmp.h>
 
@@ -73,11 +71,8 @@
 #error "gawk no longer supports non-C89 environments (no __STDC__ or __STDC__ 
< 1)"
 #endif
 
-#if defined(HAVE_STDARG_H)
 #include <stdarg.h>
-#else
-#error "gawk no longer supports <varargs.h>. Please update your compiler and 
runtime"
-#endif
+#include <stdbool.h>
 #include <signal.h>
 #include <time.h>
 #include <errno.h>
@@ -89,11 +84,6 @@ extern int errno;
 #include <stdlib.h>
 #endif /* not STDC_HEADERS */
 
-#ifdef HAVE_STDBOOL_H
-#include <stdbool.h>
-#else
-#include "missing_d/gawkbool.h"
-#endif
 
 /* We can handle multibyte strings.  */
 #include <wchar.h>
diff --git a/configh.in b/configh.in
index 4ac4461..2bd480a 100644
--- a/configh.in
+++ b/configh.in
@@ -108,9 +108,6 @@
 /* Define if you have the libsigsegv library. */
 #undef HAVE_LIBSIGSEGV
 
-/* Define to 1 if you have the <limits.h> header file. */
-#undef HAVE_LIMITS_H
-
 /* Define to 1 if you have the <locale.h> header file. */
 #undef HAVE_LOCALE_H
 
@@ -186,9 +183,6 @@
 /* we have sockets on this system */
 #undef HAVE_SOCKETS
 
-/* Define to 1 if you have the <stdarg.h> header file. */
-#undef HAVE_STDARG_H
-
 /* Define to 1 if stdbool.h conforms to C99. */
 #undef HAVE_STDBOOL_H
 
diff --git a/configure b/configure
index b4563e0..d7d428e 100755
--- a/configure
+++ b/configure
@@ -7999,8 +7999,8 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   fi
 
 
-for ac_header in arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
-       netdb.h netinet/in.h stdarg.h stddef.h string.h \
+for ac_header in arpa/inet.h fcntl.h locale.h libintl.h mcheck.h \
+       netdb.h netinet/in.h stddef.h string.h \
        sys/ioctl.h sys/param.h sys/select.h sys/socket.h sys/time.h unistd.h \
        termios.h stropts.h wchar.h wctype.h
 do :
diff --git a/configure.ac b/configure.ac
index d7a66c8..9013a5f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,8 +142,8 @@ AM_LANGINFO_CODESET
 gt_LC_MESSAGES
 
 dnl checks for header files
-AC_CHECK_HEADERS(arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
-       netdb.h netinet/in.h stdarg.h stddef.h string.h \
+AC_CHECK_HEADERS(arpa/inet.h fcntl.h locale.h libintl.h mcheck.h \
+       netdb.h netinet/in.h stddef.h string.h \
        sys/ioctl.h sys/param.h sys/select.h sys/socket.h sys/time.h unistd.h \
        termios.h stropts.h wchar.h wctype.h)
 AC_HEADER_STDC
diff --git a/missing_d/ChangeLog b/missing_d/ChangeLog
index a62758a..c8368e1 100644
--- a/missing_d/ChangeLog
+++ b/missing_d/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-13         Arnold D. Robbins     <address@hidden>
+
+       * gawkbool.h: Removed.
+
 2017-10-08         Arnold D. Robbins     <address@hidden>
 
        * strncasecmp.c: Fix FSF's address.
diff --git a/missing_d/gawkbool.h b/missing_d/gawkbool.h
deleted file mode 100644
index c75a5a1..0000000
--- a/missing_d/gawkbool.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * gawkbool.h -- replacement definitions for bool.
- */
-
-/* 
- * Copyright (C) 2012 the Free Software Foundation, Inc.
- * 
- * This file is part of GAWK, the GNU implementation of the
- * AWK Programming Language.
- * 
- * GAWK is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- * 
- * GAWK is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA
- */
-
-/* This stuff largely taken from the Autoconf doc. */
-
-#ifndef __bool_true_false_are_defined
-# ifndef HAVE__BOOL
-#  ifdef __cplusplus
-typedef bool _Bool;
-#  else
-#   define _Bool signed char
-#  endif
-# endif
-# define bool _Bool
-# define false 0
-# define true 1
-# define __bool_true_false_are_defined 1
-#endif

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

Summary of changes:
 ChangeLog            |  7 +++++++
 NEWS                 |  2 ++
 awk.h                | 12 +-----------
 configh.in           |  6 ------
 configure            |  4 ++--
 configure.ac         |  4 ++--
 missing_d/ChangeLog  |  4 ++++
 missing_d/gawkbool.h | 40 ----------------------------------------
 8 files changed, 18 insertions(+), 61 deletions(-)
 delete mode 100644 missing_d/gawkbool.h


hooks/post-receive
-- 
gawk



reply via email to

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