pspp-builds.git
15 years agoAdded LIB_CLOSE to link flags for test programs.
John Darrington [Sat, 7 Feb 2009 07:41:08 +0000 (16:41 +0900)]
Added LIB_CLOSE to link flags for test programs.

This allows all binaries needed by "make check" to be built.

15 years agoAdd LIB_CLOSE to link command for dissect-sysfile program.
John Darrington [Sat, 7 Feb 2009 07:32:03 +0000 (16:32 +0900)]
Add LIB_CLOSE to link command for dissect-sysfile program.

15 years agoLink against -lws2_32 on Windows.
Ben Pfaff [Sat, 7 Feb 2009 05:49:44 +0000 (21:49 -0800)]
Link against -lws2_32 on Windows.

Gnulib commit df1da811, "Fix link errors on Windows when close
module is used", adds a Makefile variable $(LIB_CLOSE) that expands
to -lws2_32.  This commit adds that variable to the linker command
line.

It might not be necessary to add this to both pspp and psppire,
but it shouldn't hurt.

15 years agoFix minor build issues.
John Darrington [Fri, 6 Feb 2009 09:55:54 +0000 (18:55 +0900)]
Fix minor build issues.

Remove dependence on lib/misc which no longer exists.
Add new file src/math/wilcoxon-sig.[ch] to makefile.

15 years agowilcoxon: Drop now-unnecessary timer support.
Ben Pfaff [Fri, 6 Feb 2009 06:28:15 +0000 (22:28 -0800)]
wilcoxon: Drop now-unnecessary timer support.

Calculating the Wilcoxon significance level now takes only a
fraction of a second, so there is no need to support a timer.

Also, report the problem if the significance level cannot be
calculated.

15 years agoSpeed up Wilcoxon matched-pairs signed-ranks significance routine.
Ben Pfaff [Fri, 6 Feb 2009 05:25:55 +0000 (21:25 -0800)]
Speed up Wilcoxon matched-pairs signed-ranks significance routine.

The performance of this routine was O(2**N).  This improves it to
O(N*W).  For N=30, W=120 this reduces calculation time from 6m9s
to .002s, which is a 123000x speedup.

Refer to bug #25466 for more information.

15 years agoperl-module: fix version mismatch between module and PSPP
Ben Pfaff [Fri, 6 Feb 2009 04:34:27 +0000 (20:34 -0800)]
perl-module: fix version mismatch between module and PSPP

The version number update in the previous Perl module commit
broke the Perl module's version number checking.  Oops.  This fixes
it (and updates NEWS).

15 years agoperl-module: Document and test PSPP::Dict::get_var_cnt().
Ben Pfaff [Mon, 2 Feb 2009 03:06:52 +0000 (19:06 -0800)]
perl-module: Document and test PSPP::Dict::get_var_cnt().

This function was present but not documented or tested.

15 years agoperl-module: Make PSPP::Reader::get_next_case() return a list. v0.7.2
Ben Pfaff [Fri, 6 Feb 2009 03:36:18 +0000 (19:36 -0800)]
perl-module: Make PSPP::Reader::get_next_case() return a list.

PSPP::Reader::get_next_case() was documented to return a list,
but actually it returned a reference to a list.  This commit
changes the behavior to match the documentation.

This also fixes the behavior on reading past the end of the file.
Previously this was documented to return undef but caused a
segfault in practice.  Now it returns an empty list.

Also increase PSPP version number from 0.7.1 to 0.7.2 at John
Darrington's request, to alert users of the previous version of
the Perl interface.

15 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Wed, 4 Feb 2009 05:33:54 +0000 (14:33 +0900)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

15 years agoDon't build the perl module if cross compiling.
John Darrington [Wed, 4 Feb 2009 05:29:53 +0000 (14:29 +0900)]
Don't build the perl module if cross compiling.

Whilst, in general, it should be possible to cross compile a perl
module, the current organisation of the module doesn't support it.
So this has been disabled until somebody has the time and resources
to fix and test it.

15 years agoINSTALL: Add hints about how to obtain root permission.
Ben Pfaff [Mon, 2 Feb 2009 04:21:52 +0000 (20:21 -0800)]
INSTALL: Add hints about how to obtain root permission.

