pspp-builds.git
14 years agosys-file-reader: Tolerate nonsensical opcodes in compressed data. fc11-i386-build22 fc11-x64-build21 lenny-x64-build43 sid-i386-build90
Ben Pfaff [Thu, 15 Oct 2009 04:20:44 +0000 (21:20 -0700)]
sys-file-reader: Tolerate nonsensical opcodes in compressed data.

Compressed data in .sav files uses a set of 256 opcodes, some of which make
sense only for numeric data and others of which only make sense for string
data.  However, Jereme Thomas <jereme.thomas@gmail.com> has provided one
file, written by SPSS 14, that uses an opcode that seems to makes sense
only for numeric data in a string field.  So this commit adds support for
these opcodes, although it still warns about the ones other than the exact
one found in the file provided by Jereme.

14 years agoRelease PSPP 0.6.2-rc1. fbsd72-i386-build30 fc11-i386-build16 fc11-x64-build17 lenny-x64-build38 sid-i386-build84 v0.6.2-rc1
Ben Pfaff [Wed, 7 Oct 2009 03:49:31 +0000 (20:49 -0700)]
Release PSPP 0.6.2-rc1.

14 years agoUpdate Dutch and Brazilian Portuguese translations.
Ben Pfaff [Wed, 7 Oct 2009 03:48:49 +0000 (20:48 -0700)]
Update Dutch and Brazilian Portuguese translations.

Thanks to Michel Boaventura, Harry Thijssen, and the coordinators at
translationproject.org.

14 years agoMake GtkItemEntry compatible with GTK+ 2.17.4 and later.
Ben Pfaff [Thu, 24 Sep 2009 02:45:56 +0000 (19:45 -0700)]
Make GtkItemEntry compatible with GTK+ 2.17.4 and later.

GTK+ 2.17.4 breaks GtkEntry's buffer into a separate class named
GtkEntryBuffer and eliminates the associated members from GtkEntry.
The GtkItemEntry code in lib/gtksheet attempted to use some of those
members directly, which no longer works, so this commit changes that
code to use public function interfaces instead.  Some of these public
function interfaces were introduced in GTK+ 2.17.4, so those pieces
are conditionalized on the version of GTK+ detected at build time.

This commit makes PSPPIRE compiled with GTK+ before 2.17.4 work properly
only when used with GTK+ before 2.17.4, and similarly when PSPPIRE is
compiled with GTK+ 2.17.4 or later.  There may be a way to avoid that, but
it is not entirely obvious.

With feedback from John Darrington.

14 years agoDon't pad variable labels written to system files.
Ben Pfaff [Thu, 17 Sep 2009 03:19:34 +0000 (20:19 -0700)]
Don't pad variable labels written to system files.

Previously, the code to write variable labels to system files accidentally
padded out the variable labels on the right with spaces to a multiple of 4
bytes in length.  With this commit, variable labels will no longer be
padded.

This fixes a genuine bug for variable labels longer than 252 bytes, which
previously were padded out to 256 bytes.  Variable labels are limited to
a maximum of 255 bytes, so PSPP refused to read such files.

Reported-by: Robert Westlund <rob@kinesissurvey.com>
14 years agoMerge commit 'origin/stable' into stable
Ben Pfaff [Tue, 15 Sep 2009 03:41:35 +0000 (20:41 -0700)]
Merge commit 'origin/stable' into stable

14 years agoRelease PSPP 0.6.2-pre6. v0.6.2-pre6
Ben Pfaff [Wed, 9 Sep 2009 04:43:01 +0000 (21:43 -0700)]
Release PSPP 0.6.2-pre6.

14 years agoAdd Brazilian Portuguese translation.
Ben Pfaff [Wed, 9 Sep 2009 03:59:04 +0000 (20:59 -0700)]
Add Brazilian Portuguese translation.

Thanks to Michel Boaventura <michel@cecaps.ufmg.br> and the coordinators
at translationproject.org.

14 years agoT-TEST: Also fix the case where the correlation is slightly less than -1.0.
Ben Pfaff [Fri, 4 Sep 2009 16:05:08 +0000 (09:05 -0700)]
T-TEST: Also fix the case where the correlation is slightly less than -1.0.

