gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, array-iface, updated. 71157f7f5f2fb9bf0f


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, array-iface, updated. 71157f7f5f2fb9bf0fe588135485a8dcec322786
Date: Fri, 30 Nov 2012 12:27:54 +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, array-iface has been updated
       via  71157f7f5f2fb9bf0fe588135485a8dcec322786 (commit)
       via  242ee720a6387f87e05d3eb8e30d2c7061cbf8ef (commit)
       via  f2d137e07671bb1158f81e5a772c3f994c69953f (commit)
       via  880d9f5b287a8d44227aed80f53395f19c2283a2 (commit)
       via  db20bfeba4c618f380315e18e6433fb6b8e63c26 (commit)
       via  a2e0c35036b884486d05cbb4f71fc041dd30b98b (commit)
       via  d991932774cf1a8e82affcbf88c08122eafc8588 (commit)
      from  d3699b66e430f40943242dcc2b2687e871207471 (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=71157f7f5f2fb9bf0fe588135485a8dcec322786

commit 71157f7f5f2fb9bf0fe588135485a8dcec322786
Merge: d3699b6 242ee72
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Nov 30 14:27:35 2012 +0200

    Merge branch 'master' into array-iface

diff --cc ChangeLog
index 6cd9889,36af31c..af7e733
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,102 -1,30 +1,129 @@@
+ 2012-11-30         Arnold D. Robbins     <address@hidden>
+ 
+       * regcomp.c, regex.c, regex_internal.h, regexec.c: Sync
+       with GLIBC.  Why not.
+ 
+       * gawkapi.c (awk_bool_t): Change into an enum with awk_false and
+       awk_true values.
+ 
+ 2012-01-30         Andrew J. Schorr     <address@hidden>
+ 
+       Further cleanups of macros in awk.h
+ 
+       * awk.h (_r, _t): Remove declarations.
+       (unref, m_force_string): Remove macros.
+       (r_unref): Move declaration.
+       (r_force_string): Remove declaration.
+       (DEREF, force_string, force_number, unref): Now inline functions.
+       (POP_STRING, TOP_STRING): Back to macros.
+       * eval.c (_t): Remove definition.
+       * main.c (_r): Remove definition.
+       * node.c (r_force_string): Remove.
+ 
+ 2012-11-27         Arnold D. Robbins     <address@hidden>
+ 
+       * builtin.c (do_fflush): Make fflush() and fflush("") both
+       flush everything. See the comment in the code.
+ 
 +2012-11-26         Arnold D. Robbins     <address@hidden>
 +
 +      * awk.h (Node_old_ext_func, Op_old_ext_func): New enum values.
 +      * configure.ac: Use -export-dynamic if supported for old extension
 +      mechanism.
 +      * eval.c (nodeytpes): Add Node_old_ext_func.
 +      (optypetab): Add Op_old_ext_func.
 +      * ext.c (make_old_ext_builtin): "New" function.
 +      * interpret.h: Special case Op_old_ext_builtin. Add checks for
 +      Node_old_ext_func.
 +      * msg.c: Adjust placement of a comment.
 +
 +2012-05-02         John Haque      <address@hidden>
 +
 +      * str_array.c (str_copy): Initialize next pointer in the linked list
 +      to avoid memory corruption.
 +      * int_array.c (int_copy): Ditto.
 +
 +2012-04-21         John Haque      <address@hidden>
 +
 +      Shutdown routine for a dynamic extension.
 +
 +      * awk.h (SRCFILE): New field fini_func.
 +      * ext.c (load_ext): Takes an additional argument to look up and
 +      save the clean up routine in SRCFILE struct. 
 +      (INIT_FUNC, FINI_FUNC): Defines for default init and fini routine
 +      names.
 +      (do_ext): Use default for the name of the init or fini routine if
 +      one is not supplied. Adjust call to load_ext().
 +      (close_extensions): Execute fini routines.
 +      * interpret.h (Op_at_exit): Call close_extensions().
 +      * msg.c (gawk_exit): Ditto.
 +      * debug.c (close_all): Ditto.
 +      * main.c (main): Adjust call to load_ext().
 +      * awkgram.y (tokentab): Specify 2nd and 3rd optional arguments
 +      for the extension() built-in.
 +
 +      Unrelated:
 +
 +      * interpret.h (Op_arrayfor_init): Use assoc_length for array size. 
 +      
 +2012-04-19         John Haque      <address@hidden>
 +
 +      Enhanced array interface to support transparent implementation
 +      using external storage and ...
 +
 +      * awk.h (astore): Optional post-assignment store routine for
 +      array subscripts.
 +      (Op_subscript_assign): New opcode to support the store routine.
 +      (alength): New array interface routine for array length.
 +      (assoc_length): New macro.
 +      (assoc_empty): Renamed from array_empty.
 +      * awkgram.y (snode): Append Op_subscript_assign opcode if
 +      (g)sub variable is an array element.
 +      (mk_getline): Same for getline variable.
 +      (mk_assignment): Same if assigning to an array element.
 +      * field.c (set_element): Call store routine if needed.
 +      * builtin.c (do_match): Ditto.
 +      (do_length): Use length routine for array size.
 +      * symbol.c (print_vars): Ditto.
 +      * array.c (null_length): Default function for array length interface.
 +      (asort_actual): Call store routine if defined.
 +      (asort_actual, assoc_list): Use length routine for array size.
 +      (null_array_func): Add length and store routine entries.
 +      * str_array.c (str_array_func): Same.
 +      * cint_array.c (cint_array_func): Same.
 +      * int_array.c (int_array_func): Same. 
 +      * eval.c (optypetab): Add Op_subscript_assign.
 +      * profile.c (pprint): Add case Op_subscript_assign.
 +      * interpret.h (set_array, set_idx): New variables to keep track
 +      of an array element with store routine.
 +      (Op_sub_array, Op_subscript_lhs, Op_store_sub, Op_subscript_assign):
 +      Add code to handle array store routine.
 +      * debug.c (print_symbol, print_array, cmp_val, watchpoint_triggered,
 +      initialize_watch_item): Use length routine for array size.
 +
 +      * awk.h (assoc_kind_t): New typedef for enum assoc_list_flags.
 +      (sort_context_t): Renamed from SORT_CONTEXT.
 +      * array.c (asort_actual, assoc_sort): Adjust.
 +      * cint_array.c (cint_list, tree_list, leaf_list): Adjust.
 +      * int_array.c (int_list): Adjust.
 +      * str_array.c (str_list): Adjust.
 +
 +2012-04-18         John Haque      <address@hidden>
 +
 +      * awk.h (atypeof, AFUNC): New macros.
 +      (afunc_t): Renamed typedef from array_ptr.
 +      * array.c (register_array_func, null_lookup): Use AFUNC macro
 +      instead of hard-coded index for array functions.
 +      (asort_actual): Unref null array elements before overwriting.
 +      (force_array): Renamed from get_array.
 +      (null_array): Renamed from init_array. Also initialize flags to 0.
 +      (array_types): Renamed from atypes.
 +      (num_array_types): Renamed from num_atypes.
 +      * interpret.h (r_interpret): In case Op_sub_array, unref null array 
element.
 +      * str_array.c (str_array_init): Reworked for (re)initialization of 
array.
 +      * int_array.c (int_array_init): Ditto.
 +      * cint_array.c (cint_array_init): Ditto.
 +
  2012-11-24         Arnold D. Robbins     <address@hidden>
  
        Directory cleanup.
diff --cc awk.h
index a01f28f,a35484f..81515c1
--- a/awk.h
+++ b/awk.h
@@@ -1044,14 -1031,9 +1044,11 @@@ extern NODE *(*str2number)(NODE *)
  extern NODE *(*format_val)(const char *, int, NODE *);
  extern int (*cmp_numbers)(const NODE *, const NODE *);
  
 -typedef int (*Func_pre_exec)(INSTRUCTION **);
 -typedef void (*Func_post_exec)(INSTRUCTION *);
 +/* built-in array types */
 +extern afunc_t str_array_func[];
 +extern afunc_t cint_array_func[];
 +extern afunc_t int_array_func[];
  
- extern NODE *_t;      /* used as temporary in macros */
- extern NODE *_r;      /* used as temporary in macros */
- 
  extern BLOCK nextfree[];
  extern bool field0_valid;
  
diff --cc extension/ChangeLog
index 932eb3a,fb5a79e..5b648f5
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@@ -1,24 -1,8 +1,29 @@@
+ 2012-11-30         Arnold D. Robbins     <address@hidden>
+ 
+       * filefuncs.c readdir.c, revoutput.c, revtwoway.c, rwarray.c,
+       rwarray0.c, testext.c: Use awk_true and awk_false instead of 1 and 0.
+ 
 +2012-11-26         Arnold D. Robbins     <address@hidden>
 +
 +      * bindarr.c, fileop.c, sparr.c: Make them compile.
 +      * steps: Reinstated and updated.
 +      * testsparr.awk: Add call to extension().
 +
 +2011-05-03         John Haque     <address@hidden>
 +
 +      * fileop.c, record.awk, testrecord.sh: New files.
 +      * steps: Updated.
 +
 +2011-05-02         John Haque     <address@hidden>
 +
 +      * bindarr.c, dbarray.awk, testdbarray.awk: New files.
 +      * steps: Updated.
 +
 +2011-04-24         John Haque     <address@hidden>
 +
 +      * spec_array.c, spec_array.h, sparr.c, testsparr.awk: New files.
 +      * steps: Updated.
 +
  2012-11-21         Arnold D. Robbins     <address@hidden>
  
        * filefuncs.c (do_stat): Optional third argument indicates to

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

Summary of changes:
 ChangeLog             |   27 +++
 NEWS                  |    2 +
 TODO                  |   12 +
 awk.h                 |   62 +++---
 builtin.c             |   26 ++-
 doc/ChangeLog         |    8 +
 doc/awkcard.in        |   44 ++--
 doc/gawk.1            |    4 +-
 doc/gawk.info         |  612 +++++++++++++++++++++++++------------------------
 doc/gawk.texi         |   24 ++-
 eval.c                |    1 -
 extension/ChangeLog   |    5 +
 extension/filefuncs.c |    8 +-
 extension/readdir.c   |    8 +-
 extension/revoutput.c |   14 +-
 extension/revtwoway.c |    9 +-
 extension/rwarray.c   |   66 +++---
 extension/rwarray0.c  |   60 +++---
 extension/testext.c   |    2 +-
 gawkapi.h             |    5 +-
 main.c                |    4 +-
 node.c                |   15 --
 regcomp.c             |   15 +-
 regex.c               |    5 +-
 regex_internal.h      |    4 +-
 regexec.c             |    8 +-
 26 files changed, 560 insertions(+), 490 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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