gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, extgawk, updated. a9c75046c071c9a67455ef


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, extgawk, updated. a9c75046c071c9a67455ef27be44cac0b64be3c4
Date: Tue, 05 Jun 2012 20:18:32 +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, extgawk has been updated
       via  a9c75046c071c9a67455ef27be44cac0b64be3c4 (commit)
      from  a0f0d2b98fa88ef98f7c7100795869e0bad5b08d (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=a9c75046c071c9a67455ef27be44cac0b64be3c4

commit a9c75046c071c9a67455ef27be44cac0b64be3c4
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Jun 5 23:17:26 2012 +0300

    Minor edits in load_ext.

diff --git a/ChangeLog b/ChangeLog
index 52d677a..16cd1de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-05         Arnold D. Robbins     <address@hidden>
+
+       * ext.c (load_ext): Remove use of RTLD_GLOBAL. Not needed in new
+       scheme. Clean up error messages.
+
 2012-06-04         Arnold D. Robbins     <address@hidden>
 
        * configure.ac: Remove use of -export-dynamic for GCC.
diff --git a/ext.c b/ext.c
index 0da6174..66ea7fb 100644
--- a/ext.c
+++ b/ext.c
@@ -69,28 +69,24 @@ load_ext(const char *lib_name, const char *init_func)
                fatal(_("extensions are not allowed in sandbox mode"));
 
        if (do_traditional || do_posix)
-               fatal(_("`extension' is a gawk extension"));
-
-#ifdef RTLD_GLOBAL
-       flags |= RTLD_GLOBAL;
-#endif
+               fatal(_("-l / @load / `extension' are gawk extensions"));
 
        if ((dl = dlopen(lib_name, flags)) == NULL)
-               fatal(_("extension: cannot open library `%s' (%s)\n"), lib_name,
+               fatal(_("load_ext: cannot open library `%s' (%s)\n"), lib_name,
                      dlerror());
 
        /* Per the GNU Coding standards */
        gpl_compat = (int *) dlsym(dl, "plugin_is_GPL_compatible");
        if (gpl_compat == NULL)
-               fatal(_("extension: library `%s': does not define 
`plugin_is_GPL_compatible' (%s)\n"),
+               fatal(_("load_ext: library `%s': does not define 
`plugin_is_GPL_compatible' (%s)\n"),
                                lib_name, dlerror());
        func = (int (*)(const gawk_api_t *const, awk_ext_id_t)) dlsym(dl, 
init_func);
        if (func == NULL)
-               fatal(_("extension: library `%s': cannot call function `%s' 
(%s)\n"),
+               fatal(_("load_ext: library `%s': cannot call function `%s' 
(%s)\n"),
                                lib_name, init_func, dlerror());
 
        if ((*func)(& api_impl, NULL /* ext_id */) == 0) {
-               warning(_("extension: library `%s' initialization routine `%s' 
failed\n"),
+               warning(_("load_ext: library `%s' initialization routine `%s' 
failed\n"),
                                lib_name, init_func);
                return make_number(-1);
        }

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

Summary of changes:
 ChangeLog |    5 +++++
 ext.c     |   14 +++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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