[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-139-gc2d01a1
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-139-gc2d01a1 |
Date: |
Thu, 17 Oct 2013 19:10: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 c2d01a1dd2adffe15c6cecdbfcf5c8ae22536455 (commit)
via a0ca839420118a77a19a8ab05d08f58a076edd17 (commit)
via 45ebe190c01c030e82483a9ef5d032aba32dad1f (commit)
via eb152bbe507aef92ece4a301863263818fb50a04 (commit)
from bafdfda0467c8f0bb6cd88f124fe9ded0f70cd29 (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=c2d01a1dd2adffe15c6cecdbfcf5c8ae22536455
commit c2d01a1dd2adffe15c6cecdbfcf5c8ae22536455
Author: Arnold D. Robbins <address@hidden>
Date: Thu Oct 17 22:10:15 2013 +0300
Update TODO.
diff --git a/TODO b/TODO
index b21f56f..edca193 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,4 @@
-Wed Oct 16 20:19:52 IDT 2013
+Thu Oct 17 22:10:09 IDT 2013
============================
There were too many files tracking different thoughts and ideas for
@@ -40,6 +40,9 @@ Minor Cleanups and Code Improvements
Minor New Features
------------------
+ Add a div() function to do integer division result. Needed
+ esp for MPFR with large ints.
+
Enhance extension/fork.c waitpid to allow the caller to specify
the options. And add an optional array argument to wait and
waitpid in which to return exit status information.
@@ -79,6 +82,8 @@ Major New Features
Fix the early chapters in the doc with more up-to-date examples.
No-one uses Bulletin Board Systems anymore.
+ Add ability to do decimal arithmetic.
+
Rework management of array index storage. (Partially DONE.)
Consider using an atom table for all string array indices.
@@ -91,6 +96,8 @@ Major New Features
?? Use a new or improved dfa and/or regex library.
+ Rewrite in C++.
+
Things To Think About That May Never Happen
-------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=a0ca839420118a77a19a8ab05d08f58a076edd17
commit a0ca839420118a77a19a8ab05d08f58a076edd17
Author: Arnold D. Robbins <address@hidden>
Date: Thu Oct 17 22:08:24 2013 +0300
Additional fix in do_rand.
diff --git a/ChangeLog b/ChangeLog
index 9daa8cc..2240218 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,11 @@
* main.c (main): Ignore SIGPIPE. See the comment in the code.
Thanks to Alan Broder for reporting the issue.
+ Unrelated:
+
+ * rand.c (do_rand): Fix computation and loop checking against
+ 1.0 to use do..while.
+
2013-10-16 Arnold D. Robbins <address@hidden>
Make -O work again. Turns out that C99 bool variables
diff --git a/builtin.c b/builtin.c
index 740c88b..4f1914f 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2432,12 +2432,13 @@ do_rand(int nargs ATTRIBUTE_UNUSED)
* }
*/
- tmprand = 0.5 + ( (random()/RAND_DIVISOR + random()) / RAND_DIVISOR);
+ do {
+ tmprand = 0.5 + ( (random()/RAND_DIVISOR + random())
+ / RAND_DIVISOR);
+ tmprand -= 0.5;
+ } while (tmprand == 1.0);
- while (tmprand == 1.0)
- tmprand = 0.5 + ( (random()/RAND_DIVISOR + random()) /
RAND_DIVISOR);
-
- return make_number((AWKNUM) (tmprand - 0.5));
+ return make_number((AWKNUM) tmprand);
}
/* do_srand --- seed the random number generator */
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=45ebe190c01c030e82483a9ef5d032aba32dad1f
commit 45ebe190c01c030e82483a9ef5d032aba32dad1f
Merge: bafdfda eb152bb
Author: Arnold D. Robbins <address@hidden>
Date: Thu Oct 17 22:05:08 2013 +0300
Merge branch 'gawk-4.1-stable'
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
TODO | 9 ++++++++-
builtin.c | 11 ++++++-----
main.c | 8 ++++++++
test/Makefile.am | 6 ++++--
test/Makefile.in | 11 +++++++++--
test/Maketests | 5 +++++
test/pipeio3.awk | 15 +++++++++++++++
test/pipeio3.ok | 6 ++++++
9 files changed, 71 insertions(+), 10 deletions(-)
create mode 100644 test/pipeio3.awk
create mode 100644 test/pipeio3.ok
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-139-gc2d01a1,
Arnold Robbins <=