gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk_performance, updated. 6545a873e8eb6


From: John Haque
Subject: [gawk-diffs] [SCM] gawk branch, gawk_performance, updated. 6545a873e8eb6d6796c1c0fa0931083190c396d0
Date: Tue, 11 Oct 2011 12:18:01 +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, gawk_performance has been updated
       via  6545a873e8eb6d6796c1c0fa0931083190c396d0 (commit)
      from  bf958505d3b1681a91f10e866636e9088d732a60 (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=6545a873e8eb6d6796c1c0fa0931083190c396d0

commit 6545a873e8eb6d6796c1c0fa0931083190c396d0
Author: john haque <address@hidden>
Date:   Tue Oct 11 07:16:35 2011 -0500

    Add GPL notice in symbol.c.

diff --git a/ChangeLog b/ChangeLog
index 535d30a..809ad93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-11         John Haque     <address@hidden>
+       * symbol.c: Add licence notice.
+       * array.c (PREC_NUM, PREC_STR): Define as macros.
+
 2011-10-07         John Haque     <address@hidden>
        Tail recursion optimization.
        * awkgram.y (grammar, mk_function): Recognize tail-recursive
diff --git a/array.c b/array.c
index e6e0c26..3594932 100644
--- a/array.c
+++ b/array.c
@@ -660,12 +660,14 @@ do_delete_loop(NODE *symbol, NODE **lhs)
 
 /* value_info --- print scalar node info */
 
-int PREC_NUM = -1;
-int PREC_STR = -1;
 
 static void
 value_info(NODE *n)
 {
+
+#define PREC_NUM -1
+#define PREC_STR -1
+
        if (n == Nnull_string || n == Null_field) {
                fprintf(output_fp, "<(null)>");
                return;
@@ -693,6 +695,9 @@ value_info(NODE *n)
                fprintf(output_fp, "CONVFMT=\"%s\"", n->stfmt <= -1 ? "%ld"
                                        : fmt_list[n->stfmt]->stptr);
        }
+
+#undef PREC_NUM
+#undef PREC_STR
 }
 
 
diff --git a/symbol.c b/symbol.c
index a1c598e..57ca7be 100644
--- a/symbol.c
+++ b/symbol.c
@@ -1,3 +1,28 @@
+/*
+ * symbol.c - routines for symbol table management and code allocation
+ */
+
+/* 
+ * Copyright (C) 1986, 1988, 1989, 1991-2011 the Free Software Foundation, Inc.
+ * 
+ * This file is part of GAWK, the GNU implementation of the
+ * AWK Programming Language.
+ * 
+ * GAWK is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * GAWK is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
USA
+ */
+
 #include "awk.h"
 
 extern SRCFILE *srcfiles;

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

Summary of changes:
 ChangeLog |    4 ++++
 array.c   |    9 +++++++--
 symbol.c  |   25 +++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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