Suggested by Nick Thompson <nickadamthompson@gmail.com>.

15 years agoperl-module: Document PSPP::Dict::get_var() for too-large index.
Ben Pfaff [Mon, 2 Feb 2009 00:30:01 +0000 (16:30 -0800)]
perl-module: Document PSPP::Dict::get_var() for too-large index.

Approved by John Darrington.

15 years agoAccept LF, CR LF, and LF as new-line sequences in data files.
Ben Pfaff [Sat, 31 Jan 2009 05:03:34 +0000 (21:03 -0800)]
Accept LF, CR LF, and LF as new-line sequences in data files.

Until now, PSPP has used the host operating system's idea of the
new-line sequence when reading data files and other text files.
This means that, when a file with CR LF line ends is read on an OS
that uses LF as new-line (e.g. an MS-DOS file on Unix), each line
appears to have a CR at the the end.  This commit fixes the
problem, by normalizing the new-line sequence at time of reading.

This commit eliminates a performance optimization from
ds_read_line(), because the getdelim() function that it used cannot
be made to stop reading at one of two different delimiters.  If
this causes a real performance regression, then the getndelim2
function from gnulib could be used to restore the optimization.

Also adds a test to make sure that it works.

Thanks to RĂ©mi Dewitte <remi@gide.net> for pointing out the problem
and providing an initial patch (which solved the problem in a
completely different way from this commit).

15 years agoUpdated NEWS
John Darrington [Thu, 29 Jan 2009 23:25:28 +0000 (08:25 +0900)]
Updated NEWS

15 years agoCorrect the directory of the perl module tarball target
John Darrington [Thu, 29 Jan 2009 23:23:29 +0000 (08:23 +0900)]
Correct the directory of the perl module tarball target

15 years agoBump minor version number v0.7.1
John Darrington [Thu, 29 Jan 2009 23:01:28 +0000 (08:01 +0900)]
Bump minor version number

15 years agoMerge branch 'savannah/perl-module'
John Darrington [Thu, 29 Jan 2009 22:37:37 +0000 (07:37 +0900)]
Merge branch 'savannah/perl-module'

Conflicts:

po/en_GB.po
src/libpspp/automake.mk

15 years agointeraction.c: Introduced interaction_variable and interaction_value
Jason H Stover [Wed, 28 Jan 2009 21:29:38 +0000 (16:29 -0500)]
interaction.c: Introduced interaction_variable and interaction_value
structs and associated functions.

covariance-matrix.c: Altered covariance_accumulate_listwise,
covariance_accumulate_pairwise, and update_* functions to handle
interactions.

glm.q: Added temporary NULL and 0 as final args to call to
covariance_matrix_accumulate.

15 years agoRemove pspp-vers.pl which did more harm than good.
John Darrington [Tue, 27 Jan 2009 06:51:23 +0000 (15:51 +0900)]
Remove pspp-vers.pl which did more harm than good.

Removed the auto-generated file pspp-vers.pl and all references
to it.  Instead, use a manually set string for the version.

15 years agoChange COPYING from GPLv2 to GPLv3
John Darrington [Fri, 23 Jan 2009 09:36:52 +0000 (18:36 +0900)]
Change  COPYING from GPLv2 to GPLv3

15 years agoMerge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp
John Darrington [Tue, 20 Jan 2009 22:57:58 +0000 (07:57 +0900)]
Merge branch 'master' of ssh://jmd@git.sv.gnu.org/srv/git/pspp

15 years agoFix further bug in NPAR BINOMIAL
John Darrington [Tue, 20 Jan 2009 22:54:56 +0000 (07:54 +0900)]
Fix further bug in NPAR BINOMIAL

Change "break" to "continue", so that if a binomial
variable was missing, only this single variable is skipped
rather than all subsequent ones.  Thanks to Ben Pfaff for
reporting this.

15 years agoFixed bug in compare_values_short. Reported by Ben Pfaff.
Jason H Stover [Mon, 19 Jan 2009 20:20:17 +0000 (15:20 -0500)]
Fixed bug in compare_values_short. Reported by Ben Pfaff.

15 years agoFixed bug allocating the memory in NPAR BINOMIAL
John Darrington [Mon, 19 Jan 2009 07:50:54 +0000 (16:50 +0900)]
Fixed bug allocating the memory in NPAR BINOMIAL

