Ben Pfaff [Sat, 28 Oct 2006 04:01:54 +0000 (04:01 +0000)]
Add routines for integer byte order conversions, floating point format
and byte order conversions, and ASCII<->EBCDIC conversion. Also add
an extensive floating point format conversion test.
The ASCII<->EBCDIC conversion used by SPSS does not correspond exactly
to any found in GNU libiconv, hence the need for a separate library.
These routines are a small part of a larger change set that I'm
breaking up for gradual submission. Thus, they aren't used by much
yet.
John Darrington [Wed, 27 Sep 2006 10:21:35 +0000 (10:21 +0000)]
Fixed warnings generated by gcc 4.1.2
Fixed bug in N OF CASES command which these warnings exposed.
Added a test for this bug (how many years had it gone unreported?)
Ben Pfaff [Tue, 18 Jul 2006 04:57:01 +0000 (04:57 +0000)]
Patch #5244.
This patch cleans up DATA LIST and PRINT in preparation for
re-implementing REPEATING DATA (bug #12859). It reduces the code
duplication between DATA LIST and PRINT a great deal, actually
reducing the total code in PSPP by a couple hundred lines. The result
should be more maintainable as well as easier to read.
John Darrington [Mon, 17 Jul 2006 10:45:42 +0000 (10:45 +0000)]
Patch #5209
Made casefile.c into an abstract base class, and moved the implementation to
fastfile.c.
Added a second implementation: flexifile.c which supports random access.
Currently, it's a very naive implementation.
Updated the gui to use flexifile.
Ben Pfaff [Tue, 4 Jul 2006 04:17:50 +0000 (04:17 +0000)]
Modify the random distributions test to verify to 2 more decimal
places of accuracy, but to allow +/- 1 units in the last (tested)
place. This allows the test to pass on machines or with compilers
whose calculated values are off by epsilon from the expected results.
Because of the way the test is constructed, this was quite common and
often caused gratuitous test failures.
This is patch #5215, tested by Jason Stover and John Darrington.
Ben Pfaff [Mon, 3 Jul 2006 17:39:07 +0000 (17:39 +0000)]
Make the destination for charts configurable in the HTML driver.
Fixes bug #15723, "HTML driver creates .png files insecurely".
Thanks to John Darrington for review.
Ben Pfaff [Wed, 28 Jun 2006 05:49:03 +0000 (05:49 +0000)]
Fix regression in command name completion reported by John Darrington.
Now completion is again state-dependent and occurs only on the first
line of a command.
Ben Pfaff [Mon, 26 Jun 2006 05:42:05 +0000 (05:42 +0000)]
(dump_free) For SBC_DBL_LIST, enclose the output code in curly braces,
because it contains a variable declaration and might not be at the
beginning of a block.
Ben Pfaff [Mon, 26 Jun 2006 05:40:29 +0000 (05:40 +0000)]
* value-labels.c (value_to_string): When there's no value label,
format the variable according to its print format, instead of
always effectively using A or F format.
Ben Pfaff [Tue, 20 Jun 2006 05:09:07 +0000 (05:09 +0000)]
Mon Jun 19 22:07:13 2006 Ben Pfaff <blp@gnu.org>
* frequencies.q: (dump_full) Only put the first MAX_SHORT_STRING
bytes of string variables into the output cells, seeing as we only
copy that many.
(dump_condensed) Ditto.
Mon Jun 19 21:52:05 2006 Ben Pfaff <blp@gnu.org>
Fixes a bug reported by Greg Hunt <greg@firmansyah.com>.
* frequencies.q: (hsh_hash_bytes) We only copy the first
MAX_SHORT_STRING bytes of string variables, so we must only
compare that many bytes, even if the string variable is longer.
(compare_value_alpha_a) Ditto.
(compare_freq_alpha_a) Ditto.
(compare_freq_alpha_d) Ditto.