gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, constants, updated. ee30213e1b93fc708951


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, constants, updated. ee30213e1b93fc708951afd105d367c75ae067b8
Date: Mon, 11 Mar 2013 20:53:24 +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, constants has been updated
       via  ee30213e1b93fc708951afd105d367c75ae067b8 (commit)
       via  891b30a5417f93c3fc5e5aa4d54e270282bea380 (commit)
       via  a7c502a756732ec9a1773d6169376bb7b25f4308 (commit)
      from  4fb6545ec930955d38a0379890ece8e785f674b3 (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=ee30213e1b93fc708951afd105d367c75ae067b8

commit ee30213e1b93fc708951afd105d367c75ae067b8
Merge: 4fb6545 891b30a
Author: Arnold D. Robbins <address@hidden>
Date:   Mon Mar 11 22:53:04 2013 +0200

    Merge branch 'master' into constants

diff --cc ChangeLog
index 41c928b,534b124..423659e
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,63 -1,9 +1,67 @@@
  2013-03-11         Arnold D. Robbins     <address@hidden>
  
+       * re.c (check_bracket_exp): Make handling of embedded ] in
+       regexp smarter. Thanks to Ed Morton <address@hidden>
+       for reporting the bug.
+ 
 +      * eval.c (flags2str): Add entry for VAR_CONST. Duh.
 +
 +2013-03-10         Arnold D. Robbins     <address@hidden>
 +
 +      Change how constants are handled; use a flag in the value, not
 +      a new node type.  Add ":=" assignment operator to create constants
 +      at the awk level. Array elements need work. Still needs documenting.
 +
 +      * awk.h (Node_var_const): Removed.
 +      (VAR_CONST): New flag.
 +      (Op_assign_const): New op code.
 +      (dupnode): If value is a constant, call r_dupnode.
 +      * awkgram.y (ASSIGN_CONST): New token.
 +      (statement): Don't check Node_var_const.
 +      (assign): Allow ASSIGN_CONST.
 +      (yylex): Return ASSIGN_CONST for ":=".
 +      (valinfo): Enhance for constant values.
 +      (mk_assignment): Check for Op_assign_const.
 +      * builtin.c (do_sub): Disallow assignment in sub/gsub to constants.
 +      * debug.c (print_symbol, do_set_var, watchpoint_triggered,
 +      initialize_watch, print_memory, do_print_f): Remove use of
 +      Node_var_const.
 +      * eval.c (nodetypes, setup_frame): Remove Node_var_const.
 +      (optypetab): Add Op_assign_const;
 +      (r_get_lhs, op_assign): Check value for VAR_CONST instead of node type.
 +      * gawkapi.c (sym_update_real): Update value with flag, not node type.
 +      * interpret.h (r_interpret): Check for flag value where appropriate
 +      instead of checking node type. Add op_assign_const.
 +      * io.c (do_getline_redir, do_getline): Check for constant.
 +      * node.c (r_dupnode): If a constant, copy the value, don't up the
 +      reference count.
 +      * profile.c (pprint): Remove Node_var_const.
 +      * symbol.c (destroy_symbol, make_symbol, print_vars): Remove
 +      Node_var_const.
 +
 +2013-03-04         Arnold D. Robbins     <address@hidden>
 +
 +      Provide the API with the ability to create true constants.
 +
 +      * awk.h (Node_var_const): New nodetype.
 +      * awkgram.y (statement): Don't allow a constant as the for loop
 +      control variable.
 +      * debug.c (print_symbol, do_set_var, watchpoint_triggered): Handle
 +      Node_var_const.
 +      (initialize_watch_item, print_memory, do_print_f): Ditto.
 +      * eval.c (nodetypes, setup_frame): Add Node_var_const.
 +      (r_get_lhs, op_assign): Assigning to constant is fatal error.
 +      * gawkapi.c (sym_update_real): Renamed from api_sym_update_real,
 +      add is_const parameter. Handle it.
 +      (api_sym_update, api_sym_constant): Call sym_update_real.
 +      (api_impl): Add new element.
 +      * gawk_api.h: Add new function pointer for sym_constant.
 +      (sym_constant): New macro.
 +      * interpret.h: Support Node_var_const.
 +      * profile.c (pprint): Support Node_var_const.
 +      * symbol.c (destroy_symbol, make_symbol, print_vars): Support
 +      Node_var_const.
 +
  2013-02-28         Arnold D. Robbins     <address@hidden>
  
        Cause profiling / pretty printing to include a list of
diff --cc test/ChangeLog
index 3e72ec5,031bbd1..c1f1d1b
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@@ -1,16 -1,8 +1,21 @@@
+ 2013-03-11         Arnold D. Robbins     <address@hidden>
+ 
+       * Makefile.am (colonwarn): New test.
+       * colonwarn.awk, colonwarn.in, colonwarn.ok: New files.
+ 
 +2013-03-10         Arnold D. Robbins     <address@hidden>
 +
 +      * Makefile.am (assignconst): Add more tests. Put data in "15"
 +      which uses getline.
 +      * assignconst.awk, assignconst.ok: Update with more tests.
 +
 +2013-03-04         Arnold D. Robbins     <address@hidden>
 +
 +      * assignconst.awk, assignconst.ok: New file.
 +      * Makefile.am (EXTRA_DIST): Added assignconst.awk, assignconst.ok.
 +      (SHLIB_TESTS): Added assignconst.
 +      (assignconst): Added test.
 +
  2013-02-26         Arnold D. Robbins     <address@hidden>
  
        * parseme.ok: Update after change in grammar. Now with new and

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

Summary of changes:
 ChangeLog          |    4 ++++
 re.c               |   18 ++++++++++++++++--
 test/ChangeLog     |    5 +++++
 test/Makefile.am   |   12 +++++++++++-
 test/Makefile.in   |   12 +++++++++++-
 test/colonwarn.awk |    4 ++++
 test/colonwarn.in  |    1 +
 test/colonwarn.ok  |    3 +++
 8 files changed, 55 insertions(+), 4 deletions(-)
 create mode 100644 test/colonwarn.awk
 create mode 100644 test/colonwarn.in
 create mode 100644 test/colonwarn.ok


hooks/post-receive
-- 
gawk



reply via email to

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