pspp-builds.git
17 years agoFix typo.
Ben Pfaff [Sat, 10 Nov 2007 17:43:26 +0000 (17:43 +0000)]
Fix typo.

Thanks to Erik Sigra for reporting this bug.

17 years ago* automake.mk: Add new file.
Ben Pfaff [Fri, 9 Nov 2007 03:06:28 +0000 (03:06 +0000)]
* automake.mk: Add new file.

* formats/360.sh: New test.

* str.c (ds_read_stream): Change return value semantics to be more
useful.  Update all users.

* data-reader.c (struct dfm_reader): New member `block_left'.
(dfm_open_reader): Initialize block_left.  For FH_MODE_TEXT, open
the file in text mode.
(read_error): New function.
(partial_record): New function.
(try_to_read_fully): New function.
(enum descriptor_type): New enum.
(read_descriptor_word): New function.
(corrupt_size): New function.
(read_size): New function.
(read_file_record): Implement new modes.
(read_record): Now take care of tracking line numbers here.
(dfm_reader_get_legacy_encoding): New function.

* data-writer.c (dfm_put_record): Implement new modes.
(dfm_writer_get_legacy_encoding): New function.

* file-handle.q: Parse new formats.
(cmd_file_handle): Set up new formats.

* print.c (struct print_trns): New member `encoding'.
(internal_cmd_print): Set encoding.
(print_trns_proc): Recode output data if necessary.
(flush_records): Recode leader byte.

* data-in.c: Make formatted data parsing locale-independent.
(parse_number): Use c_strtod instead of strtod, to avoid
locale-specific behavior.
(parse_Z): Ditto.

17 years agoNeed to include locale.h, now that it's been removed from config.h
John Darrington [Thu, 8 Nov 2007 21:27:18 +0000 (21:27 +0000)]
Need to include locale.h, now that it's been removed from config.h

17 years agoFixed memory leaks.
John Darrington [Thu, 8 Nov 2007 21:25:39 +0000 (21:25 +0000)]
Fixed memory leaks.

17 years agoRemove po/pspp.pot
John Darrington [Thu, 8 Nov 2007 00:24:16 +0000 (00:24 +0000)]
Remove po/pspp.pot

17 years ago* bugs/overwrite-input-file.sh: Don't use non-portable "diff -B".
Ben Pfaff [Wed, 7 Nov 2007 14:43:50 +0000 (14:43 +0000)]
* bugs/overwrite-input-file.sh: Don't use non-portable "diff -B".

* bugs/overwrite-special-file.sh: Ditto.

17 years agoNeed to include <sys/stat.h>. Bug #21516.
Ben Pfaff [Tue, 6 Nov 2007 06:25:33 +0000 (06:25 +0000)]
Need to include <sys/stat.h>.  Bug #21516.

17 years agoPatch #6258.
Ben Pfaff [Tue, 6 Nov 2007 06:23:25 +0000 (06:23 +0000)]
Patch #6258.

* command.c (report_state_mismatch): Replace code to construct an
error message from bits and pieces by a switch statement that
hard-codes each possible error.  Makes i18n easier.
Suggested by Chusslove Illich <caslav.ilic@gmx.net>.

* file-handle-def.c (fh_lock): Add comment that TYPE should be
marked with N_() in the caller.  Added these markings to each
caller too.  Should make i18n easier.
Suggested by Chusslove Illich <caslav.ilic@gmx.net>.

17 years agoNo need for check for off_t or for the size of float or long double
Ben Pfaff [Tue, 6 Nov 2007 05:49:04 +0000 (05:49 +0000)]
No need for check for off_t or for the size of float or long double
any longer, as we don't use the results anymore.  Also, no need to put
#include <locale.h> into config.h any longer, as this was only needed
for --with-included-gettext, which we have not supported for some
time.

17 years agoAdded call to PKG_PROG_PKG_CONFIG.
John Darrington [Tue, 6 Nov 2007 01:35:26 +0000 (01:35 +0000)]
Added call to PKG_PROG_PKG_CONFIG.
Created a GNM_SUPPORT conditional.
Hopefully fixes bugs #21516 and #21518

