[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, master, updated. bada9c9a2562ad850757988
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, master, updated. bada9c9a2562ad850757988effc848fb55850c98 |
Date: |
Sun, 21 Oct 2012 10:29:05 +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 bada9c9a2562ad850757988effc848fb55850c98 (commit)
from 0a1746da98ef24b887074bad1c390523f6c4b190 (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=bada9c9a2562ad850757988effc848fb55850c98
commit bada9c9a2562ad850757988effc848fb55850c98
Author: Arnold D. Robbins <address@hidden>
Date: Sun Oct 21 12:28:48 2012 +0200
z/OS fixes.
diff --git a/ChangeLog b/ChangeLog
index 896472b..e5828b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-10-21 Arnold D. Robbins <address@hidden>
+
+ Fixes for z/OS from Dave Pitts.
+
+ * awk.h (assoc_list_flags): No trailing comma on last enum value.
+ * gawkapi.h (awk_valtype_t): Ditto.
+ * symbol.c (lookup): ``No automatic aggregate initialization.'' Sigh.
+
2012-10-19 Arnold D. Robbins <address@hidden>
If SYMTAB is used, make sure ENVIRON and PROCINFO get loaded too.
diff --git a/awk.h b/awk.h
index 563e414..2aa944c 100644
--- a/awk.h
+++ b/awk.h
@@ -1374,7 +1374,7 @@ enum assoc_list_flags {
AVSTR = 0x20, /* string scalar value */
AASC = 0x40, /* ascending order */
ADESC = 0x80, /* descending order */
- ADELETE = 0x100, /* need a single index; for use in
do_delete_loop */
+ ADELETE = 0x100 /* need a single index; for use in
do_delete_loop */
};
extern NODE *make_array(void);
diff --git a/gawkapi.h b/gawkapi.h
index 5b94252..17ce9c1 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -281,7 +281,7 @@ typedef enum {
AWK_STRING,
AWK_ARRAY,
AWK_SCALAR, /* opaque access to a variable */
- AWK_VALUE_COOKIE, /* for updating a previously created value */
+ AWK_VALUE_COOKIE /* for updating a previously created value */
} awk_valtype_t;
/*
diff --git a/symbol.c b/symbol.c
index 5a34f29..dc87ed9 100644
--- a/symbol.c
+++ b/symbol.c
@@ -91,16 +91,16 @@ lookup(const char *name)
{
NODE *n;
NODE *tmp;
- /* ``It's turtles, all the way down.'' */
- NODE *tables[] = {
- param_table, /* parameters shadow everything */
- global_table, /* SYMTAB and FUNCTAB found first, can't be
redefined */
- func_table, /* then functions */
- symbol_table, /* then globals */
- NULL,
- };
+ NODE *tables[5]; /* manual init below, for z/OS */
int i;
+ /* ``It's turtles, all the way down.'' */
+ tables[0] = param_table; /* parameters shadow everything */
+ tables[1] = global_table; /* SYMTAB and FUNCTAB found first,
can't be redefined */
+ tables[2] = func_table; /* then functions */
+ tables[3] = symbol_table; /* then globals */
+ tables[4] = NULL;
+
tmp = make_string(name, strlen(name));
n = NULL;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
awk.h | 2 +-
gawkapi.h | 2 +-
symbol.c | 16 ++++++++--------
4 files changed, 18 insertions(+), 10 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, master, updated. bada9c9a2562ad850757988effc848fb55850c98,
Arnold Robbins <=