[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. b8fb7b2d428705
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. b8fb7b2d4287058c9d2fab1a871e9181840279be |
Date: |
Tue, 18 Oct 2011 10:22:15 +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-4.0-stable has been updated
via b8fb7b2d4287058c9d2fab1a871e9181840279be (commit)
via 4a9f65ea0a861f842fa05120f9da0365019c2892 (commit)
from 0cf50ae4c064bd2d8960ffd1e14f97402b8f5157 (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=b8fb7b2d4287058c9d2fab1a871e9181840279be
commit b8fb7b2d4287058c9d2fab1a871e9181840279be
Author: Arnold D. Robbins <address@hidden>
Date: Tue Oct 18 12:21:39 2011 +0200
Fix dfa.c yet againi for z/OS.
diff --git a/ChangeLog b/ChangeLog
index a98401c..c25bab8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-18 Dave Pitts <address@hidden>
+
+ * dfa.c: Move some decls to the top of their functions for
+ C90 compilers.
+
2011-10-18 Arnold D. Robbins <address@hidden>
* builtin.c (do_strftime): Add check for negative / overflowed
diff --git a/dfa.c b/dfa.c
index aecbbd7..19bbaa3 100644
--- a/dfa.c
+++ b/dfa.c
@@ -805,6 +805,7 @@ parse_bracket_exp (void)
int invert;
int c, c1, c2;
charclass ccl;
+ wint_t wc1 = 0;
/* Used to warn about [:space:].
Bit 0 = first character is a colon.
@@ -849,7 +850,6 @@ parse_bracket_exp (void)
else
invert = 0;
- wint_t wc1 = 0;
colon_warning_state = (c == ':');
do
{
@@ -3429,10 +3429,11 @@ dfainit (struct dfa *d)
static void
dfaoptimize (struct dfa *d)
{
+ unsigned int i;
+
if (!MBS_SUPPORT || !using_utf8())
return;
- unsigned int i;
for (i = 0; i < d->tindex; ++i)
{
switch(d->tokens[i])
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=4a9f65ea0a861f842fa05120f9da0365019c2892
commit 4a9f65ea0a861f842fa05120f9da0365019c2892
Author: Arnold D. Robbins <address@hidden>
Date: Tue Oct 18 12:16:53 2011 +0200
Fix stftime.
diff --git a/ChangeLog b/ChangeLog
index 104eacd..a98401c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-18 Arnold D. Robbins <address@hidden>
+
+ * builtin.c (do_strftime): Add check for negative / overflowed
+ time_t value with fatal error. Thanks to Hermann Peifer
+ <address@hidden> for the bug report.
+
2011-10-10 Arnold D. Robbins <address@hidden>
* builtin.c (do_sub): Init textlen to zero to avoid "may be
diff --git a/builtin.c b/builtin.c
index 072fd8f..bae02f4 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1673,6 +1673,8 @@ do_strftime(int nargs)
if (do_lint && (t2->flags & (NUMCUR|NUMBER)) == 0)
lintwarn(_("strftime: received non-numeric
second argument"));
fclock = (time_t) force_number(t2);
+ if (fclock < 0)
+ fatal(_("strftime: second argument less than 0
or too big for time_t"));
DEREF(t2);
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
builtin.c | 2 ++
dfa.c | 5 +++--
3 files changed, 16 insertions(+), 2 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. b8fb7b2d4287058c9d2fab1a871e9181840279be,
Arnold Robbins <=