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. gawk-4.1.0-3636-gaa6dc9


From: Eli Zaretskii
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-3636-gaa6dc9f
Date: Sat, 2 Feb 2019 06:22:43 -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, master has been updated
       via  aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d (commit)
      from  f0be506c0b0c2a220e0a3112dca91ec352aad530 (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=aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d

commit aa6dc9f20f3c01b1ef5881fb1217c6c45a39983d
Author: Eli Zaretskii <address@hidden>
Date:   Sat Feb 2 13:21:36 2019 +0200

    Cleanup debug.c: remove one __MINGW32__ conditional.

diff --git a/ChangeLog b/ChangeLog
index 1007bb8..8ef3512 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2019-02-02  Eli Zaretskii  <address@hidden>
 
+       * debug.c (execvp) [__MINGW32__]: Redirect to w32_execvp.
+       (restart): No need for MinGW-specific code anymore.
+
        * nonposix.h: If setlocale is already a defined macro, #undef it
        before redefining.  This avoids compilation warnings if someone
        tries to compile Gawk with Gettext's libintl.h, which redirects
diff --git a/debug.c b/debug.c
index 981f95b..452b6b6 100644
--- a/debug.c
+++ b/debug.c
@@ -31,6 +31,7 @@
 #endif
 
 #ifdef __MINGW32__
+#define execvp(p,a) w32_execvp(p,a)
 int w32_execvp(const char *, char **);
 #endif
 
@@ -2918,11 +2919,7 @@ restart(bool run)
        close_all();
 
        /* start a new process replacing the current process */
-#ifdef __MINGW32__
-       w32_execvp(d_argv[0], d_argv);
-#else
        execvp(d_argv[0], d_argv);
-#endif
 
        /* execvp failed !!! */
        fprintf(out_fp, _("Failed to restart debugger"));

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

Summary of changes:
 ChangeLog | 3 +++
 debug.c   | 5 +----
 2 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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