gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. 629dd814b6e24e1d5651a82


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. 629dd814b6e24e1d5651a82cb53783e651b5ec74
Date: Tue, 22 Jan 2013 19:17:46 +0000

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  629dd814b6e24e1d5651a82cb53783e651b5ec74 (commit)
       via  b524848350bded2a8a05673b679dc707eae378b4 (commit)
      from  e2d1cb477ed8359991efa29024ca117ca2674725 (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=629dd814b6e24e1d5651a82cb53783e651b5ec74

commit 629dd814b6e24e1d5651a82cb53783e651b5ec74
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Jan 22 21:17:28 2013 +0200

    More portability.

diff --git a/extension/ChangeLog b/extension/ChangeLog
index 5b364ac..e2490e9 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,7 +1,15 @@
 2013-01-22         Arnold D. Robbins     <address@hidden>
 
-       * gawkfts.c (S_ISREG): Define macro if not defined. Portability.
-       * inplace.c (S_ISREG): Ditto.
+       Improve portability. We hope.
+
+       * gawkfts.c (S_ISREG): Define macro if not defined.
+       (_BSD_SOURCE): Define for use with c99 compiler driver.
+       * inplace.c (S_ISREG): Define macro if not defined.
+       (_XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED): Define for use with c99
+       compiler driver.
+       * filefuncs.c (_BSD_SOURCE): Define for use with c99 compiler driver.
+       * readfile.c (_BSD_SOURCE): Define for use with c99 compiler driver.
+       * revtwoway.c (_BSD_SOURCE): Define for use with c99 compiler driver.
 
 2013-01-18         Arnold D. Robbins     <address@hidden>
 
diff --git a/extension/filefuncs.c b/extension/filefuncs.c
index 4f7173b..123aad3 100644
--- a/extension/filefuncs.c
+++ b/extension/filefuncs.c
@@ -34,6 +34,8 @@
 #include <config.h>
 #endif
 
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <assert.h>
 #include <errno.h>
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index 1ef9879..2a03b4f 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -39,6 +39,8 @@ static char sccsid[] = "@(#)fts.c     8.6 (Berkeley) 8/14/94";
 #include <config.h>
 #endif
 
+#define _BSD_SOURCE
+
 /* #include "namespace.h" */
 #ifndef ZOS_USS
 #include <sys/param.h>
diff --git a/extension/inplace.c b/extension/inplace.c
index e09f900..ded4746 100644
--- a/extension/inplace.c
+++ b/extension/inplace.c
@@ -27,6 +27,9 @@
 #include <config.h>
 #endif
 
+#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED
+
 #include <stdio.h>
 #include <assert.h>
 #include <errno.h>
diff --git a/extension/readfile.c b/extension/readfile.c
index 6c24d86..3e26a7e 100644
--- a/extension/readfile.c
+++ b/extension/readfile.c
@@ -35,6 +35,8 @@
 #include <config.h>
 #endif
 
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <assert.h>
 #include <errno.h>
diff --git a/extension/revtwoway.c b/extension/revtwoway.c
index 13f0e77..062a178 100644
--- a/extension/revtwoway.c
+++ b/extension/revtwoway.c
@@ -31,6 +31,8 @@
 #include <config.h>
 #endif
 
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=b524848350bded2a8a05673b679dc707eae378b4

commit b524848350bded2a8a05673b679dc707eae378b4
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Jan 22 20:45:40 2013 +0200

    Improve portability.

diff --git a/extension/ChangeLog b/extension/ChangeLog
index 2c73699..5b364ac 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-22         Arnold D. Robbins     <address@hidden>
+
+       * gawkfts.c (S_ISREG): Define macro if not defined. Portability.
+       * inplace.c (S_ISREG): Ditto.
+
 2013-01-18         Arnold D. Robbins     <address@hidden>
 
        * readfile.c (do_readfile): Free `text' if read fails. Thanks to
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index 2b47275..1ef9879 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -57,6 +57,10 @@ static char sccsid[] = "@(#)fts.c    8.6 (Berkeley) 8/14/94";
 #include <string.h>
 #include <unistd.h>
 
+#if ! defined(S_ISREG) && defined(S_IFREG)
+#define        S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
 /*
 #if ! HAVE_NBTOOL_CONFIG_H
 #define        HAVE_STRUCT_DIRENT_D_NAMLEN
diff --git a/extension/inplace.c b/extension/inplace.c
index 20682ea..e09f900 100644
--- a/extension/inplace.c
+++ b/extension/inplace.c
@@ -44,6 +44,10 @@
 #define _(msgid)  gettext(msgid)
 #define N_(msgid) msgid
 
+#if ! defined(S_ISREG) && defined(S_IFREG)
+#define        S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
 static const gawk_api_t *api;  /* for convenience macros to work */
 static awk_ext_id_t *ext_id;
 static const char *ext_version = "inplace extension: version 1.0";

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

Summary of changes:
 extension/ChangeLog   |   13 +++++++++++++
 extension/filefuncs.c |    2 ++
 extension/gawkfts.c   |    6 ++++++
 extension/inplace.c   |    7 +++++++
 extension/readfile.c  |    2 ++
 extension/revtwoway.c |    2 ++
 6 files changed, 32 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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