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-1795-g87eb0b


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1795-g87eb0bd
Date: Thu, 26 May 2016 16:15:22 +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, master has been updated
       via  87eb0bd877d0503274576c94671f0b4297791b36 (commit)
       via  41412a86f2ca0baf908fe0b2e4bcc396f66989ae (commit)
      from  7e6d158fcba7c80e982c70617cc646cbf2e0461b (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=87eb0bd877d0503274576c94671f0b4297791b36

commit 87eb0bd877d0503274576c94671f0b4297791b36
Merge: 7e6d158 41412a8
Author: Andrew J. Schorr <address@hidden>
Date:   Thu May 26 12:15:12 2016 -0400

    Merge branch 'gawk-4.1-stable'

diff --cc ChangeLog
index f92bf52,8d408e1..0f0e894
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,10 -1,19 +1,26 @@@
+ 2016-05-26         Andrew J. Schorr     <address@hidden>
+ 
+       * awk.h (get_actual_argument): Add an initial argument containing the
+       (NODE *) previously returned by get_argument. This allows us to
+       eliminate a call to get_argument from inside get_actual_argument.
+       (get_scalar_argument, get_array_argument): Change macro definition to
+       add an initial node argument to pass through to get_actual_argument.
+       * ext.c (get_actual_argument): Add initial (NODE *) argument to contain
+       the value previously returned by get_argument. This allows us to
+       avoid repeating the call to get_argument. We can also eliminate the
+       check for a NULL value, since the caller did that already.
+       * gawkapi.c (api_get_argument): Pass (NODE *) returned by get_argument
+       to get_array_argument and get_scalar_argument.
+       (api_set_argument): Pass (NODE *) returned by get_argument to
+       get_array_argument.
+ 
 +2016-05-25         Manuel Collado        <address@hidden>.
 +
 +      * gawkapi.c (api_nonfatal): New function.
 +      (api_impl): Include it.
 +      * gawkapi.h (struct gawk_api): Add api_nonfatal member.
 +      (nonfatal): New macro.
 +
  2016-05-12         Arnold Robbins       <address@hidden>
  
        * str_array.c (str_lookup): Remove MAYBE_NUM from subscript flags.
diff --cc awk.h
index c643581,ecc87f1..8a25dcc
--- a/awk.h
+++ b/awk.h
@@@ -1445,13 -1435,15 +1445,13 @@@ extern NODE **r_get_field(NODE *n, Func
  /* ext.c */
  extern NODE *do_ext(int nargs);
  void load_ext(const char *lib_name);  /* temporary */
 -extern NODE *load_old_ext(SRCFILE *s, const char *init_func, const char 
*fini_func, NODE *obj);
  extern void close_extensions(void);
  #ifdef DYNAMIC
 -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(int, bool, bool);
- #define get_scalar_argument(i, opt)  get_actual_argument((i), (opt), false)
- #define get_array_argument(i, opt)   get_actual_argument((i), (opt), true)
+ 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)
  #endif
  /* field.c */
  extern void init_fields(void);

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

Summary of changes:
 ChangeLog |   16 ++++++++++++++++
 awk.h     |    6 +++---
 ext.c     |   16 +---------------
 gawkapi.c |    6 +++---
 4 files changed, 23 insertions(+), 21 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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