gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. 993eaa708f7785e0ab5c1b1


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. 993eaa708f7785e0ab5c1b1e53ddf4abe1d835e4
Date: Wed, 31 Oct 2012 17:51:26 +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, master has been updated
       via  993eaa708f7785e0ab5c1b1e53ddf4abe1d835e4 (commit)
      from  cec88d59be5ef7c50647e45f5aeb3d9260236705 (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=993eaa708f7785e0ab5c1b1e53ddf4abe1d835e4

commit 993eaa708f7785e0ab5c1b1e53ddf4abe1d835e4
Author: Arnold D. Robbins <address@hidden>
Date:   Wed Oct 31 19:51:04 2012 +0200

    Some minor fixes. See ChangeLog.

diff --git a/ChangeLog b/ChangeLog
index c0e13a1..a63223d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
+2012-10-31         Arnold D. Robbins     <address@hidden>
+
+       * awkgram.y (want_regexp): Use as a bool, not as an int.
+       * field.c: Fix a comment.
+       * gawkapi.h: Add comment to include <errno.h>.
+       * symbol.c (load_symbols): ``No automatic aggregate initialization.''
+       Here too. Sigh again.
+
 2012-10-28         Arnold D. Robbins     <address@hidden>
 
-       * Update bison 2.6.3. Various files regenerated.
+       * Update to bison 2.6.4. Various files regenerated.
 
 2012-10-27         Arnold D. Robbins     <address@hidden>
 
diff --git a/awkgram.c b/awkgram.c
index 56b769f..09ec7b1 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -127,7 +127,7 @@ static ssize_t read_one_line(int fd, void *buffer, size_t 
count);
 static int one_line_close(int fd);
 
 static bool want_source = false;
-static bool want_regexp;               /* lexical scanning kludge */
+static bool want_regexp = false;       /* lexical scanning kludge */
 static char *in_function;              /* parsing kludge */
 static bool symtab_used = false;       /* program used SYMTAB */
 static int rule = 0;
@@ -2345,7 +2345,7 @@ yyreduce:
   case 33:
 /* Line 1813 of yacc.c  */
 #line 401 "awkgram.y"
-    { ++want_regexp; }
+    { want_regexp = true; }
     break;
 
   case 34:
diff --git a/awkgram.y b/awkgram.y
index 91e791a..e7d44b8 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -86,7 +86,7 @@ static ssize_t read_one_line(int fd, void *buffer, size_t 
count);
 static int one_line_close(int fd);
 
 static bool want_source = false;
-static bool want_regexp;               /* lexical scanning kludge */
+static bool want_regexp = false;       /* lexical scanning kludge */
 static char *in_function;              /* parsing kludge */
 static bool symtab_used = false;       /* program used SYMTAB */
 static int rule = 0;
@@ -398,7 +398,7 @@ regexp
         * is a regexp so it should read up to the closing slash.
         */
        : a_slash
-               { ++want_regexp; }
+               { want_regexp = true; }
          REGEXP        /* The terminating '/' is consumed by yylex(). */
                {
                  NODE *n, *exp;
diff --git a/field.c b/field.c
index 9b5a22c..6bbab8d 100644
--- a/field.c
+++ b/field.c
@@ -1075,7 +1075,7 @@ do_patsplit(int nargs)
                if (sep_arr == arr)
                        fatal(_("patsplit: cannot use the same array for second 
and fourth args")); 
 
-               /* This checks need to be done before clearing any of the 
arrays */
+               /* These checks need to be done before clearing any of the 
arrays */
                for (tmp = sep_arr->parent_array; tmp != NULL; tmp = 
tmp->parent_array)
                        if (tmp == arr)
                                fatal(_("patsplit: cannot use a subarray of 
second arg for fourth arg"));
diff --git a/gawkapi.h b/gawkapi.h
index 30b0e93..4466ef3 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -29,6 +29,8 @@
  * You must include <stddef.h> or <stdlib.h> to get size_t's definition.
  * You should also include <stdio.h> if you intend to use
  * the dl_load_func convenience macro.
+ * To pass reasonable integer values for ERRNO, you will need to
+ * include <errno.h>.
  */
 
 #ifndef _GAWK_API_H
diff --git a/symbol.c b/symbol.c
index dc87ed9..1e0e474 100644
--- a/symbol.c
+++ b/symbol.c
@@ -521,16 +521,16 @@ load_symbols()
        long i, j, max;
        NODE *user, *extension, *untyped, *scalar, *array;
        NODE **list;
-       NODE *tables[] = {
-               func_table,
-               symbol_table,
-               global_table,
-               NULL
-       };
+       NODE *tables[4];
 
        if (PROCINFO_node == NULL)
                return;
 
+       tables[0] = func_table;
+       tables[1] = symbol_table;
+       tables[2] = global_table;
+       tables[3] = NULL;
+
        tmp = make_string("identifiers", 11);
        aptr = assoc_lookup(PROCINFO_node, tmp);
 

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

Summary of changes:
 ChangeLog |   10 +++++++++-
 awkgram.c |    4 ++--
 awkgram.y |    4 ++--
 field.c   |    2 +-
 gawkapi.h |    2 ++
 symbol.c  |   12 ++++++------
 6 files changed, 22 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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