gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-896


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-896-g9a18093
Date: Fri, 27 May 2016 01:57:32 +0000 (UTC)

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, gawk-4.1-stable has been updated
       via  9a1809359241c38d2814e287d302a346e85c6ec4 (commit)
      from  14d958c82b939d26ad37ab0c0debfedf780404d0 (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=9a1809359241c38d2814e287d302a346e85c6ec4

commit 9a1809359241c38d2814e287d302a346e85c6ec4
Author: Andrew J. Schorr <address@hidden>
Date:   Thu May 26 21:57:11 2016 -0400

    Remove useless "optional" argument to get_actual_argument.

diff --git a/ChangeLog b/ChangeLog
index 4b6e88d..59b96fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-05-26         Andrew J. Schorr     <address@hidden>
+ 
+       * awk.h (get_actual_argument): Remove unused "optional" argument.
+       (get_scalar_argument, get_array_argument): Change macro definition to
+       remove 3rd "optional" argument.
+       * ext.c (get_actual_argument): Remove unused "optional" argument.
+       * gawkapi.c (api_get_argument, api_set_argument): Remove unused final
+       argument to get_array_argument and get_scalar_argument.
+
 2016-05-26         Arnold D. Robbins     <address@hidden>
 
        * awk.h [fatal]: Make parentheses and use of indirection
diff --git a/awk.h b/awk.h
index 8f3b1d4..7323b6c 100644
--- a/awk.h
+++ b/awk.h
@@ -1441,9 +1441,9 @@ extern void close_extensions(void);
 extern void make_old_builtin(const char *, NODE *(*)(int), int);
 extern awk_bool_t make_builtin(const awk_ext_func_t *);
 extern NODE *get_argument(int);
-extern NODE *get_actual_argument(NODE *, int, bool, bool);
-#define get_scalar_argument(n, i, opt)  get_actual_argument((n), (i), (opt), 
false)
-#define get_array_argument(n, i, opt)   get_actual_argument((n), (i), (opt), 
true)
+extern NODE *get_actual_argument(NODE *, int, bool);
+#define get_scalar_argument(n, i)  get_actual_argument((n), (i), false)
+#define get_array_argument(n, i)   get_actual_argument((n), (i), true)
 #endif
 /* field.c */
 extern void init_fields(void);
diff --git a/ext.c b/ext.c
index c3e34b1..0e6da3d 100644
--- a/ext.c
+++ b/ext.c
@@ -330,11 +330,11 @@ get_argument(int i)
 
 /*
  * get_actual_argument --- get the i'th scalar or array argument of a
- *     dynamically linked function, allowed to be optional.
+ *     dynamically linked function.
  */
 
 NODE *
-get_actual_argument(NODE *t, int i, bool optional, bool want_array)
+get_actual_argument(NODE *t, int i, bool want_array)
 {
        char *fname;
        INSTRUCTION *pc;
diff --git a/gawkapi.c b/gawkapi.c
index 779506c..45bbadb 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -82,7 +82,7 @@ api_get_argument(awk_ext_id_t id, size_t count,
 
 array:
        /* get the array here */
-       arg = get_array_argument(arg, count, false);
+       arg = get_array_argument(arg, count);
        if (arg == NULL)
                return awk_false;
 
@@ -90,7 +90,7 @@ array:
 
 scalar:
        /* at this point we have a real type that is not an array */
-       arg = get_scalar_argument(arg, count, false);
+       arg = get_scalar_argument(arg, count);
        if (arg == NULL)
                return awk_false;
 
@@ -120,7 +120,7 @@ api_set_argument(awk_ext_id_t id,
            || arg->type != Node_var_new)
                return awk_false;
 
-       arg = get_array_argument(arg, count, false);
+       arg = get_array_argument(arg, count);
        if (arg == NULL)
                return awk_false;
 

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

Summary of changes:
 ChangeLog |    9 +++++++++
 awk.h     |    6 +++---
 ext.c     |    4 ++--
 gawkapi.c |    6 +++---
 4 files changed, 17 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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