[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, num-handler, updated. 9d7c03c2c55d28d966
From: |
John Haque |
Subject: |
[gawk-diffs] [SCM] gawk branch, num-handler, updated. 9d7c03c2c55d28d9664881eff0a5e11b030cc67c |
Date: |
Thu, 03 Jan 2013 11:32:42 +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, num-handler has been updated
via 9d7c03c2c55d28d9664881eff0a5e11b030cc67c (commit)
from 390353f51f36ca53515630d38b63d6bbb1c4f43d (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=9d7c03c2c55d28d9664881eff0a5e11b030cc67c
commit 9d7c03c2c55d28d9664881eff0a5e11b030cc67c
Author: John Haque <address@hidden>
Date: Thu Jan 3 05:31:26 2013 -0600
Update TODO.NUMH, add format.h to the list in Makefile.am.
diff --git a/Makefile.am b/Makefile.am
index 7a1b530..5346454 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -99,6 +99,7 @@ base_sources = \
field.c \
floatcomp.c \
floatmagic.h \
+ format.h \
gawkapi.c \
gawkapi.h \
gawkmisc.c \
diff --git a/Makefile.in b/Makefile.in
index 71df2f0..20c3a19 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -428,6 +428,7 @@ base_sources = \
field.c \
floatcomp.c \
floatmagic.h \
+ format.h \
gawkapi.c \
gawkapi.h \
gawkmisc.c \
diff --git a/TODO.NUMH b/TODO.NUMH
index c612bd5..838b0f9 100644
--- a/TODO.NUMH
+++ b/TODO.NUMH
@@ -1 +1,16 @@
-* put back constant-folding code for numbers
+* (Further) refactoring (s)printf formatting code:
+
+ [1] Remove direct calls to format_tree() in number to string (force_string)
+routines. Fix CONVFMT = "%s"/"%c" crash; present in all known gawk versions.
+Cache parsed format code in fmt_idx() ...
+
+ [2] Try to format NaN/inf in main gawk code, and not in the individual
handlers.
+
+* In non-number related routines (substr, index, ..), fetch an integer directly
+using get_number_si/get_number_ui to get the correct size at the int
boundaries.
+Use isinteger() to test for a floating-point value instead of get_number_d()
and ...
+May require additional tests e.g. SIZE_MAX <= UINT_MAX. In a nutshell, don't
do this:
+
+ number => double => integer
+
+* Restore constant-folding code for numbers.
-----------------------------------------------------------------------
Summary of changes:
Makefile.am | 1 +
Makefile.in | 1 +
TODO.NUMH | 17 ++++++++++++++++-
3 files changed, 18 insertions(+), 1 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, num-handler, updated. 9d7c03c2c55d28d9664881eff0a5e11b030cc67c,
John Haque <=