Thanks to John Darrington for pointing out the omission.

14 years agoUpdate to latest nl.po.
Ben Pfaff [Fri, 4 Sep 2009 03:31:38 +0000 (20:31 -0700)]
Update to latest nl.po.

Thanks to unknown-1 and the coordinators at translationproject.org.

14 years agoT-TEST: Avoid NaN in paired-sample correlation significance calcuation.
Ben Pfaff [Fri, 4 Sep 2009 03:09:36 +0000 (20:09 -0700)]
T-TEST: Avoid NaN in paired-sample correlation significance calcuation.

Sometimes the correlation comes out just above 1.0 due to inaccuracy of
machine calculation, which causes sqrt(1-corr**2) to yield NaN.  This
commit forces the correlation into the valid range, fixing the problem.

Thanks to Matej Cepl <mcepl@redhat.com> for reporting the problem.
Thanks to John Darrington for suggesting the fix.

14 years agopspp_linreg(): Use cache->n_coeffs to set the dimensions of sw, instead of
Jason Stover [Fri, 17 Jul 2009 20:02:02 +0000 (16:02 -0400)]
pspp_linreg(): Use cache->n_coeffs to set the dimensions of sw, instead of
       cache->n_indeps, which may give incorrect dimension in the case
       of categorical variables. Fixes bug referenced in bug report
       26861.

14 years agoRelease PSPP 0.6.2-pre5. v0.6.2-pre5
Ben Pfaff [Fri, 17 Jul 2009 03:36:20 +0000 (20:36 -0700)]
Release PSPP 0.6.2-pre5.

14 years agoFix reversed logic in when to append "/" to path in previous commit.
Ben Pfaff [Fri, 17 Jul 2009 03:58:51 +0000 (20:58 -0700)]
Fix reversed logic in when to append "/" to path in previous commit.

14 years agoFix failure to write output file in GUI on Windows when HOMEPATH is "\".
Ben Pfaff [Fri, 17 Jul 2009 03:48:18 +0000 (20:48 -0700)]
Fix failure to write output file in GUI on Windows when HOMEPATH is "\".

Thanks to Michel Boaventura for reporting this problem:
http://lists.gnu.org/archive/html/pspp-dev/2009-07/msg00064.html

14 years agoREGRESSION: Fix access beyond end of allocated region.
Ben Pfaff [Fri, 17 Jul 2009 03:27:45 +0000 (20:27 -0700)]
REGRESSION: Fix access beyond end of allocated region.

From Jason Stover, with modification for stable since the
design_matrix_get_n_cols function does not exist on this branch.

Bug #26861.

14 years agoReturn 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report...
Jason Stover [Sat, 11 Jul 2009 19:45:49 +0000 (15:45 -0400)]
Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report 26861.

14 years agoFixed bug reporting the significance of paired value t-test.
John Darrington [Wed, 15 Jul 2009 18:25:42 +0000 (02:25 +0800)]
Fixed bug reporting the significance of paired value t-test.

Due to a cut and paste error, the significance of paired
t-tests was wrong when the value of T was positive.
Thanks to Mike Griffiths for reporting this problem.

14 years agoFixed bug reporting the significance of paired value t-test.
John Darrington [Wed, 15 Jul 2009 18:25:42 +0000 (02:25 +0800)]
Fixed bug reporting the significance of paired value t-test.

Due to a cut and paste error, the significance of paired
t-tests was wrong when the value of T was positive.
Thanks to Mike Griffiths for reporting this problem.

14 years agoUse Harry Thijssen's real name instead of his nick "unknown-1", at his request.
Ben Pfaff [Fri, 10 Jul 2009 03:13:16 +0000 (20:13 -0700)]
Use Harry Thijssen's real name instead of his nick "unknown-1", at his request.

14 years agoRelease PSPP 0.6.2-pre4. v0.6.2-pre4
Ben Pfaff [Thu, 9 Jul 2009 03:21:01 +0000 (20:21 -0700)]
Release PSPP 0.6.2-pre4.

14 years agoUpdate to latest nl.po.
Ben Pfaff [Thu, 9 Jul 2009 03:17:28 +0000 (20:17 -0700)]
Update to latest nl.po.

