[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-856-gabff9b
From: |
Stephen Davies |
Subject: |
[gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-856-gabff9b1 |
Date: |
Sat, 04 Oct 2014 02:18:04 +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 abff9b12506c0b8d971a7b6c9b08ada126d67e0d (commit)
from 4959339c8a962b54bf33fd9e3d9f46b3f1c3c29e (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=abff9b12506c0b8d971a7b6c9b08ada126d67e0d
commit abff9b12506c0b8d971a7b6c9b08ada126d67e0d
Author: Stephen Davies <address@hidden>
Date: Sat Oct 4 11:43:36 2014 +0930
Rename function and program variables
diff --git a/awkgram.y b/awkgram.y
index 8e6250b..5cf8e92 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -148,8 +148,8 @@ static INSTRUCTION *ip_endfile;
static INSTRUCTION *ip_beginfile;
static INSTRUCTION *comment = NULL;
-static INSTRUCTION *comment0 = NULL;
-static INSTRUCTION *commentf = NULL;
+static INSTRUCTION *program_comment = NULL;
+static INSTRUCTION *function_comment = NULL;
static bool func_first = true;
@@ -426,7 +426,7 @@ function_prologue
split_comment();
/* save any other pre-function comment as function comment */
if (comment != NULL) {
- commentf = comment;
+ function_comment = comment;
comment = NULL;
}
func_first = false;
@@ -2321,8 +2321,8 @@ mk_program()
if (begin_block != NULL)
cp = list_merge(begin_block, cp);
- if (comment0 != NULL) {
- (void) list_prepend(cp, comment0);
+ if (program_comment != NULL) {
+ (void) list_prepend(cp, program_comment);
}
if (comment != NULL) {
(void) list_append(cp, comment);
@@ -3056,14 +3056,14 @@ split_comment(void)
/* have at least two comments so split at last blank line (\n\n) */
while (l >= 0) {
if (p[l] == '\n' && p[l+1] == '\n') {
- commentf = comment;
- n = commentf->memory;
- commentf->memory = make_str_node(p + l + 2, n->stlen -
l - 2, 0);
+ function_comment = comment;
+ n = function_comment->memory;
+ function_comment->memory = make_str_node(p + l + 2,
n->stlen - l - 2, 0);
/* create program comment */
- comment0 = bcalloc(Op_comment, 1, sourceline);
- comment0->source_file = comment->source_file;
+ program_comment = bcalloc(Op_comment, 1, sourceline);
+ program_comment->source_file = comment->source_file;
p[l + 2] = 0;
- comment0->memory = make_str_node(p, l + 2, 0);
+ program_comment->memory = make_str_node(p, l + 2, 0);
comment = NULL;
freenode(n);
break;
@@ -4412,10 +4412,10 @@ mk_function(INSTRUCTION *fi, INSTRUCTION *def)
/* add any pre-function comment to start of action for profile.c */
- if (commentf != NULL) {
- commentf->source_line = 0;
- (void) list_prepend(def, commentf);
- commentf = NULL;
+ if (function_comment != NULL) {
+ function_comment->source_line = 0;
+ (void) list_prepend(def, function_comment);
+ function_comment = NULL;
}
/* add an implicit return at end;
-----------------------------------------------------------------------
Summary of changes:
awkgram.y | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-856-gabff9b1,
Stephen Davies <=