Thanks to Ben Pfaff for reporting this problem.

15 years agoMerge commit 'origin/stable'
John Darrington [Sat, 17 Jan 2009 02:47:25 +0000 (11:47 +0900)]
Merge commit 'origin/stable'

Conflicts:

src/language/utilities/include.c
src/ui/terminal/automake.mk
tests/command/insert.sh

15 years agoPut unique dictionary indexes into internal variables
Ben Pfaff [Wed, 14 Jan 2009 04:41:54 +0000 (20:41 -0800)]
Put unique dictionary indexes into internal variables

Code that Jason is working on creates some internal variables, using
var_create_internal(), and wants to hash those variables based
on their dictionary indexes, along with some other variables that
are actually in a dictionary.  Thus, the internal variables need to
have unique dictionary indexes.

15 years agofixed update of moments
Jason H Stover [Mon, 12 Jan 2009 21:21:13 +0000 (16:21 -0500)]
fixed update of moments

15 years agoRewrote interaction.[ch]
Jason H Stover [Mon, 12 Jan 2009 16:18:44 +0000 (11:18 -0500)]
Rewrote interaction.[ch]

15 years agoAdded module file to PM entry
John Darrington [Mon, 12 Jan 2009 06:38:32 +0000 (15:38 +0900)]
Added module file to PM entry

15 years agoFix syntax errors in pod
John Darrington [Mon, 12 Jan 2009 05:38:44 +0000 (14:38 +0900)]
Fix syntax errors in pod

15 years agoUpdated copyright notices with the year 2009
John Darrington [Sun, 11 Jan 2009 01:38:09 +0000 (10:38 +0900)]
Updated copyright notices with the year 2009

15 years agoAdd the perl module tarball to the build target
John Darrington [Sun, 11 Jan 2009 00:45:47 +0000 (09:45 +0900)]
Add the perl module tarball to the build target

15 years agoMerge branch 'master' of /home/john/Development/pspp-bare
John Darrington [Sat, 10 Jan 2009 23:15:49 +0000 (08:15 +0900)]
Merge branch 'master' of /home/john/Development/pspp-bare

15 years agoAdd short entry to Examples.pod describing Reader
John Darrington [Sat, 10 Jan 2009 03:42:01 +0000 (12:42 +0900)]
Add short entry to Examples.pod describing Reader

15 years agoMerge commit 'origin/master'; commit 'savannah/master'
John Darrington [Sat, 10 Jan 2009 00:11:53 +0000 (09:11 +0900)]
Merge commit 'origin/master'; commit 'savannah/master'

15 years agoMove .ui files to build directory
John Darrington [Fri, 9 Jan 2009 23:49:32 +0000 (08:49 +0900)]
Move .ui files to build directory

The .ui files had been inadvertently put in the src directory.
This change moves them to the build directory, since they're
(currently) generated from the .glade files.

15 years agoReplaced call to g_strcmp0 with strcmp, since the former
John Darrington [Fri, 9 Jan 2009 21:43:34 +0000 (06:43 +0900)]
Replaced call to g_strcmp0 with strcmp, since the former
is available only in glib 2.16+.

Thanks to unknown-1 for reporting this.

15 years agoLink the perl module against the shared library instead of the static one
John Darrington [Fri, 9 Jan 2009 08:37:10 +0000 (17:37 +0900)]
Link the perl module against the shared library instead of the static one

15 years agoFix assertion in case_copy().
Ben Pfaff [Fri, 9 Jan 2009 05:36:23 +0000 (21:36 -0800)]
Fix assertion in case_copy().

This is an apparent cut-and-paste error.

15 years agoEnsure that perl module tests work before pspp has been installed
John Darrington [Thu, 8 Jan 2009 08:23:53 +0000 (17:23 +0900)]
Ensure that perl module tests work before pspp has been installed

15 years agoAdded method to get the custom variable attributes
John Darrington [Thu, 8 Jan 2009 03:08:44 +0000 (12:08 +0900)]
Added method to get the custom variable attributes

15 years agoUpdate module to reflect new case API
John Darrington [Wed, 7 Jan 2009 22:57:12 +0000 (07:57 +0900)]
Update module to reflect new case API

