[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, master, updated. gawk-4.1.0-4776-g1887e22d
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, master, updated. gawk-4.1.0-4776-g1887e22d |
Date: |
Tue, 12 Jul 2022 02:36:04 -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 1887e22dffc19cc78a8d6ee7a0f336ea6b5548b4 (commit)
from cae282347d54bf0cf47bc4c6d6f953388faf7e91 (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=1887e22dffc19cc78a8d6ee7a0f336ea6b5548b4
commit 1887e22dffc19cc78a8d6ee7a0f336ea6b5548b4
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Tue Jul 12 09:35:22 2022 +0300
Restore pc/config.{sed,h}.
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 39fa7510..67f1f59c 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,8 @@
+2022-07-12 Arnold D. Robbins <arnold@skeeve.com>
+
+ * config.sed, config.h: Restored from stable branch,
+ I messed them up somehow.
+
2022-07-11 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.tst, config.h: Regenerated.
diff --git a/pc/config.h b/pc/config.h
index 2930044e..7896a73f 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -88,17 +88,17 @@
#undef HAVE_ICONV
/* Define to 1 if the system has the type `intmax_t'. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_INTMAX_T 1
#endif
/* Define to 1 if you have the <inttypes.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_INTTYPES_H 1
#endif
/* Define to 1 if you have the `isascii' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_ISASCII 1
#endif
@@ -121,7 +121,7 @@
#endif
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define HAVE_LANGINFO_CODESET 1
#endif
@@ -138,7 +138,7 @@
#undef HAVE_LIBSIGSEGV
/* Define to 1 if you have the <locale.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_LOCALE_H 1
#endif
@@ -168,12 +168,14 @@
#undef HAVE_MEMCPY_ULONG
/* Define to 1 if you have the `memmove' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_MEMMOVE 1
#endif
/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
+#ifdef __DJGPP__
+#define HAVE_MEMORY_H 1
+#endif
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
@@ -185,7 +187,9 @@
#undef HAVE_MINIX_CONFIG_H
/* Define to 1 if you have the `mkstemp' function. */
-#undef HAVE_MKSTEMP
+#ifdef __DJGPP__
+#define HAVE_MKSTEMP 1
+#endif
/* we have the mktime function */
#define HAVE_MKTIME 1
@@ -206,12 +210,12 @@
#undef HAVE_POSIX_OPENPT
/* Define to 1 if you have the `setenv' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_SETENV 1
#endif
/* Define to 1 if you have the `setlocale' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_SETLOCALE 1
#endif
@@ -222,7 +226,7 @@
#undef HAVE_SIGPROCMASK
/* Define to 1 if you have the `snprintf' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_SNPRINTF 1
#endif
@@ -237,7 +241,7 @@
#endif
/* Define to 1 if stdbool.h conforms to C99. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_STDBOOL_H 1
#endif
@@ -247,7 +251,7 @@
#endif
/* Define to 1 if you have the <stdint.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_STDINT_H 1
#endif
@@ -255,18 +259,22 @@
#undef HAVE_STDIO_H
/* Define to 1 if you have the <stdlib.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_STDLIB_H 1
#endif
/* Define to 1 if you have the `strcasecmp' function. */
-#undef HAVE_STRCASECMP
+#ifdef __DJGPP__
+#define HAVE_STRCASECMP 1
+#endif
/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1
/* Define to 1 if you have the `strcoll' function. */
-#undef HAVE_STRCOLL
+#ifdef __DJGPP__
+#define HAVE_STRCOLL 1
+#endif
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
@@ -290,16 +298,18 @@
/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1
-s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
+#ifdef __EMX__
+#define strncasecmp strnicmp
+#endif
/* Define to 1 if you have the <stropts.h> header file. */
#undef HAVE_STROPTS_H
/* Define to 1 if you have the `strtod' function. */
-#undef HAVE_STRTOD
+#define HAVE_STRTOD 1
/* Define to 1 if you have the `strtoul' function. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_STRTOUL 1
#endif
@@ -310,7 +320,7 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#undef HAVE_STRUCT_PASSWD_PW_PASSWD
/* Define to 1 if `st_blksize' is a member of `struct stat'. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
#endif
@@ -321,10 +331,12 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#define HAVE_SYSTEM 1
/* Define to 1 if you have the <sys/ioctl.h> header file. */
-#undef HAVE_SYS_IOCTL_H
+#ifdef __DJGPP__
+#define HAVE_SYS_IOCTL_H 1
+#endif
/* Define to 1 if you have the <sys/param.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_SYS_PARAM_H 1
#endif
@@ -335,12 +347,12 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#undef HAVE_SYS_SOCKET_H
/* Define to 1 if you have the <sys/stat.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__DJGPP__)
#define HAVE_SYS_STAT_H 1
#endif
/* Define to 1 if you have the <sys/time.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define HAVE_SYS_TIME_H 1
#endif
@@ -348,7 +360,9 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
-#undef HAVE_SYS_WAIT_H
+#ifdef __DJGPP__
+#define HAVE_SYS_WAIT_H 1
+#endif
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
@@ -357,7 +371,9 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#undef HAVE_TIMEGM
/* Define to 1 if you have the `tmpfile' function. */
-#undef HAVE_TMPFILE
+#ifdef __DJGPP__
+#define HAVE_TMPFILE 1
+#endif
/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
`HAVE_STRUCT_TM_TM_ZONE' instead. */
@@ -381,12 +397,12 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#define HAVE_TZSET 1
/* Define to 1 if the system has the type `uintmax_t'. */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define HAVE_UINTMAX_T 1
#endif
/* Define to 1 if you have the <unistd.h> header file. */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define HAVE_UNISTD_H 1
#endif
@@ -394,7 +410,7 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#undef HAVE_UNSIGNED_LONG_LONG_INT
/* Define to 1 if you have the `usleep' function. */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define HAVE_USLEEP 1
#endif
@@ -437,7 +453,9 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#endif
/* Define to 1 if the system has the type `_Bool'. */
-#undef HAVE__BOOL
+#ifdef __DJGPP__
+#define HAVE__BOOL 1
+#endif
/* Define to 1 if you have the `__etoa_l' function. */
#undef HAVE___ETOA_L
@@ -455,7 +473,7 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#define PACKAGE_NAME "GNU Awk"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU Awk 5.1.61"
+#define PACKAGE_STRING "GNU Awk 5.1.1"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "gawk"
@@ -464,13 +482,15 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#define PACKAGE_URL "http://www.gnu.org/software/gawk/"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "5.1.61"
+#define PACKAGE_VERSION "5.1.1"
/* Define to 1 if *printf supports %a format */
#define PRINTF_HAS_A_FORMAT 1
/* Define to 1 if *printf supports %F format */
-#undef PRINTF_HAS_F_FORMAT
+#ifdef __DJGPP__
+#define PRINTF_HAS_F_FORMAT 1
+#endif
/* The size of `unsigned int', as computed by sizeof. */
#define SIZEOF_UNSIGNED_INT 4
@@ -478,9 +498,6 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
/* The size of `unsigned long', as computed by sizeof. */
#define SIZEOF_UNSIGNED_LONG 4
-/* The size of `void *', as computed by sizeof. */
-#undef SIZEOF_VOID_P
-
/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
@@ -498,11 +515,8 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
/* Define to 1 if the character set is EBCDIC */
#undef USE_EBCDIC
-/* Define to 1 if we can use the pma allocator */
-#undef USE_PERSISTENT_MALLOC
-
/* This is required to compile Gnulib regex code. */
-#if defined(__MINGW32__)
+#if defined(__DJGPP__) || defined(__MINGW32__)
#define _GNU_SOURCE 1
#endif
/* Enable extensions on AIX 3, Interix. */
@@ -594,7 +608,7 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
/* Version number of package */
-#define VERSION "5.1.61"
+#define VERSION "5.1.1"
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
@@ -678,4 +692,27 @@ s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
#undef uintmax_t
#include "custom.h"
+#ifdef __DJGPP__
+/* gcc no longer includes this by default */
+# include <sys/version.h>
+
+/* Library search path */
+# if (__DJGPP__ > 2 || __DJGPP_MINOR__ >= 3)
+# define DEFPATH ".;/dev/env/DJDIR/share/awk"
+# else
+# define DEFPATH ".;c:/lib/awk;c:/gnu/lib/awk"
+# endif
+
+/* Function prototype. */
+#include <stdbool.h>
+extern bool is_valid_identifier(const char *name);
+#endif
+
+#ifndef __DJGPP__
#define HAVE_POPEN_H 1
+#endif
+
+#if defined(__EMX__)
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+#endif
diff --git a/pc/config.sed b/pc/config.sed
index 1c1b7a2d..e194fdcb 100644
--- a/pc/config.sed
+++ b/pc/config.sed
@@ -32,6 +32,10 @@
#endif
s/^#undef GETPGRP_VOID *$/#define GETPGRP_VOID 1/
s/^#undef GETGROUPS_T *$/#define GETGROUPS_T gid_t/
+/^#undef GETPGRP_VOID$/c\
+#ifdef __DJGPP__\
+#define GETPGRP_VOID 1\
+#endif
s/^#undef HAVE_ALARM *$/#define HAVE_ALARM 1/
s/^#undef HAVE_ATEXIT *$/#define HAVE_ATEXIT 1/
/^#undef HAVE_BTOWC *$/c\
@@ -51,11 +55,11 @@ s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
#define HAVE_GETADDRINFO 1\
#endif
/^#undef HAVE_INTMAX_T *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_INTMAX_T 1\
#endif
/^#undef HAVE_INTTYPES_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_INTTYPES_H 1\
#endif
/^#undef HAVE_INTTYPES_H_WITH_UINTMAX *$/c\
@@ -63,7 +67,7 @@ s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
#define HAVE_INTTYPES_H_WITH_UINTMAX 1\
#endif
/^#undef HAVE_ISASCII *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_ISASCII 1\
#endif
/^#undef HAVE_ISWCTYPE *$/c\
@@ -79,7 +83,7 @@ s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
#define HAVE_ISWUPPER 1\
#endif
/^#undef HAVE_LANGINFO_CODESET *$/c\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_LANGINFO_CODESET 1\
#endif
s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/
@@ -87,7 +91,7 @@ s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/
/* #undef HAVE_LIBREADLINE */
s/^#undef HAVE_LIMITS_H *$/#define HAVE_LIMITS_H 1/
/^#undef HAVE_LOCALE_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_LOCALE_H 1\
#endif
/^#undef HAVE_LONG_LONG *$/c\
@@ -105,23 +109,31 @@ s/^#undef HAVE_LIMITS_H *$/#define HAVE_LIMITS_H 1/
s/^#undef HAVE_MEMCMP *$/#define HAVE_MEMCMP 1/
s/^#undef HAVE_MEMCPY *$/#define HAVE_MEMCPY 1/
/^#undef HAVE_MEMMOVE *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_MEMMOVE 1\
#endif
+/^#undef HAVE_MEMORY_H *$/c\
+#ifdef __DJGPP__\
+#define HAVE_MEMORY_H 1\
+#endif
s/^#undef HAVE_MEMSET *$/#define HAVE_MEMSET 1/
+/^#undef HAVE_MKSTEMP *$/c\
+#ifdef __DJGPP__\
+#define HAVE_MKSTEMP 1\
+#endif
s/^#undef HAVE_MKTIME *$/#define HAVE_MKTIME 1/
/^#undef HAVE_MPFR *$/c\
/* #undef HAVE_MPFR */
/^#undef HAVE_SETENV *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_SETENV 1\
#endif
/^#undef HAVE_SETLOCALE *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_SETLOCALE 1\
#endif
/^#undef HAVE_SNPRINTF *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_SNPRINTF 1\
#endif
/^#undef HAVE_SOCKADDR_STORAGE *$/c\
@@ -134,7 +146,7 @@ s/^#undef HAVE_MKTIME *$/#define HAVE_MKTIME 1/
#endif
s/^#undef HAVE_STDARG_H *$/#define HAVE_STDARG_H 1/
/^#undef HAVE_STDBOOL_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_STDBOOL_H 1\
#endif
/^#undef HAVE_STDDEF_H *$/c\
@@ -142,13 +154,21 @@ s/^#undef HAVE_STDARG_H *$/#define HAVE_STDARG_H 1/
#define HAVE_STDDEF_H 1\
#endif
/^#undef HAVE_STDINT_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_STDINT_H 1\
#endif
/^#undef HAVE_STDLIB_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_STDLIB_H 1\
#endif
+/^#undef HAVE_STRCASECMP *$/c\
+#ifdef __DJGPP__\
+#define HAVE_STRCASECMP 1\
+#endif
+/^#undef HAVE_STRCOLL *$/c\
+#ifdef __DJGPP__\
+#define HAVE_STRCOLL 1\
+#endif
s/^#undef HAVE_STRCHR *$/#define HAVE_STRCHR 1/
s/^#undef HAVE_STRERROR *$/#define HAVE_STRERROR 1/
/^#undef HAVE_STRFTIME *$/c\
@@ -163,29 +183,44 @@ s/^#undef HAVE_STRINGS_H *$/#define HAVE_STRINGS_H 1/
s/^#undef HAVE_STRING_H *$/#define HAVE_STRING_H 1/
/^#undef HAVE_STRNCASECMP *$/c\
#define HAVE_STRNCASECMP 1\
+#ifdef __EMX__\
+#define strncasecmp strnicmp\
+#endif
s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
/^#undef HAVE_STRTOUL *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_STRTOUL 1\
#endif
/^#undef HAVE_STRUCT_STAT_ST_BLKSIZE *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1\
#endif
+/^#undef HAVE_SYS_IOCTL_H *$/c\
+#ifdef __DJGPP__\
+#define HAVE_SYS_IOCTL_H 1\
+#endif
s/^#undef HAVE_SYSTEM *$/#define HAVE_SYSTEM 1/
/^#undef HAVE_SYS_PARAM_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_SYS_PARAM_H 1\
#endif
/^#undef HAVE_SYS_STAT_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__MINGW32__) || defined(__DJGPP__)\
#define HAVE_SYS_STAT_H 1\
#endif
/^#undef HAVE_SYS_TIME_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_SYS_TIME_H 1\
#endif
s/^#undef HAVE_SYS_TYPES_H *$/#define HAVE_SYS_TYPES_H 1/
+/^#undef HAVE_SYS_WAIT_H *$/c\
+#ifdef __DJGPP__\
+#define HAVE_SYS_WAIT_H 1\
+#endif
+/^#undef HAVE_TMPFILE *$/c\
+#ifdef __DJGPP__\
+#define HAVE_TMPFILE 1\
+#endif
/^#undef HAVE_TOWLOWER *$/c\
#ifdef __MINGW32__\
#define HAVE_TOWLOWER 1\
@@ -197,16 +232,16 @@ s/^#undef HAVE_SYS_TYPES_H *$/#define HAVE_SYS_TYPES_H 1/
s/^#undef HAVE_TZNAME *$/#define HAVE_TZNAME 1/
s/^#undef HAVE_TZSET *$/#define HAVE_TZSET 1/
/^#undef HAVE_UINTMAX_T *$/c\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_UINTMAX_T 1\
#endif
/^#undef HAVE_UNISTD_H *$/c\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_UNISTD_H 1\
#endif
s/^#undef HAVE_UNSIGNED_LONG_LONG *$/#define HAVE_UNSIGNED_LONG_LONG 1/
/^#undef HAVE_USLEEP *$/c\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define HAVE_USLEEP 1\
#endif
s/^#undef HAVE_VPRINTF *$/#define HAVE_VPRINTF 1/
@@ -238,13 +273,21 @@ s/^#undef HAVE_VPRINTF *$/#define HAVE_VPRINTF 1/
#ifdef __MINGW32__\
#define HAVE_WINT_T 1\
#endif
+/^#undef HAVE__BOOL *$/c\
+#ifdef __DJGPP__\
+#define HAVE__BOOL 1\
+#endif
/^#undef PRINTF_HAS_A_FORMAT *$/c\
#define PRINTF_HAS_A_FORMAT 1
+/^#undef PRINTF_HAS_F_FORMAT *$/c\
+#ifdef __DJGPP__\
+#define PRINTF_HAS_F_FORMAT 1\
+#endif
s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/
s/^#undef RETSIGTYPE *$/#define RETSIGTYPE void/
/^#.*RETSIGTYPE /a\
\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#include <limits.h>\
#endif
s/^#undef SIZEOF_UNSIGNED_INT *$/#define SIZEOF_UNSIGNED_INT 4/
@@ -258,11 +301,34 @@ s/^#undef TIME_WITH_SYS_TIME *$/#define
TIME_WITH_SYS_TIME 1/
/^\/\* Enable extensions on AIX 3, Interix. \*\//i\
/* This is required to compile Gnulib regex code. */\
-#if defined(__MINGW32__)\
+#if defined(__DJGPP__) || defined(__MINGW32__)\
#define _GNU_SOURCE 1\
#endif
s|^#undef PACKAGE_URL *$|#define PACKAGE_URL
"http://www.gnu.org/software/gawk/"|
$a\
-#define HAVE_POPEN_H 1
+#ifdef __DJGPP__\
+/* gcc no longer includes this by default */\
+# include <sys/version.h>\
+\
+/* Library search path */\
+# if (__DJGPP__ > 2 || __DJGPP_MINOR__ >= 3)\
+# define DEFPATH ".;/dev/env/DJDIR/share/awk"\
+# else\
+# define DEFPATH ".;c:/lib/awk;c:/gnu/lib/awk"\
+# endif\
+\
+/* Function prototype. */\
+#include <stdbool.h>\
+extern bool is_valid_identifier(const char *name);\
+#endif\
+\
+#ifndef __DJGPP__\
+#define HAVE_POPEN_H 1\
+#endif\
+\
+#if defined(__EMX__)\
+#define strcasecmp stricmp\
+#define strncasecmp strnicmp\
+#endif
-----------------------------------------------------------------------
Summary of changes:
pc/ChangeLog | 5 +++
pc/config.h | 119 ++++++++++++++++++++++++++++++++++++++--------------------
pc/config.sed | 112 ++++++++++++++++++++++++++++++++++++++++++------------
3 files changed, 172 insertions(+), 64 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, master, updated. gawk-4.1.0-4776-g1887e22d,
Arnold Robbins <=