gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-863-g2f7402


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-863-g2f7402e
Date: Sun, 05 Oct 2014 05:22:37 +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, comment has been updated
       via  2f7402ec4b65a2546373403fa701a29d7482cf3f (commit)
      from  abce1669d0d0e571687b73db8810a9a3a3a3d8e5 (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=2f7402ec4b65a2546373403fa701a29d7482cf3f

commit 2f7402ec4b65a2546373403fa701a29d7482cf3f
Author: Arnold D. Robbins <address@hidden>
Date:   Sun Oct 5 08:22:20 2014 +0300

    Some more minor cleanups.

diff --git a/ChangeLog b/ChangeLog
index bb4edd3..2e305dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,19 @@
+2014-10-05         Arnold D. Robbins     <address@hidden>
+
+       * awkgram.y (mk_program): Add a comment that we don't need to
+       clear the comment* variables.
+
 2014-10-04         Arnold D. Robbins     <address@hidden>
 
        * profile.c (pp_string_fp): Fix breaklines case to actually
        output the current letter. This broke at gawk 4.0.0. Sigh.
        Thanks to Bert Bos (address@hidden) for the report.
 
+2014-10-03     Stephen Davies          <address@hidden>
+
+       * awkgram.y (program_comment): Renamed from comment0.
+       (function_comment): Renamed from commentf.
+
 2014-10-02         Arnold D. Robbins     <address@hidden>
 
        * awkgram.y, profile.c: Minor white space cleanups.
@@ -106,13 +116,13 @@
                - DO print the header comments
                - Do NOT print the program's original comments
 
-       * awkgram.y (comment0, commentf): New varibles that are  pointers to 
program
-       and function comments.
-       (get_comment): New function that retrieves consecutive comment lines 
and empty
-       lines as a unit).
-       (split_comment): New function: iff first block in the program is a 
function and
-       it is predeeded by comments, take the last non-blank line as function 
comment
-       and any preceeding lines as program comment.)
+       * awkgram.y (comment0, commentf): New varibles that are  pointers to
+       program and function comments.
+       (get_comment): New function that retrieves consecutive comment lines
+       and empty lines as a unit).
+       (split_comment): New function: iff first block in the program is a
+       function and it is predeeded by comments, take the last non-blank
+       line as function comment and any preceeding lines as program comment.)
 
        Following token rules were changed to handle comments:
 
@@ -121,12 +131,12 @@
                                
        Following functions were changed to handle comments:
 
-       * awkgram.y (mk_program, mk_function, allow_newline and yylex): Update 
to
-       handle comments. (Also fixed typo in case '\\'.)
+       * awkgram.y (mk_program, mk_function, allow_newline and yylex): Update
+       to handle comments. (Also fixed typo in case '\\'.)
 
        * profile.c (print_comment): New function to format comment printing.
-       (indent, pprint, dump_prog, pp_func): Changed to handle comments and the
-       revised indentation rules.
+       (indent, pprint, dump_prog, pp_func): Changed to handle comments and
+       the revised indentation rules.
 
 2014-09-07         Arnold D. Robbins     <address@hidden>
 
diff --git a/awkgram.c b/awkgram.c
index 3efbd13..a79f9a3 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4625,6 +4625,11 @@ mk_program()
                                cp = end_block;
                        else
                                cp = list_merge(begin_block, end_block);
+                       /*
+                        * We don't need to clear the comment variables
+                        * since they're not used anymore after this
+                        * function is called.
+                        */
                        if (comment != NULL)
                                (void) list_append(cp, comment);
                        (void) list_append(cp, ip_atexit);
diff --git a/awkgram.y b/awkgram.y
index 5cf8e92..64ed3c5 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2287,6 +2287,11 @@ mk_program()
                                cp = end_block;
                        else
                                cp = list_merge(begin_block, end_block);
+                       /*
+                        * We don't need to clear the comment variables
+                        * since they're not used anymore after this
+                        * function is called.
+                        */
                        if (comment != NULL)
                                (void) list_append(cp, comment);
                        (void) list_append(cp, ip_atexit);

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

Summary of changes:
 ChangeLog |   32 +++++++++++++++++++++-----------
 awkgram.c |    5 +++++
 awkgram.y |    5 +++++
 3 files changed, 31 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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