Thanks to unknown-1 and the coordinators at translationproject.org.

14 years agogui: Fix brown-paper-bag bug in output file name selection.
Ben Pfaff [Thu, 9 Jul 2009 03:12:11 +0000 (20:12 -0700)]
gui: Fix brown-paper-bag bug in output file name selection.

Thanks to michel@cecaps.ufmg.br for reporting the bug and the fix.

14 years agoCROSSTABS: Handle long string variables without crashing (bug #26131).
Ben Pfaff [Wed, 8 Jul 2009 02:44:20 +0000 (19:44 -0700)]
CROSSTABS: Handle long string variables without crashing (bug #26131).

14 years agoRelease PSPP 0.6.2-pre3. v0.6.2-pre3
Ben Pfaff [Fri, 3 Jul 2009 18:43:09 +0000 (11:43 -0700)]
Release PSPP 0.6.2-pre3.

14 years agoAdd Dutch translation.
Ben Pfaff [Fri, 3 Jul 2009 18:40:27 +0000 (11:40 -0700)]
Add Dutch translation.

Thanks to unknown-1 and the coordinators at translationproject.org.

14 years agoFix segfault drawing pie charts with old versions of libplot.
Ben Pfaff [Fri, 3 Jul 2009 18:34:26 +0000 (11:34 -0700)]
Fix segfault drawing pie charts with old versions of libplot.

If chart_create returned null, we dereferenced a null pointer just below.
Avoid doing this.

Also add similar fixes to other code that calls chart_create.  It may not
be necessary in every case.

Reported by Jason Stover.

14 years agoRelease PSPP 0.6.2-pre2. v0.6.2-pre2
Ben Pfaff [Fri, 3 Jul 2009 18:03:27 +0000 (11:03 -0700)]
Release PSPP 0.6.2-pre2.

14 years agoCorrect default_output_path function on Windows.
John Darrington [Wed, 13 May 2009 22:48:17 +0000 (06:48 +0800)]
Correct default_output_path function on Windows.

14 years agoEnsure that windows opens the right file for output.
John Darrington [Wed, 13 May 2009 22:54:56 +0000 (06:54 +0800)]
Ensure that windows opens the right file for output.

Thanks to Michel Boaventura for reporting this problem.
Fixes bug #26542

14 years agoRelocate the locale directory.
Ben Pfaff [Fri, 3 Jul 2009 17:48:26 +0000 (10:48 -0700)]
Relocate the locale directory.

Based on commit 31e674bbb in master, but stable refers to locale_dir from
different files.

Thanks to Michel Boaventura for reporting the problem.

14 years agoRelease PSPP 0.6.2 prerelease 1. v0.6.2-pre1
Ben Pfaff [Thu, 2 Jul 2009 17:17:13 +0000 (10:17 -0700)]
Release PSPP 0.6.2 prerelease 1.

14 years agochart: Fix format string issues in draw_tick callers.
Ben Pfaff [Thu, 2 Jul 2009 03:56:17 +0000 (20:56 -0700)]
chart: Fix format string issues in draw_tick callers.

The 'label' argument to draw_tick is used as a printf-type format string,
so callers must pass "%s" to safely use an arbitrary string as a label.

Also, hist_draw_bar was doing its own snprintf, but this commit changes it
to take advantage of that provided by draw_tick.

14 years agochart: Fix format string issues in chart_write_title callers.
Ben Pfaff [Thu, 2 Jul 2009 03:50:33 +0000 (20:50 -0700)]
chart: Fix format string issues in chart_write_title callers.

The 'title' argument to chart_write_title is used as a printf-type format
string, so callers must pass "%s" to safely use an arbitrary string as a
title.

14 years agosys-file-reader: Don't warn if compression bias field is 0.
Ben Pfaff [Thu, 18 Jun 2009 04:24:38 +0000 (21:24 -0700)]
sys-file-reader: Don't warn if compression bias field is 0.

Some software writes a value of 0 to the compression bias field.  We
expect that this field has a value of 100 and warn if we see any other
value, but there is no real need to do so (because it is very likely
that we can read the file correctly in any case).  So suppress the
warning if we see a value of 0 here, because it bothers users.

Thanks to Tony Reardon <tony@sir.com.au> for reporting this
unnecessary warning.

14 years agopor-file-reader: Tolerate short lines when detecting portable files.
Ben Pfaff [Thu, 18 Jun 2009 04:11:10 +0000 (21:11 -0700)]
por-file-reader: Tolerate short lines when detecting portable files.

When the portable file reader reads a file, it assumes that a line
shorter than 80 bytes should actually be padded out on the right with
spaces, because this is a fairly common problem in practice, perhaps
due to text editors or other software that drops spaces at the end of
a line.

However, pfm_detect, the function that is supposed to detect whether
a given file is an SPSS portable file, did not apply this heuristic to
the data that it read at the beginning of the file, and thus files in
which the first few lines were truncated this way were not detected
properly as portable files.

This commit fixes the problem by making pfm_detect a little bit
smarter.  It would probably be better to actually unify the
file-reading logic, instead of implementing it in two separate places,
but this appears to work adequately too.

Thanks to Tony Reardon <tony@sir.com.au> for reporting the problem
and supplying a file that demonstrated it.

14 years agodata-parser: Treat " ," the same as ",".
Ben Pfaff [Tue, 12 May 2009 03:56:39 +0000 (20:56 -0700)]
data-parser: Treat " ," the same as ",".

The data parser (used e.g. by DATA LIST) was unintentionally treating
soft separators (e.g. white space) followed by a hard separator (e.g.
a comma) as an empty field, but in fact it should be treated as just a
single separator.  This fixes it and adds a test.

Thanks to pascal barbedor <pbarbedor@gmail.com> for reporting the problem.

14 years agoEnsure that NUMERIC's format (if any) is a valid output format.
John Darrington [Sat, 9 May 2009 00:43:35 +0000 (08:43 +0800)]
Ensure that NUMERIC's format (if any) is a valid output format.

Thanks to Pascal Barbedor for reporting this problem.

15 years agoChange g_print to g_warning
John Darrington [Sat, 11 Apr 2009 07:18:39 +0000 (15:18 +0800)]
Change g_print to g_warning

15 years agoUse the replacement rename function from gnulib.
John Darrington [Wed, 8 Apr 2009 08:20:22 +0000 (16:20 +0800)]
Use the replacement rename function from gnulib.

Use the gnulib replacement rename function, to
overcome problems on certain systems saving a
file when that filename already exists. Closes bug #25795

15 years agoAllow users to set the precision of output statistics.
John Darrington [Tue, 7 Apr 2009 02:30:13 +0000 (10:30 +0800)]
Allow users to set the precision of output statistics.

Instead of hard coding the width and decimals of output
numbers, respect the default format in most instances.
Counts are normally displayed with the format of the weight
variable, if any.  Closes patch #6785

15 years agoFixed bug where piecharts with many segments crashed.
John Darrington [Thu, 2 Apr 2009 00:19:09 +0000 (08:19 +0800)]
Fixed bug where piecharts with many segments crashed.

Make sure that we don't index beyond the bounds of the
data_colour array.

15 years agoFixed bug writing portable files.
John Darrington [Tue, 31 Mar 2009 05:07:03 +0000 (13:07 +0800)]
Fixed bug writing portable files.

Don't append slash to sysmis values when writing portable
files.  Fixes bug #26034

15 years agoAdded #include <config.h> to files as appropriate.
John Darrington [Tue, 24 Mar 2009 10:12:44 +0000 (19:12 +0900)]
Added #include <config.h> to files as appropriate.

Thanks to Michel Boaventura for reporting this problem.

15 years agoFix corrupted .sav files on w32 builds
John Darrington [Fri, 20 Mar 2009 01:27:46 +0000 (10:27 +0900)]
Fix corrupted .sav files on w32 builds

Added the O_BINARY flag to the mode of files
created with open, so that lines aren't appended
with extraneous characters, thus corrupting .sav
files.

15 years agoCorrect typo in BINOMIAL section of user manual.
John Darrington [Tue, 17 Mar 2009 21:56:53 +0000 (06:56 +0900)]
Correct typo in BINOMIAL section of user manual.

Thanks to Erik Frebold for pointing out this problem.
Closes bug #25892

15 years agoFixed a bug reading empty strings from Postgres databases.
John Darrington [Sun, 8 Mar 2009 01:47:48 +0000 (10:47 +0900)]
Fixed a bug reading empty strings from Postgres databases.

Fixed a bug in the Postgresql import feature, where a segfault
would occur when a reading a database which contained string
fields with only null, or zero length values.

Thanks to Joerg Schmengle for reporting this.

15 years agoFix bug 25677
Jason Stover [Mon, 23 Feb 2009 16:14:45 +0000 (11:14 -0500)]
Fix bug 25677

15 years agoPrevent data sheet from traversing into an invalid column.
John Darrington [Sun, 22 Feb 2009 07:36:40 +0000 (16:36 +0900)]
Prevent data sheet from traversing into an invalid column.

Thanks to James R. Van Zandt for reporting this problem.

15 years agoRelocate path names when searching for files.
John Darrington [Sat, 7 Feb 2009 22:51:13 +0000 (07:51 +0900)]
Relocate path names when searching for files.

When searching for configuration files etc. in a
search path, relocate the filenames before testing
for their existence.  Closes bug #25508

15 years agoSilently ignore some inrecognised subtypes.
John Darrington [Thu, 5 Feb 2009 23:01:22 +0000 (08:01 +0900)]
Silently ignore some inrecognised subtypes.

When reading system files, record subtypes of which the developers are
aware but which pspp doesn't yet support are silently ignored.  Subtypes
which the developers are unaware provoke a message requesting the user
to send us a sample.

15 years agoAdded a set of per binary LDFLAGS parameters.
John Darrington [Wed, 12 Nov 2008 01:15:16 +0000 (10:15 +0900)]
Added a set of per binary LDFLAGS parameters.

Added two optional variables PSPP_LDFLAGS and PSPPIRE_LDFLAGS for the convenience of package creators who need to be able to pass flags to one program but not the other.

15 years agoUse gnulib 'close' module, for compatibility with newest Gnulib.
Ben Pfaff [Tue, 4 Nov 2008 03:49:08 +0000 (19:49 -0800)]
Use gnulib 'close' module, for compatibility with newest Gnulib.

Otherwise at link we get an undefined reference to symbol
_close_used_without_requesting_gnulib_module_close.

Thanks to Michel Boaventura for reporting the problem.

15 years agoMove definition of OUTPUT_FILE_NAME to before first use.
John Darrington [Sat, 1 Nov 2008 06:10:50 +0000 (15:10 +0900)]
Move definition of OUTPUT_FILE_NAME to before first use.

Problem manifested itself when building with cygwin.
Reported by unknown-1

15 years agoMarked CORRELATIONS and PEARSON CORRELATIONS as unimplemented.
John Darrington [Sat, 18 Oct 2008 02:50:52 +0000 (10:50 +0800)]
Marked CORRELATIONS and PEARSON CORRELATIONS as unimplemented.

These commands were defined in command.def, but only the parser
was actually implemented; they didn't actually do anything.
Marking them as unimplemented until they're finished.

15 years agoAdded (source) configurable default output directory.
John Darrington [Sat, 18 Oct 2008 01:09:47 +0000 (09:09 +0800)]
Added (source) configurable default output directory.

Some systems expect files to be dumped in the home directory
instead of the current directory.  This change makes that
easier.

15 years agoFix crash in tabulating long-string variables in CROSSTABS.
Ben Pfaff [Thu, 16 Oct 2008 03:48:15 +0000 (20:48 -0700)]
Fix crash in tabulating long-string variables in CROSSTABS.

Fixes bug #24557.

15 years agoDo not assume that canonicalize_file_name() always returns non-null.
Ben Pfaff [Thu, 16 Oct 2008 03:39:57 +0000 (20:39 -0700)]
Do not assume that canonicalize_file_name() always returns non-null.

Fixes bug #24569.

15 years agoMake src/libpspp/version.c depend on Makefile.
Ben Pfaff [Tue, 14 Oct 2008 01:40:54 +0000 (18:40 -0700)]
Make src/libpspp/version.c depend on Makefile.

This ensures that re-running "configure" with different settings causes
version.c to be rebuilt.

Thanks to Ivy Foster <ivy.foster@gmail.com> for reporting the problem.

15 years agoUpdate NEWS for 0.6.1. v0.6.1
Ben Pfaff [Fri, 10 Oct 2008 04:32:35 +0000 (21:32 -0700)]
Update NEWS for 0.6.1.

15 years agoFixed problems when building with --enable-relocatable
John Darrington [Tue, 7 Oct 2008 11:40:56 +0000 (19:40 +0800)]
Fixed problems when building with --enable-relocatable

Added the INSTALLDIR macro to tests/dissect-sysfile.
Relocated the pathname of the splash screen graphic.

15 years agoUse Gnulib module "regex", to fix linking on Mingw.
Ben Pfaff [Sun, 5 Oct 2008 18:17:10 +0000 (11:17 -0700)]
Use Gnulib module "regex", to fix linking on Mingw.

The GUI code uses POSIX regular expressions, which Mingw has in a separate
library (-lregex).  We could just search for that library, but by including
our own implementation (via Gnulib) we also work around known bugs in
system regular expression implementations.

15 years agoUpdate NEWS for 0.6.1-rc2.
Ben Pfaff [Sat, 4 Oct 2008 04:21:28 +0000 (21:21 -0700)]
Update NEWS for 0.6.1-rc2.

15 years agoAdd ".sav" or ".por" suffix to filename when saving with Save_As
Ben Pfaff [Sat, 4 Oct 2008 04:11:20 +0000 (21:11 -0700)]
Add ".sav" or ".por" suffix to filename when saving with Save_As

Closes bug #23137

(This is a cross-port of commit 169887f6d6d7bf5c10d5b05786aa3fd252040c93
from the master branch, originally authored and committed by John
Darrington.)

15 years agoOnly use -fgnu89-inline if the compiler actually supports it.
Ben Pfaff [Sat, 4 Oct 2008 03:59:44 +0000 (20:59 -0700)]
Only use -fgnu89-inline if the compiler actually supports it.

Jason Stover pointed out that we were using -fgnu89-inline even when the
compiler didn't support it.  Obviously that's not good.

15 years agoAlso warn about missing prerequisites as we encounter them (bug #24445).
Ben Pfaff [Sat, 4 Oct 2008 04:01:50 +0000 (21:01 -0700)]
Also warn about missing prerequisites as we encounter them (bug #24445).

It can happen that configure bails out in the middle due to some issue
that PSPP cannot directly control; for example, AC_CHECK_SIZEOF exits
unconditionally if it fails.  If this happens then, before, we would fail
to warn about missing required prerequisites that could well have been
the actual cause of the failure, because we only warn about these at
the end of the run.

Now, we warn about missing prerequisites both at time of detection and
in a summary at the end, to head off this problem.

Thanks to Jim Orr for allowing me to notice the problem.

15 years agoAdd note to INSTALL explaining how to use libraries from /usr/local.
Ben Pfaff [Sat, 4 Oct 2008 04:00:55 +0000 (21:00 -0700)]
Add note to INSTALL explaining how to use libraries from /usr/local.

Several users have had trouble building PSPP with self-built GSL, etc.
that were installed to /usr/local.  Explain how to do it here to be
more friendly to Unix novices.

Thanks to Jim Orr for making me realize that this was important.

15 years agoAdd pspp-dev.dvi to CLEANFILES.
Ben Pfaff [Sat, 4 Oct 2008 03:54:28 +0000 (20:54 -0700)]
Add pspp-dev.dvi to CLEANFILES.

Automake does not seem to clean this file automatically.  (Is this an
Automake bug?)

15 years agoAppend $(EXEEXT_FOR_BUILD) to output file name when building q2c.
Ben Pfaff [Sat, 4 Oct 2008 03:53:51 +0000 (20:53 -0700)]
Append $(EXEEXT_FOR_BUILD) to output file name when building q2c.

Thanks to "Michel Boaventura" <michel.boaventura@gmail.com> for reporting
this problem and to John Darrington for assisting with the solution.

15 years agoUpdate NEWS for 0.6.1 release.
Ben Pfaff [Fri, 3 Oct 2008 03:42:23 +0000 (20:42 -0700)]
Update NEWS for 0.6.1 release.

15 years agoDon't append % to count totals.
John Darrington [Sun, 14 Sep 2008 13:29:53 +0000 (21:29 +0800)]
Don't append % to count totals.

There was an erroneous '%' appended to the totals for count
values. This change removes it.  Fixes bug #24003

15 years agoDon't destroy dictionary on error if we didn't create it.
John Darrington [Sun, 14 Sep 2008 12:51:38 +0000 (20:51 +0800)]
Don't destroy dictionary on error if we didn't create it.

Avoid assertion failure on bad input.  Closes bug #24031

15 years agoFixed bug which caused a crash if "end data." was not left aligned.
John Darrington [Sun, 14 Sep 2008 08:57:10 +0000 (16:57 +0800)]
Fixed bug which caused a crash if "end data." was not left aligned.

15 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Sat, 23 Aug 2008 00:59:00 +0000 (08:59 +0800)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

15 years agoWork around bug #24033 (appending to output in cygwin).
John Darrington [Sat, 23 Aug 2008 00:44:32 +0000 (08:44 +0800)]
Work around bug #24033 (appending to output in cygwin).

Cygwin (and perhaps other w32 platforms) cannot write to a file
whilst it is open for reading.  This kludge therefore closes the
output after pasting into the output viewer and re-opens when new
data is appended.  It'll be slow if the output file becomes large.

15 years agoStart generating ChangeLog automatically from Git commit messages.
Ben Pfaff [Fri, 1 Aug 2008 03:47:49 +0000 (20:47 -0700)]
Start generating ChangeLog automatically from Git commit messages.

Thus, at the same time we rename the existing ChangeLog files to
OChangeLog and add them to EXTRA_DIST to make sure that they get
distributed.

15 years agoEstimate parameters. Moved some code to re-usable functions.
Jason H Stover [Sun, 17 Aug 2008 21:40:15 +0000 (17:40 -0400)]
Estimate parameters. Moved some code to re-usable functions.

15 years agoPointer DEPVAR is now required to be set correctly in linreg.c
Jason H Stover [Sat, 16 Aug 2008 21:29:31 +0000 (17:29 -0400)]
Pointer DEPVAR is now required to be set correctly in linreg.c

15 years agoInitial versions of functions to estimate parameters
Jason H Stover [Sat, 16 Aug 2008 21:26:37 +0000 (17:26 -0400)]
Initial versions of functions to estimate parameters
via the covariance matrix

15 years agoInitialise label for piechart slices.
John Darrington [Fri, 8 Aug 2008 01:13:07 +0000 (09:13 +0800)]
Initialise label for piechart slices.
(Closes bug #24014

15 years agoBump minor version number so that git builds are distinct from released version
John Darrington [Fri, 8 Aug 2008 01:08:18 +0000 (09:08 +0800)]
Bump minor version number so that git builds are distinct from released version

15 years agoUse standard C99 isfinite, isnan, isinf in place of GSL substitutes.
Ben Pfaff [Sun, 27 Jul 2008 18:12:45 +0000 (11:12 -0700)]
Use standard C99 isfinite, isnan, isinf in place of GSL substitutes.

In change a9afcdd22, "Use gsl_isnan instead of isnan, ...," isfinite,
isnan, and isinf were changed to use the GSL substitutes because of
lack of portability of the C99 versions.  Now, gnulib has portable
versions of all of these, so change them back.

This commit changes calls to gsl_finite() to call isfinite() instead
of the equivalent finite().  isfinite() is correct here: both gsl_finite()
and finite() return true for NaNs, which is a surprising result given
that a NaN is definitely not finite, but isfinite() returns false and,
more importantly, behaves as actually wanted in each place it is used
in PSPP code.

This commit requires upgrading gnulib to at least change 5183a0e3c,
"Add missing dependencies on new m4/exponent[fdl].m4 files," or later,
and re-running "make -f Smake".

15 years agoConstness
John Darrington [Sun, 27 Jul 2008 01:02:42 +0000 (09:02 +0800)]
Constness

15 years agoChanged the default WORKSPACE value to 64MB.
John Darrington [Sun, 27 Jul 2008 00:47:06 +0000 (08:47 +0800)]
Changed the default WORKSPACE value to 64MB.
Corrected documentation of WORKSPACE.
When --testing-mode is set, workspace can now be arbitrarily low.

15 years agoNew function for adding a numbering column to a casereader.
Ben Pfaff [Sat, 26 Jul 2008 06:25:53 +0000 (23:25 -0700)]
New function for adding a numbering column to a casereader.

15 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Sat, 26 Jul 2008 06:12:01 +0000 (14:12 +0800)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

Conflicts:

src/math/ChangeLog

15 years agoMerge with recent change by Jason.
John Darrington [Sat, 26 Jul 2008 05:47:40 +0000 (13:47 +0800)]
Merge with recent change by Jason.

15 years agoRemoved the value_cnt associated with the caseordering
John Darrington [Sat, 26 Jul 2008 05:36:03 +0000 (13:36 +0800)]
Removed the value_cnt associated with the caseordering
Made sure that sort_execute returns a casereader the same
dimensions as its subject.

15 years agoDropped weight argument. Corrected update of entries of the covariance matrix
Jason H Stover [Thu, 24 Jul 2008 21:53:50 +0000 (17:53 -0400)]
Dropped weight argument. Corrected update of entries of the covariance matrix

15 years agoNo longer store entire data set in memory.
Jason H Stover [Tue, 22 Jul 2008 21:27:55 +0000 (17:27 -0400)]
No longer store entire data set in memory.
Accumulate covariance matrix using covariance_pass_two

15 years agoWhy does git only commit some of the changes if you don't pass the -a flag?
John Darrington [Sun, 20 Jul 2008 12:25:15 +0000 (20:25 +0800)]
Why does git only commit some of the changes if you don't pass the -a flag?

15 years agoDeleted lib/gsl-extras and updated gsl dependence to 1.8
John Darrington [Sun, 20 Jul 2008 12:16:05 +0000 (20:16 +0800)]
Deleted lib/gsl-extras and updated gsl dependence to 1.8

15 years agoRecurse to simplify flow of covariance_pass_two(). Move tests for V2 into for loop.
Jason H Stover [Thu, 17 Jul 2008 22:11:21 +0000 (18:11 -0400)]
Recurse to simplify flow of covariance_pass_two(). Move tests for V2 into for loop.

15 years agoMerge branch 'master' of ssh://jstover@git.sv.gnu.org/srv/git/pspp
Jason Stover [Wed, 16 Jul 2008 22:28:31 +0000 (18:28 -0400)]
Merge branch 'master' of ssh://jstover@git.sv.gnu.org/srv/git/pspp

15 years agoFixed update of covariance matrix when both variables are categorical.
Jason Stover [Wed, 16 Jul 2008 22:27:27 +0000 (18:27 -0400)]
Fixed update of covariance matrix when both variables are categorical.
Added function to access counted categories.

15 years agoMake PSPP_LINK2_IFELSE macro work with Autoconf earlier than 2.62.
Ben Pfaff [Wed, 16 Jul 2008 17:18:35 +0000 (10:18 -0700)]
Make PSPP_LINK2_IFELSE macro work with Autoconf earlier than 2.62.

15 years agoFixed updating of covariance matrix when both variables
Jason Stover [Wed, 16 Jul 2008 22:22:33 +0000 (18:22 -0400)]
Fixed updating of covariance matrix when both variables
are categorical. Reported by John Darrington

15 years agoAdded functions to compute covariance matrix.
Jason Stover [Wed, 16 Jul 2008 02:54:36 +0000 (22:54 -0400)]
Added functions to compute covariance matrix.

15 years agoAutodetect and fix GSL use of GCC-style "extern inline".
Ben Pfaff [Sun, 13 Jul 2008 18:17:22 +0000 (11:17 -0700)]
Autodetect and fix GSL use of GCC-style "extern inline".

15 years agoEnable users of dist tarballs to use --enable-gui-tools.
Ben Pfaff [Sun, 6 Jul 2008 00:07:16 +0000 (17:07 -0700)]
Enable users of dist tarballs to use --enable-gui-tools.

Formerly, we didn't distribute the necessary files.