15 years agoMerge commit 'savannah/master'
John Darrington [Wed, 7 Jan 2009 22:20:47 +0000 (07:20 +0900)]
Merge commit 'savannah/master'

15 years agoMerge branch 'master' of /home/john/Development/pspp-bare
John Darrington [Wed, 7 Jan 2009 22:16:58 +0000 (07:16 +0900)]
Merge branch 'master' of /home/john/Development/pspp-bare

15 years agoMake cases simpler, faster, and easier to understand.
Ben Pfaff [Wed, 7 Jan 2009 07:17:32 +0000 (23:17 -0800)]
Make cases simpler, faster, and easier to understand.

Cases (struct ccase) is reference-counted to avoid copying more
data than necessary.  But the existing implementation that uses
separate structures for references to cases (struct ccase) and
the cases themselves (struct case_data) has a number of issues:

   - The semantics of struct ccase are tricky to remember; one
     has to remember to treat struct ccase as essentially a
     pointer type.  I get confused sometimes myself.

     (One of the symptoms of this was the existence of
      the case_nullify and case_is_null functions, which are
      exactly analogous to setting a pointer to null and comparing
      one against null, respectively.)

   - Every reference to data in a case involves two levels of
     indirection, which is one more than actually necessary.

   - The implementation is somewhat complicated.

This commit simplifies things, by dropping a level of indirection.
Now, a case is just a pointer to a struct ccase, which contains
the actual data.  Reference counting is still present, but it is
simplified.  The only thing that must be remembered is that, before
modifying a case that may be shared, it must be passed through
case_unshare() to make a new unshared copy if necessary.

15 years agoEnsure that dict survives sysfile
John Darrington [Wed, 7 Jan 2009 01:16:03 +0000 (10:16 +0900)]
Ensure that dict survives sysfile

Make sure that the dict of a sysfile survives for the
lifetime of that sysfile.  Thanks to Rob Messer for
reporting this bug.

15 years agoRemove inappropriate include directives
John Darrington [Sun, 4 Jan 2009 07:39:49 +0000 (16:39 +0900)]
Remove inappropriate include directives

15 years agoRemove invalid property
John Darrington [Sun, 4 Jan 2009 07:04:38 +0000 (16:04 +0900)]
Remove invalid property

15 years agoFix pointer types as appropriate
John Darrington [Sun, 4 Jan 2009 07:00:04 +0000 (16:00 +0900)]
Fix pointer types as appropriate

15 years agoConvert psppire.glade to psppire.ui
John Darrington [Sun, 4 Jan 2009 06:48:59 +0000 (15:48 +0900)]
Convert psppire.glade to psppire.ui

15 years agoConverted T-Test dialogs to GtkBuilder
John Darrington [Sun, 4 Jan 2009 06:03:02 +0000 (15:03 +0900)]
Converted T-Test dialogs to GtkBuilder

15 years agoAdd *.ui to .gitignore
John Darrington [Sun, 4 Jan 2009 05:32:36 +0000 (14:32 +0900)]
Add *.ui to .gitignore

15 years agoConvert Regression dialog to GtkBuilder
John Darrington [Sun, 4 Jan 2009 05:31:45 +0000 (14:31 +0900)]
Convert Regression dialog to GtkBuilder

15 years agoConvert MessageDialog to GtkBuilder
John Darrington [Sun, 4 Jan 2009 05:26:11 +0000 (14:26 +0900)]
Convert MessageDialog to GtkBuilder

15 years agoConvert Crosstabs dialog to GtkBuilder
John Darrington [Sun, 4 Jan 2009 05:19:07 +0000 (14:19 +0900)]
Convert Crosstabs dialog to GtkBuilder

15 years agoConvert Examine dialog to GtkBuilder
John Darrington [Sun, 4 Jan 2009 05:09:30 +0000 (14:09 +0900)]
Convert Examine dialog to GtkBuilder

15 years agoConvert Frequencies dialog to GtkBuilder
John Darrington [Sun, 4 Jan 2009 04:59:50 +0000 (13:59 +0900)]
Convert Frequencies dialog to GtkBuilder

15 years agoMigrated rank and recode dialogs to GtkBuilder
John Darrington [Sat, 3 Jan 2009 12:45:47 +0000 (21:45 +0900)]
Migrated rank and recode dialogs to GtkBuilder

