diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | awkgram.c | 4 | ||||
-rw-r--r-- | awkgram.y | 4 | ||||
-rw-r--r-- | field.c | 2 | ||||
-rw-r--r-- | gawkapi.h | 2 | ||||
-rw-r--r-- | symbol.c | 12 |
6 files changed, 22 insertions, 12 deletions
@@ -1,6 +1,14 @@ +2012-10-31 Arnold D. Robbins <arnold@skeeve.com> + + * 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 <arnold@skeeve.com> - * Update bison 2.6.3. Various files regenerated. + * Update to bison 2.6.4. Various files regenerated. 2012-10-27 Arnold D. Robbins <arnold@skeeve.com> @@ -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: @@ -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; @@ -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")); @@ -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 @@ -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); |