17 years agoMerge news items from 0.4.0 to 0.4.3. Also, untabify.
Ben Pfaff [Sun, 4 Nov 2007 22:51:59 +0000 (22:51 +0000)]
Merge news items from 0.4.0 to 0.4.3.  Also, untabify.

17 years agoSuggestions for NEWS from John Darrington.
Ben Pfaff [Sun, 4 Nov 2007 16:03:00 +0000 (16:03 +0000)]
Suggestions for NEWS from John Darrington.

17 years agoUpdate NEWS for the upcoming release.
Ben Pfaff [Sun, 4 Nov 2007 06:08:03 +0000 (06:08 +0000)]
Update NEWS for the upcoming release.

17 years agoAdd zlib, libxml2 to optional library dependencies.
Ben Pfaff [Sun, 4 Nov 2007 06:07:29 +0000 (06:07 +0000)]
Add zlib, libxml2 to optional library dependencies.

17 years agoFix typos.
Ben Pfaff [Sun, 4 Nov 2007 06:07:00 +0000 (06:07 +0000)]
Fix typos.

17 years agoAllow output files to overwrite input files (bug #21280). Thanks to
Ben Pfaff [Sat, 3 Nov 2007 22:00:03 +0000 (22:00 +0000)]
Allow output files to overwrite input files (bug #21280).  Thanks to
John Darrington for review.

17 years agoFix buglet reading spreadsheets with only one row.
John Darrington [Sat, 3 Nov 2007 08:50:22 +0000 (08:50 +0000)]
Fix buglet reading spreadsheets with only one row.

17 years agoRemove erroneous #include
John Darrington [Sat, 3 Nov 2007 07:01:32 +0000 (07:01 +0000)]
Remove erroneous #include

17 years agoAdded support for reading Gnumeric spreadsheet files.
John Darrington [Sat, 3 Nov 2007 03:43:10 +0000 (03:43 +0000)]
Added support for reading Gnumeric spreadsheet files.
Thanks to Ben for revieing this code.

17 years agoUse isfinite, round modules from gnulib.
Ben Pfaff [Sat, 3 Nov 2007 02:32:37 +0000 (02:32 +0000)]
Use isfinite, round modules from gnulib.

17 years agoFix typos.
Ben Pfaff [Sun, 28 Oct 2007 18:39:28 +0000 (18:39 +0000)]
Fix typos.

17 years agoFixed bugs #21397 and 21330
John Darrington [Sat, 27 Oct 2007 07:12:40 +0000 (07:12 +0000)]
Fixed bugs #21397 and 21330

17 years agoEnabled the autoscroll feature on the datasheet.
John Darrington [Thu, 25 Oct 2007 11:24:29 +0000 (11:24 +0000)]
Enabled the autoscroll feature on the datasheet.

17 years agoImplemented a dialog box for the ONEWAY command.
John Darrington [Fri, 19 Oct 2007 05:51:12 +0000 (05:51 +0000)]
Implemented a dialog box for the ONEWAY command.

17 years agoDelete test that is obsolete and has not been run automatically in ages.
Ben Pfaff [Mon, 15 Oct 2007 04:31:35 +0000 (04:31 +0000)]
Delete test that is obsolete and has not been run automatically in ages.

17 years agoImplemented the Rank Cases dialog
John Darrington [Sat, 13 Oct 2007 07:22:55 +0000 (07:22 +0000)]
Implemented the Rank Cases dialog

17 years agoUse trunc module from gnulib instead of our home-grown solution.
Ben Pfaff [Sat, 13 Oct 2007 04:57:48 +0000 (04:57 +0000)]
Use trunc module from gnulib instead of our home-grown solution.
Patch #6224.

* helpers.c: Don't need our own trunc function implementation
anymore, since we now use the one from gnulib.

* Smake: Add trunc to module list.

* configure.ac: Don't need to check for trunc function any longer.

17 years agoUse fseeko module from gnulib instead of our home-grown solution.
Ben Pfaff [Sat, 13 Oct 2007 04:40:06 +0000 (04:40 +0000)]
Use fseeko module from gnulib instead of our home-grown solution.
Patch #6228.

* flip.c (flip_file): No need to conditionally substitute for
"fseeko" and "off_t" manually anymore, as gnulib takes care of it
for us.

* acinclude.m4: Delete PSPP_OFF_T macro.

* configure.ac: Don't call AC_FUNC_FSEEKO or PSPP_OFF_T.

17 years agoposix-xprintf-functions.patch from patch #6230.
Ben Pfaff [Sat, 13 Oct 2007 04:35:25 +0000 (04:35 +0000)]
posix-xprintf-functions.patch from patch #6230.

Add fprintf-posix, printf-posix, printf-safe,
snprintf-posix, sprintf-posix, vasprintf-posxi, vfprintf-posix,
vprintf-posix, vsnprintf-posix, and vsprintf-posix modules, which
allow us to use C99 format specifiers (e.g. 'z') in *printf.
Also, changed many formerly casted arguments in *printf calls to
use one of these format specifiers and drop the cast.

17 years agostdint.h-instead-of-size_max.h.patch from patch #6230.
Ben Pfaff [Fri, 12 Oct 2007 05:07:17 +0000 (05:07 +0000)]
stdint.h-instead-of-size_max.h.patch from patch #6230.

Include <stdint.h> instead of "size_max.h" to get a definition for
SIZE_MAX.

17 years agoconfig.h-fixes.patch from patch #6230.
Ben Pfaff [Fri, 12 Oct 2007 05:05:31 +0000 (05:05 +0000)]
config.h-fixes.patch from patch #6230.

Do #include <config.h> from every .c file.
Do not #include <config.h> from any .h file.

17 years agoxalloc.h-instead-of-alloc.h.patch from patch #6230.
Ben Pfaff [Fri, 12 Oct 2007 04:59:26 +0000 (04:59 +0000)]
xalloc.h-instead-of-alloc.h.patch from patch #6230.

Removes src/libpspp/alloc.[ch] and changes users to include "xalloc.h"
from gnulib instead.

17 years agomalloca-instead-of-local_alloc.patch from patch #6230.
Ben Pfaff [Fri, 12 Oct 2007 04:54:46 +0000 (04:54 +0000)]
malloca-instead-of-local_alloc.patch from patch #6230.

* alloc.h (local_alloc): Removed.  Changed all users to use
xmalloca instead.
(local_free): Removed.  Changed all users to use freea instead.

* Smake: Drop alloca, alloca-opt modules as we don't use them
anymore.

17 years agomagic-elimination.patch from patch #6230.
Ben Pfaff [Fri, 12 Oct 2007 04:49:25 +0000 (04:49 +0000)]
magic-elimination.patch from patch #6230.

* float-format.c (float_get_lowest): New function.

* magic.c: Removed.

* magic.h: Removed.  Changed all references to NOT_INT,
NOT_DOUBLE, and NOT_LONG to use other constants.  Changed
references to second_lowest_value to call float_get_lowest.

17 years agoDeclarations must all precede statements in C90.
Ben Pfaff [Fri, 12 Oct 2007 04:47:08 +0000 (04:47 +0000)]
Declarations must all precede statements in C90.

17 years agoAdded some missing calls to gtk_window_set_transient_for
John Darrington [Thu, 11 Oct 2007 12:31:39 +0000 (12:31 +0000)]
Added some missing calls to gtk_window_set_transient_for

17 years agocleanup-misc.patch from patch #6230.
Ben Pfaff [Thu, 11 Oct 2007 04:59:33 +0000 (04:59 +0000)]
cleanup-misc.patch from patch #6230.

* acinclude.m4: Improve formatting.

* configure.ac: Ditto.  Don't check for headers whose presence is
never tested.  Don't use AC_C_CONST (we can assume that "const" is
implemented these days).  Don't pass default sizes to
AC_CHECK_SIZEOF, since modern Autoconf doesn't need them.  Don't
define FPREP_IEEE754, since it was not tested for.  Don't use
AC_FUNC_VPRINTF, since we never tested for it.

* float-format.h (enum float_format): Don't check for
FPREP_IEEE754 macro any longer.

* magic.h: Ditto.

* src/ui/debugger.c: Use debugger if HAVE_FORK is defined, not
HAVE_SYS_TYPES_H.  The latter is almost universal, but the former
is only available where it can be implemented.

17 years agoAdded the Independent Samples T Test dialog
John Darrington [Wed, 10 Oct 2007 10:22:28 +0000 (10:22 +0000)]
Added the Independent Samples T Test dialog

17 years agoFix bug #21280. Thanks to John Darrington for review.
Ben Pfaff [Tue, 9 Oct 2007 03:50:20 +0000 (03:50 +0000)]
Fix bug #21280.  Thanks to John Darrington for review.

* automake.mk: Add new file.

* bugs/overwrite-input-file.sh: New test.

* file-name.c (create_stream): New function.

* por-file-writer.c (pfm_open_writer): Use fh_open to open the
file handle before creating the file, to ensure that we don't
truncate a file that we're reading.  Make code easier to read by
using create_stream.

17 years agoOops--forgot ChangeLog for DESCRIPTIVES earlier.
Ben Pfaff [Sun, 7 Oct 2007 03:53:06 +0000 (03:53 +0000)]
Oops--forgot ChangeLog for DESCRIPTIVES earlier.

17 years agoAdded feature to make OK and PASTE buttons insensitive until the dialog box
John Darrington [Sun, 7 Oct 2007 00:25:03 +0000 (00:25 +0000)]
Added feature to make OK and PASTE buttons insensitive until the dialog box
contains valid data.

17 years agoUpdate libglade version dependency
John Darrington [Sat, 6 Oct 2007 06:58:13 +0000 (06:58 +0000)]
Update libglade version dependency

17 years agoAdd DESCRIPTIVES dialog.
Ben Pfaff [Sat, 6 Oct 2007 04:24:34 +0000 (04:24 +0000)]
Add DESCRIPTIVES dialog.

17 years agoCreated a new stock item for Reset buttons.
John Darrington [Thu, 4 Oct 2007 02:41:53 +0000 (02:41 +0000)]
Created a new stock item for Reset buttons.
Added some #include <config.h> lines where they were missing.
Read GPL text from src/libpspp/copyleft.c instead of from psppire.glade

17 years agoFix bug #21192. Thanks to John Darrington for review.
Ben Pfaff [Tue, 2 Oct 2007 04:13:07 +0000 (04:13 +0000)]
Fix bug #21192.  Thanks to John Darrington for review.

* casereader.c (casereader_read): Decrement case_cnt before
calling the casereader's "read" member function, so that we
interact properly with lazy_casereader.

* datasheet.c: Add regression test for above bug fix.
(clone_datasheet): New function.
(lazy_callback): New function.
(check_datasheet_casereader): New function.
(check_datasheet): Check datasheet contents are reported correctly
through an ordinary casereader and a lazy casereader.
(clone_model): Use clone_datasheet.

17 years agoFix comment.
Ben Pfaff [Mon, 1 Oct 2007 04:35:06 +0000 (04:35 +0000)]
Fix comment.

17 years agoImprove installation instructions.
Ben Pfaff [Sun, 30 Sep 2007 18:11:07 +0000 (18:11 +0000)]
Improve installation instructions.

17 years agoPrint a message indicating success at the end of the configure run.
Ben Pfaff [Sun, 30 Sep 2007 18:09:04 +0000 (18:09 +0000)]
Print a message indicating success at the end of the configure run.

17 years agoDon't abort on GSL exceptions
John Darrington [Fri, 28 Sep 2007 04:25:14 +0000 (04:25 +0000)]
Don't abort on GSL exceptions

17 years ago(libglade_psppire_la_CFLAGS): Enable VPATH build by using
Ben Pfaff [Thu, 27 Sep 2007 03:20:53 +0000 (03:20 +0000)]
(libglade_psppire_la_CFLAGS): Enable VPATH build by using
$(top_srcdir) in -I directive.

17 years agoAdded the Analyze menu.
John Darrington [Wed, 26 Sep 2007 09:23:11 +0000 (09:23 +0000)]
Added the Analyze menu.

17 years agoAdd missing #include.
Ben Pfaff [Wed, 26 Sep 2007 04:25:57 +0000 (04:25 +0000)]
Add missing #include.

17 years agoPatch #6210: implement ability to resize output device parameters to
Ben Pfaff [Wed, 26 Sep 2007 04:24:07 +0000 (04:24 +0000)]
Patch #6210: implement ability to resize output device parameters to
fit terminal window size as it changes.  Reviewed by John Darrington.

* automake.mk (src_ui_terminal_libui_a_SOURCES): Add new files.

* terminal.c: New file.

* terminal.h: New file.

* main.c (main): No need to set up SIGWINCH handler any longer.
But we do need to call terminal_init.
(set_fallback_viewport): Move to terminal.c.
[HAVE_LIBNCURSES] (get_termcap_viewport): Ditto.
[!HAVE_LIBNCURSES] (get_termcap_viewport): Ditto.

* read-line.c (readln_read): After the first line of a command,
call terminal_check_size to allow it to re-detect the terminal
size.

* ascii.c: Implement ability to resize output device parameters to
fit terminal window size as it changes.
(struct ascii_driver_ext): New members `auto_width',
`auto_length'.
(ascii_open_driver): Initialize new members, call
update_page_size.
(update_page_size): New function to update device size.
(handle_option): Support new "auto" setting for length, width.
(ascii_open_page): Call update_page_size.

* devices (tty-ascii): Set length and width to "auto", so that
they reflect the current size of the terminal window as it
changes.

17 years agoFix GUI output viewer to use the "auto" feature of the driver width
John Darrington [Tue, 25 Sep 2007 23:59:40 +0000 (23:59 +0000)]
Fix GUI output viewer to use the "auto" feature of the driver width
and length.  Closes patch #6210.

17 years agoPatch #6210. Reviewed by John Darrington.
Ben Pfaff [Tue, 25 Sep 2007 04:26:25 +0000 (04:26 +0000)]
Patch #6210.  Reviewed by John Darrington.

* command-line.c (parse_command_line): Don't call force_long_view,
as that function is no longer necessary.

* msg-ui.c (handle_msg): Only wrap message output to the message
file to the width of the terminal if the message file is a tty.

* settings.c: Drop "long view", which is not needed any longer.
(static var long_view): Removed.
(force_long_view): Removed.
(get_viewwidth): Removed.
(init_viewport): Removed long_view reference.

17 years ago(popup_message): Refer to files that contain commands as "syntax"
Ben Pfaff [Tue, 25 Sep 2007 04:21:02 +0000 (04:21 +0000)]
(popup_message): Refer to files that contain commands as "syntax"
files, not "script" files, for better user familiarity.

17 years ago(set_fallback_viewport): Make code easier to understand.
Ben Pfaff [Tue, 25 Sep 2007 04:19:11 +0000 (04:19 +0000)]
(set_fallback_viewport): Make code easier to understand.
(get_termcap_viewport): Ditto.
Reviewed by John Darrington.

17 years agoJohn's original code for patch #6210.
Ben Pfaff [Tue, 25 Sep 2007 04:16:19 +0000 (04:16 +0000)]
John's original code for patch #6210.

17 years agoMake this example work on the newest version of PSPP.
Ben Pfaff [Tue, 25 Sep 2007 04:04:02 +0000 (04:04 +0000)]
Make this example work on the newest version of PSPP.

17 years ago(cmd_data_list): Don't allow END subcommand to be used with DATA LIST
Ben Pfaff [Sun, 23 Sep 2007 16:49:37 +0000 (16:49 +0000)]
(cmd_data_list): Don't allow END subcommand to be used with DATA LIST
FREE or LIST.

17 years agoBug #21111. Reviewed by John Darrington.
Ben Pfaff [Sun, 23 Sep 2007 16:47:27 +0000 (16:47 +0000)]
Bug #21111.  Reviewed by John Darrington.

* command/input-program.sh: New test.

* command/do-if.sh: New tests.

* data-list.c (data_list_trns_proc): Properly set retval when END
subcommand is in use.

* do-if.c: Fix ELSE and ELSE IF clauses.
(add_clause): Drop TARGET_INDEX argument and figure out the target
of the jump on our own.  The caller couldn't compensate for the
inserted BREAK transformation.  Updated all callers.

17 years agoBug #21128. Reviewed by John Darrington.
Ben Pfaff [Sun, 23 Sep 2007 05:59:01 +0000 (05:59 +0000)]
Bug #21128.  Reviewed by John Darrington.

* output/paper-size.sh: New test.

* main.c (i18_init): Set up LC_PAPER locale, if available.  Don't
bother with LC_MONETARY locale, since we don't use it anywhere.

* output.c (TWO_CHARS macro): Removed.
(outp_evaluate_dimension): Changed interface, rewritten.  Updated
all callers.
(internal_get_paper_size): Removed.
(parse_unit): New function.
(parse_paper_size): New function.
(outp_get_paper_size): Tweaked interface, rewritten.
(get_standard_paper_size): New function.
(read_paper_conf): New function.
(get_default_paper_size): New function.

* postscript.c (ps_open_driver): Use system default paper size as
default paper, instead of hard-coding US letter.
(handle_option): Allow outp_evaluate_dimension to supply error
message instead of generating it here.

* automake.mk: Add new file.

* paper-size.c: New file.

* command.def: Add DEBUG PAPER SIZE command.

* papersize: Removed.

* automake.mk (dist_pkgsysconf_DATA): Remove papersize.

* acinclude.m4 (PSPP_LC_PAPER): New macro.

* configure.ac: Use PSPP_LC_PAPER.

17 years agoCorrected various typos in error messages.
John Darrington [Sat, 22 Sep 2007 08:19:08 +0000 (08:19 +0000)]
Corrected various typos in error messages.

17 years agoChangeLog entries from earlier that I missed.
Ben Pfaff [Sat, 22 Sep 2007 04:21:29 +0000 (04:21 +0000)]
ChangeLog entries from earlier that I missed.

17 years agoFree the cmd after it's finished.
John Darrington [Sat, 22 Sep 2007 01:04:38 +0000 (01:04 +0000)]
Free the cmd after it's finished.

17 years agofix memory leaks; bug 21056
Jason Stover [Fri, 21 Sep 2007 20:48:14 +0000 (20:48 +0000)]
fix memory leaks; bug 21056

17 years agoNew test for bug #21117.
Ben Pfaff [Fri, 21 Sep 2007 14:18:08 +0000 (14:18 +0000)]
New test for bug #21117.

17 years ago* ascii.c (struct ascii_driver_ext): New member reported_error.
Ben Pfaff [Fri, 21 Sep 2007 14:12:57 +0000 (14:12 +0000)]
* ascii.c (struct ascii_driver_ext): New member reported_error.
(ascii_open_driver): Initialize reported_error.
(ascii_open_page): Initialize the rest of the ascii driver data
even if we fail to open the output file.  Fixes bug #21117.

* chart.c (chart_create): Initialize lp member.  Fixes crash if
chart initialization fails.

* html.c (html_open_driver): Don't free chart_file_name in error
case, since html_close_driver will do that.  Fixes crash if file
open fails.

* postscript.c (ps_close_driver): Don't try to write to file if
it's null.  Fixes crash if file open fails.

17 years agoAdded a BACKEND_CHANGED signal on PsppireDict, and handled it accordingly.
John Darrington [Fri, 21 Sep 2007 01:53:58 +0000 (01:53 +0000)]
Added a BACKEND_CHANGED signal on PsppireDict, and handled it accordingly.
Closes bug #20821

17 years agoAdd regression test for bug #21108.
Ben Pfaff [Thu, 20 Sep 2007 04:50:54 +0000 (04:50 +0000)]
Add regression test for bug #21108.

17 years agoFix bug #21108.
Ben Pfaff [Thu, 20 Sep 2007 04:48:13 +0000 (04:48 +0000)]
Fix bug #21108.

* aggregate.c (cmd_aggregate): Destroy casereader consistently,
even if casereader fails.

* examine.q (run_examine): Ditto.

* glm.q (run_glm): Ditto.

* oneway.q (run_oneway): Ditto.

* regression.q (run_regression): Ditto.

* t-test.q (calculate): Ditto.

* descriptives.c (calc_descriptives): Ditto.  Also avoid
gratuitous casereader_clone.

17 years agoRemove callbacks from struct dataset. Closes patch #6075
John Darrington [Wed, 19 Sep 2007 06:21:19 +0000 (06:21 +0000)]
Remove callbacks from struct dataset. Closes patch #6075

17 years agoFix bug #20910.
Ben Pfaff [Wed, 19 Sep 2007 04:28:59 +0000 (04:28 +0000)]
Fix bug #20910.

* helper.c (create_casereader_from_data_store): New function.
(execute_syntax): Only replace the active file data by a new
casereader if syntax caused the active file to be read, to avoid
exponential slowdown as an increasing number of snippets that do
not read from the active file are consecutively executed.  Bug
#20910.  Reviewed by and heavily influenced by John Darrington.

* psppire-data-store.c (psppire_data_store_get_value_count): New
function.

* psppire-dict.c (psppire_dict_get_value_cnt): New function.

* procedure.c (proc_extract_active_file_data): New function.

* lazy-casereader.h: New file.

* lazy-casereader.c: New file.

* casereader.c (casereader_dynamic_cast): New function.

17 years ago(histogram_plot): Remove incorrect assertion. Fixes bug #21101.
Ben Pfaff [Wed, 19 Sep 2007 01:58:15 +0000 (01:58 +0000)]
(histogram_plot): Remove incorrect assertion.  Fixes bug #21101.
Reviewed by John Darrington.

17 years ago* set.q (show_warranty): Use fputs to print lack-of-warranty
Ben Pfaff [Mon, 17 Sep 2007 04:00:53 +0000 (04:00 +0000)]
* set.q (show_warranty): Use fputs to print lack-of-warranty
statement, instead of msg.  This is because msg now outputs the
message to output devices, and the output subsystem is not
prepared to deal with table cells that exceed one page in length.
Thanks to John Darrington for bug report and review.  Bug #21093.
(show_copying) Ditto.

* copyleft.c: Add trailing new-lines to lack-of-warranty
statement.

17 years agoRemoved documentation for CLEAR TRANSFORMATIONS since it's currently not
John Darrington [Sun, 16 Sep 2007 02:41:14 +0000 (02:41 +0000)]
Removed documentation for CLEAR TRANSFORMATIONS since it's currently not
implemented.

17 years agoCanonicalized on American orthography in source files.
John Darrington [Sat, 15 Sep 2007 02:48:02 +0000 (02:48 +0000)]
Canonicalized on American orthography in source files.
Added a en_GB localization.

17 years agoInitialize variables to avoid compiler warnings.
John Darrington [Sat, 15 Sep 2007 00:52:59 +0000 (00:52 +0000)]
Initialize variables to avoid compiler warnings.

17 years agoFixed all the misspellings of my name and email address
John Darrington [Fri, 14 Sep 2007 23:39:30 +0000 (23:39 +0000)]
Fixed all the misspellings of my name and email address

17 years ago(dict_clone): Copy case indexes from cloned dictionary. Fixes bug
Ben Pfaff [Fri, 14 Sep 2007 13:45:02 +0000 (13:45 +0000)]
(dict_clone): Copy case indexes from cloned dictionary.  Fixes bug
#21061.  Reviewed by John Darrington.

17 years agofix memory leak
Jason Stover [Fri, 14 Sep 2007 01:42:25 +0000 (01:42 +0000)]
fix memory leak

17 years agoDeclare models in difinition of cmd_regression; free moment structure
Jason Stover [Fri, 14 Sep 2007 01:39:35 +0000 (01:39 +0000)]
Declare models in difinition of cmd_regression; free moment structure

17 years agoImplemented the find dialog.
John Darrington [Thu, 13 Sep 2007 12:37:08 +0000 (12:37 +0000)]
Implemented the find dialog.

17 years agoFixed up some gladeui related things to correspond to glade-3.2.2. Thanks to Jason...
John Darrington [Thu, 13 Sep 2007 11:06:40 +0000 (11:06 +0000)]
Fixed up some gladeui related things to correspond to glade-3.2.2. Thanks to Jason for pointing these out.

17 years agoAdded #include "localcharset.h" to correspond to recent gnulib changes.
John Darrington [Thu, 13 Sep 2007 10:06:00 +0000 (10:06 +0000)]
Added #include "localcharset.h" to correspond to recent gnulib changes.

17 years ago(postcalc): Free sorted_tab and the structures that it points to, to
Ben Pfaff [Thu, 13 Sep 2007 04:23:15 +0000 (04:23 +0000)]
(postcalc): Free sorted_tab and the structures that it points to, to
plug a memory leak.  Fixes bug #20910.  Thanks to John Darrington for
reporting this bug and for review.

17 years agoFreed the stuff generated by the parser.
John Darrington [Thu, 13 Sep 2007 00:18:11 +0000 (00:18 +0000)]
Freed the stuff generated by the parser.

17 years ago* casereader-translator.c (struct casereader_translator): Change
Ben Pfaff [Wed, 12 Sep 2007 13:43:49 +0000 (13:43 +0000)]
* casereader-translator.c (struct casereader_translator): Change
input case parameter of translate member function from const
struct ccase * to struct ccase *.
(casereader_create_translator): Ditto, for translate parameter.

* casewriter-translator.c (struct casewriter_translator): Ditto.
(casewriter_create_translator): Ditto.

* get.c (get_translate_case): Change input case parameter from
const struct ccase * to struct ccase *, to match change in
casereader and casewriter translators.  Destroy input case, to fix
memory leak.

17 years ago(psppire_variable_sheet_create): Use xstrdup to save string returned
Ben Pfaff [Tue, 11 Sep 2007 03:12:34 +0000 (03:12 +0000)]
(psppire_variable_sheet_create): Use xstrdup to save string returned
by bind_textdomain_codeset.  Otherwise it can get freed by a
subsequent call.  Patch #6193.  Reviewed by John Darrington.

17 years agoRemoved #include "getline.h" because gnulib no longer provides it.
John Darrington [Sat, 8 Sep 2007 01:00:39 +0000 (01:00 +0000)]
Removed #include "getline.h" because gnulib no longer provides it.

17 years agoFixed buglet managing entries in the recent files lists.
John Darrington [Thu, 6 Sep 2007 07:43:02 +0000 (07:43 +0000)]
Fixed buglet managing entries in the recent files lists.

17 years agoImplemented the INSERT command.
John Darrington [Wed, 5 Sep 2007 06:23:01 +0000 (06:23 +0000)]
Implemented the INSERT command.

17 years agoUpdate scripts that invoke Perl to invoke it as simply "perl" if
Ben Pfaff [Wed, 5 Sep 2007 04:56:15 +0000 (04:56 +0000)]
Update scripts that invoke Perl to invoke it as simply "perl" if
not run from the PSPP Makefiles.  Patch #6169.  Thanks to John
Darrington for suggestion and review.
* bugs/big-input-2.sh: Make $PERL default to perl.
* command/sort.sh: Ditto.
* formats/bcd-in.sh: Ditto.
* formats/date-in.sh: Ditto.
* formats/ib-in.sh: Ditto.
* formats/legacy-in.sh: Ditto.
* formats/num-in.sh: Ditto.
* formats/num-out.sh: Ditto.
* formats/time-in.sh: Ditto.

17 years ago(cmd_crosstabs): Free xtab and the structures that it points to, to
Ben Pfaff [Wed, 5 Sep 2007 04:49:41 +0000 (04:49 +0000)]
(cmd_crosstabs): Free xtab and the structures that it points to, to
plug a memory leak.  Fixes bug #18315.

17 years agoRearrange menus to be more like later version of other software.
John Darrington [Sun, 2 Sep 2007 02:10:28 +0000 (02:10 +0000)]
Rearrange menus to be more like later version of other software.
Delete some unimplemented menuitems.

17 years agoUpdate po/*
John Darrington [Thu, 30 Aug 2007 23:36:11 +0000 (23:36 +0000)]
Update po/*

17 years agoYet more memory leaks.
John Darrington [Tue, 28 Aug 2007 01:00:04 +0000 (01:00 +0000)]
Yet more memory leaks.

17 years agoChanged test file name from 'foo.sps' to $TESTFILE (which is based
John Darrington [Mon, 27 Aug 2007 07:19:18 +0000 (07:19 +0000)]
Changed test file name from 'foo.sps' to $TESTFILE (which is based
on the script name).

17 years agoPlugged some more memory leaks.
John Darrington [Mon, 27 Aug 2007 07:02:35 +0000 (07:02 +0000)]
Plugged some more memory leaks.

17 years agoPlugged some memory leaks.
John Darrington [Mon, 27 Aug 2007 05:05:54 +0000 (05:05 +0000)]
Plugged some memory leaks.