15 years agoAdded infrastructure for GtkBuilder and change oneway-dialog to use it.
John Darrington [Sat, 3 Jan 2009 12:20:28 +0000 (21:20 +0900)]
Added infrastructure for GtkBuilder and change oneway-dialog to use it.

15 years agoNew subroutine PSPP::Dict::get_var_by_name
John Darrington [Thu, 25 Dec 2008 03:16:35 +0000 (12:16 +0900)]
New subroutine PSPP::Dict::get_var_by_name

15 years agoMerge branch 'master' of /home/john/Development/pspp-bare
John Darrington [Thu, 25 Dec 2008 02:53:27 +0000 (11:53 +0900)]
Merge branch 'master' of /home/john/Development/pspp-bare

15 years agoAutomatically detect src dir from build dir
John Darrington [Thu, 25 Dec 2008 02:52:57 +0000 (11:52 +0900)]
Automatically detect src dir from build dir

15 years agoUpdate abstract
John Darrington [Thu, 25 Dec 2008 00:27:25 +0000 (09:27 +0900)]
Update abstract

15 years agocorrect documentation
John Darrington [Wed, 24 Dec 2008 08:00:54 +0000 (17:00 +0900)]
correct documentation

15 years agoUpdate documentation of perl module
John Darrington [Wed, 24 Dec 2008 07:57:39 +0000 (16:57 +0900)]
Update documentation of perl module

15 years agoEnsure that module version agrees with pspp version
John Darrington [Wed, 24 Dec 2008 06:34:59 +0000 (15:34 +0900)]
Ensure that module version agrees with pspp version

15 years agoAdded functions to enable reading data files from perl
John Darrington [Wed, 24 Dec 2008 03:00:14 +0000 (12:00 +0900)]
Added functions to enable reading data files from perl

Extended the perl module so that existing data files
can be read using the perl bindings.

15 years agoRead version header from source
John Darrington [Mon, 22 Dec 2008 09:17:40 +0000 (18:17 +0900)]
Read version header from source

15 years agoChange the perl module's distname to be more distinct from that of the main distribution
John Darrington [Mon, 22 Dec 2008 06:43:57 +0000 (15:43 +0900)]
Change the perl module's distname to be more distinct from that of the main distribution

15 years agoIntegrated the perl module into the pspp build system.
John Darrington [Sun, 21 Dec 2008 07:53:09 +0000 (16:53 +0900)]
Integrated the perl module into the pspp build system.

15 years agoAdd perl parseable line to src/libpspp/version.c
John Darrington [Sat, 20 Dec 2008 06:53:50 +0000 (15:53 +0900)]
Add perl parseable line to src/libpspp/version.c

Cause a line of the form $VERSION='x.y.z' to be added
to the file src/libpspp/version.c so that recent versions
of Perl's MakeMaker recognises it.

15 years agoRename lib/gtksheet to lib/gtk-contrib
John Darrington [Mon, 15 Dec 2008 06:06:07 +0000 (15:06 +0900)]
Rename lib/gtksheet to lib/gtk-contrib

15 years agoCreated new directory src/ui/gui/sheet
John Darrington [Mon, 15 Dec 2008 05:30:41 +0000 (14:30 +0900)]
Created new directory src/ui/gui/sheet

Moved files from lib/gtksheet to src/ui/gui/sheet except those whose
copyright is not FSF owned.

15 years agoAdjusted packing properties as appropriatate
John Darrington [Sun, 14 Dec 2008 22:21:38 +0000 (07:21 +0900)]
Adjusted packing properties as appropriatate

15 years agoRemove expand property from inappropriate widget
John Darrington [Sun, 14 Dec 2008 22:03:05 +0000 (07:03 +0900)]
Remove expand property from inappropriate widget

15 years agoReadd lost files
John Darrington [Sun, 14 Dec 2008 06:58:03 +0000 (15:58 +0900)]
Readd lost files

15 years agoMoved marshallers to src/ui/gui
John Darrington [Sun, 14 Dec 2008 06:45:58 +0000 (15:45 +0900)]
Moved marshallers to src/ui/gui

