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. 9b8770d74f2e1cfd719fa0d


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. 9b8770d74f2e1cfd719fa0dbf21c676d1c64e8ea
Date: Fri, 31 Aug 2012 06:54:23 +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  9b8770d74f2e1cfd719fa0dbf21c676d1c64e8ea (commit)
      from  17edae8fbae125b54e85c2be94f198f228465f81 (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=9b8770d74f2e1cfd719fa0dbf21c676d1c64e8ea

commit 9b8770d74f2e1cfd719fa0dbf21c676d1c64e8ea
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Aug 31 09:54:04 2012 +0300

    Fix so will compile if no dynamic lib support.

diff --git a/ChangeLog b/ChangeLog
index 4297866..fa0f499 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-08-31         Arnold D. Robbins     <address@hidden>
+
+       * gawkapi.c: Wrap various bits in #ifdef DYNAMIC so that
+       gawk will compile on systems without dynamic loading.
+
 2012-08-24         Arnold D. Robbins     <address@hidden>
 
        Add version facility to API. Thanks to Manuel Collado
diff --git a/gawkapi.c b/gawkapi.c
index fe6eefc..5d372bb 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -38,6 +38,7 @@ static awk_bool_t
 api_get_argument(awk_ext_id_t id, size_t count,
                        awk_valtype_t wanted, awk_value_t *result)
 {
+#ifdef DYNAMIC
        NODE *arg;
 
        if (result == NULL)
@@ -93,6 +94,9 @@ scalar:
                return false;
 
        return node_to_awk_value(arg, result, wanted);
+#else
+       return false;
+#endif
 }
 
 static awk_bool_t
@@ -100,6 +104,7 @@ api_set_argument(awk_ext_id_t id,
                size_t count,
                awk_array_t new_array)
 {
+#ifdef DYNAMIC
        NODE *arg;
        NODE *array = (NODE *) new_array;
 
@@ -121,6 +126,9 @@ api_set_argument(awk_ext_id_t id,
        freenode(array);
 
        return true;
+#else
+       return false;
+#endif
 }
 
 /* awk_value_to_node --- convert a value into a NODE */
@@ -299,7 +307,11 @@ api_add_ext_func(awk_ext_id_t id,
        (void) id;
        (void) namespace;
 
+#ifdef DYNAMIC
        return make_builtin(func);
+#else
+       return false;
+#endif
 }
 
 /* Stuff for exit handler - do it as linked list */
@@ -984,7 +996,7 @@ api_release_value(awk_ext_id_t id, awk_value_cookie_t value)
  * Register a version string for this extension with gawk.
  */
 
-static struct version_info {
+struct version_info {
        const char *version;
        struct version_info *next;
 };

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

Summary of changes:
 ChangeLog |    5 +++++
 gawkapi.c |   14 +++++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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