15 years agoRename GtkSheet to PsppireSheet
John Darrington [Sun, 14 Dec 2008 04:56:01 +0000 (13:56 +0900)]
Rename GtkSheet to PsppireSheet

15 years agoRename gsheetmodel to psppiresheetmodel
John Darrington [Sun, 14 Dec 2008 03:20:25 +0000 (12:20 +0900)]
Rename gsheetmodel to psppiresheetmodel

15 years agoMerge commit 'HEAD'; branch 'rewrite-sheet'
John Darrington [Sun, 14 Dec 2008 02:08:37 +0000 (11:08 +0900)]
Merge commit 'HEAD'; branch 'rewrite-sheet'

15 years agoFix warning
John Darrington [Sat, 13 Dec 2008 07:34:34 +0000 (16:34 +0900)]
Fix warning

15 years agoRe-enabled display of global sheet button
John Darrington [Sat, 13 Dec 2008 03:46:35 +0000 (12:46 +0900)]
Re-enabled display of global sheet button

15 years agoMore runtime warnings fixed
John Darrington [Fri, 12 Dec 2008 13:13:20 +0000 (22:13 +0900)]
More runtime warnings fixed

15 years agoFix some runtime warnings
John Darrington [Fri, 12 Dec 2008 11:34:41 +0000 (20:34 +0900)]
Fix some runtime warnings

15 years agoDon't set row/column to zero when selecting
John Darrington [Fri, 12 Dec 2008 10:26:08 +0000 (19:26 +0900)]
Don't set row/column to zero when selecting

15 years agoFix compiler warning
John Darrington [Fri, 12 Dec 2008 07:34:44 +0000 (16:34 +0900)]
Fix compiler warning

15 years agoFixed bug which manifested itself in the text import dialog
John Darrington [Fri, 12 Dec 2008 07:24:57 +0000 (16:24 +0900)]
Fixed bug which manifested itself in the text import dialog

15 years agoRedraw cells when a row/column is resize
John Darrington [Thu, 11 Dec 2008 09:14:05 +0000 (18:14 +0900)]
Redraw cells when a row/column is resize

15 years agoPrevent updates to the model from feeding back to the current sheet
John Darrington [Wed, 10 Dec 2008 11:58:05 +0000 (20:58 +0900)]
Prevent updates to the model from feeding back to the current sheet

15 years agoFix problem where entry strings got mangled
John Darrington [Wed, 10 Dec 2008 10:28:44 +0000 (19:28 +0900)]
Fix problem where entry strings got mangled

15 years agoFix some warnings
John Darrington [Wed, 10 Dec 2008 08:36:06 +0000 (17:36 +0900)]
Fix some warnings

15 years agoImprove reliability of active cell border rendering
John Darrington [Wed, 10 Dec 2008 05:33:10 +0000 (14:33 +0900)]
Improve reliability of active cell border rendering

15 years agoFixed a problem redrawing the active cell.
John Darrington [Wed, 10 Dec 2008 02:05:29 +0000 (11:05 +0900)]
Fixed a problem redrawing the active cell.

Disabled double buffering on the sheet body since this
seemed to interfere with things.

15 years agoSimplify expose callback
John Darrington [Wed, 10 Dec 2008 01:12:04 +0000 (10:12 +0900)]
Simplify expose callback

15 years agoMerge commit 'HEAD'; branch 'master' into rewrite-sheet
John Darrington [Wed, 10 Dec 2008 00:32:52 +0000 (09:32 +0900)]
Merge commit 'HEAD'; branch 'master' into rewrite-sheet

15 years agoFix up include path for generated source file
John Darrington [Wed, 10 Dec 2008 00:30:15 +0000 (09:30 +0900)]
Fix up include path for generated source file

15 years agoAdded a chapter to the developers' manual about i18n.
John Darrington [Tue, 9 Dec 2008 05:30:55 +0000 (14:30 +0900)]
Added a chapter to the developers' manual about i18n.

15 years agoRemoved that rather kludgy idle callback
John Darrington [Tue, 9 Dec 2008 01:33:09 +0000 (10:33 +0900)]
Removed that rather kludgy idle callback

15 years agoFix bug resizing rows/columns
John Darrington [Tue, 9 Dec 2008 01:20:48 +0000 (10:20 +0900)]
Fix bug resizing rows/columns