Ben Pfaff [Wed, 20 Dec 2006 16:09:44 +0000 (16:09 +0000)]
Fix bugs in LOOP.
John Darrington [Wed, 20 Dec 2006 12:15:18 +0000 (12:15 +0000)]
Implemented flexifilereader_cnum.
John Darrington [Wed, 20 Dec 2006 10:10:51 +0000 (10:10 +0000)]
Implemented the NPAR TESTS command.
Ben Pfaff [Tue, 19 Dec 2006 14:21:52 +0000 (14:21 +0000)]
Make it possible to pull cases from the active file with a
function call, instead of requiring indirection through a callback
function.
See patch #5641.
Ben Pfaff [Mon, 18 Dec 2006 02:45:26 +0000 (02:45 +0000)]
Delete obsolete items.
John Darrington [Sun, 17 Dec 2006 00:01:04 +0000 (00:01 +0000)]
Added the ability to run syntax from the syntax editor.
Jason Stover [Sat, 16 Dec 2006 22:38:01 +0000 (22:38 +0000)]
removed "Written by..." line
Ben Pfaff [Sat, 16 Dec 2006 22:13:12 +0000 (22:13 +0000)]
Don't assume that ALIGN_* and GTK_JUSTIFY_* values coincide.
Ben Pfaff [Sat, 16 Dec 2006 22:11:08 +0000 (22:11 +0000)]
Don't assume that MEASURE_* and ALIGN_* have the same values found in
system files.
Ben Pfaff [Sat, 16 Dec 2006 22:01:19 +0000 (22:01 +0000)]
Fix test to allow string grouping variables on RANK.
Ben Pfaff [Sat, 16 Dec 2006 20:57:15 +0000 (20:57 +0000)]
Allow RANK grouping variables to be strings. Fixes bug #18533.
Thanks to John Darrington for review.
Ben Pfaff [Sat, 16 Dec 2006 20:22:14 +0000 (20:22 +0000)]
Reverse order of arguments to DATEDIFF, for compatibility. Thanks to
Daniel Williams <Daniel.E.Williams@state.or.us> for reporting this
bug.
John Darrington [Sat, 16 Dec 2006 04:26:42 +0000 (04:26 +0000)]
Removed my authorship lines.
John Darrington [Sat, 16 Dec 2006 03:40:41 +0000 (03:40 +0000)]
Committed patch #5636
Ben Pfaff [Fri, 15 Dec 2006 00:16:01 +0000 (00:16 +0000)]
Remove "Written by Ben Pfaff <blp@gnu.org>" lines everywhere.
Ben Pfaff [Thu, 14 Dec 2006 23:22:56 +0000 (23:22 +0000)]
Mention that pkg-config is needed.
John Darrington [Thu, 14 Dec 2006 10:45:19 +0000 (10:45 +0000)]
Made src/language into one big library. Closes patch #5633
Ben Pfaff [Thu, 14 Dec 2006 05:35:38 +0000 (05:35 +0000)]
Additionally verify that input files have equal number of lines.
Ben Pfaff [Thu, 14 Dec 2006 05:26:28 +0000 (05:26 +0000)]
Fix punctuation in error message.
Ben Pfaff [Thu, 14 Dec 2006 03:36:00 +0000 (03:36 +0000)]
Implement DATESUM, DATEDIFF functions.
Patch #5637.
John Darrington [Tue, 12 Dec 2006 06:44:49 +0000 (06:44 +0000)]
Fixed bugs which crept in with the variable encapsulation changes.
Ben Pfaff [Mon, 11 Dec 2006 15:56:49 +0000 (15:56 +0000)]
This patch adds the VALUELABEL function for use in expressions, which
is new in SPSS 15 (14?), and a test for it.
Ben Pfaff [Mon, 11 Dec 2006 15:56:13 +0000 (15:56 +0000)]
* value-labels.c (hash_int_val_lab): Only hash as many bytes as
the value label's width.
Ben Pfaff [Mon, 11 Dec 2006 15:39:23 +0000 (15:39 +0000)]
Rewrite system file reader code, to clean up and improve.
Ben Pfaff [Sun, 10 Dec 2006 19:23:13 +0000 (19:23 +0000)]
Document that the character_code field can be a Windows code page
number.
Ben Pfaff [Sun, 10 Dec 2006 19:14:37 +0000 (19:14 +0000)]
* command-line.c (pre_syntax_message): Use term "syntax" instead
of "script".
John Darrington [Sun, 10 Dec 2006 05:30:45 +0000 (05:30 +0000)]
Patch #5623
Removed eof state from lexer. A lexer which reaches the end of its input, can
now continue, if new input is appended to the input stream.
Ben Pfaff [Sun, 10 Dec 2006 04:12:40 +0000 (04:12 +0000)]
* repeat.c (parse_lines): Issue an error when attempting to nest
DO REPEAT in compatibility mode.
Ben Pfaff [Sun, 10 Dec 2006 04:08:47 +0000 (04:08 +0000)]
* file-name.c (fn_search_path): Remove prefix arg that was unused
by any caller. Updated all callers.
Ben Pfaff [Sun, 10 Dec 2006 04:04:38 +0000 (04:04 +0000)]
* format.c (fmt_dollar_template): Use user's decimal point
character. Add assertion.
Ben Pfaff [Sun, 10 Dec 2006 04:03:34 +0000 (04:03 +0000)]
New function fmt_dollar_template based on pspp-dev discussion.
Ben Pfaff [Sun, 10 Dec 2006 03:42:50 +0000 (03:42 +0000)]
Finish converting struct variable to an opaque type. In this
phase, we add remaining setter and getter functions, convert the
remaining PSPP code to use them, and do a bunch of cleanup. The
resulting changes are pervasive but mostly trivial, and only the
notable changes are logged.
This is patch #5629 on Savannah.
John Darrington [Sun, 10 Dec 2006 02:33:43 +0000 (02:33 +0000)]
Avoided comparison of string variables to SYSMIS
Ben Pfaff [Sun, 10 Dec 2006 01:20:55 +0000 (01:20 +0000)]
Ignore cscope files.
John Darrington [Fri, 8 Dec 2006 22:24:08 +0000 (22:24 +0000)]
Memory leak patrol and minor cleanups.
Ben Pfaff [Fri, 8 Dec 2006 01:41:21 +0000 (01:41 +0000)]
Use gsl_finite from GSL, which is portable, instead of isfinite, which
is not.
John Darrington [Thu, 7 Dec 2006 11:34:17 +0000 (11:34 +0000)]
Removed mutual dependency between libpspp and data
John Darrington [Thu, 7 Dec 2006 11:10:23 +0000 (11:10 +0000)]
Added a syntax editor to the GUI.
It doesn't do anything yet --- it's just an editor.
John Darrington [Thu, 7 Dec 2006 07:09:06 +0000 (07:09 +0000)]
Fixed memory leak.
John Darrington [Thu, 7 Dec 2006 06:31:04 +0000 (06:31 +0000)]
Changed factors' independent variables to be copies on the heap.
Fixes part of bug #15911.
Ben Pfaff [Thu, 7 Dec 2006 05:41:11 +0000 (05:41 +0000)]
Remove blank page.
Ben Pfaff [Thu, 7 Dec 2006 05:16:33 +0000 (05:16 +0000)]
Compare variable pointers instead of variable indexes.
Ben Pfaff [Tue, 5 Dec 2006 15:10:21 +0000 (15:10 +0000)]
First step in making struct variable opaque: the boring mechanical
work of replacing most struct variable member accesses by use of
setter and getter functions.
John Darrington [Tue, 5 Dec 2006 11:27:42 +0000 (11:27 +0000)]
Applied patch #5611
Ben Pfaff [Tue, 5 Dec 2006 05:39:29 +0000 (05:39 +0000)]
* missing-values.c (mv_resize): Don't write beyond end of the
allocated buffer when resizing a long string.
Ben Pfaff [Sun, 3 Dec 2006 22:16:45 +0000 (22:16 +0000)]
Fix lack of ->name and ->location in DO REPEAT's getl_interface.
See bug #15702.
Significant cleanup to DO REPEAT.
Ben Pfaff [Sat, 2 Dec 2006 06:45:25 +0000 (06:45 +0000)]
Remove redundant parentheses.
Ben Pfaff [Fri, 1 Dec 2006 06:51:08 +0000 (06:51 +0000)]
* compute.c: Fix bug #17422, which reports that a variable created
by assignment in a COMPUTE command could not be used in the
computation expression.
Ben Pfaff [Fri, 1 Dec 2006 06:45:52 +0000 (06:45 +0000)]
Properly handle empty DO REPEAT...END REPEAT block. Fixes bug #18407.
Thanks to John Darrington for reporting this bug.
Ben Pfaff [Fri, 1 Dec 2006 06:21:05 +0000 (06:21 +0000)]
* statistics.texi: Document charts supported by FREQUENCIES.
Fixes bug #18297. Thanks to Mohammed Babekir Elmalik Abdalmajid
for reporting this bug.
Ben Pfaff [Fri, 1 Dec 2006 06:06:52 +0000 (06:06 +0000)]
* value-labels.c (get_label): Allow commas between values and
labels and between value labels. Fixes bug #18303. Thanks to
John Darrington for reporting this bug.
Ben Pfaff [Fri, 1 Dec 2006 06:03:58 +0000 (06:03 +0000)]
Fix indentation.
Ben Pfaff [Fri, 1 Dec 2006 06:02:35 +0000 (06:02 +0000)]
Properly handle empty DO REPEAT...END REPEAT block. Fixes bug #18407.
Thanks to John Darrington for reporting this bug.
Ben Pfaff [Fri, 1 Dec 2006 05:52:59 +0000 (05:52 +0000)]
* inpt-pgm.c (cmd_reread): Always return error code upon detecting
syntax error. Fixes bug #18419. Thanks to John Darrington for
reporting this bug.
John Darrington [Thu, 30 Nov 2006 10:39:00 +0000 (10:39 +0000)]
deleted some commented out code.
John Darrington [Wed, 29 Nov 2006 12:19:07 +0000 (12:19 +0000)]
Oops. committing new files
John Darrington [Wed, 29 Nov 2006 11:50:31 +0000 (11:50 +0000)]
Applying patch #5562
John Darrington [Wed, 29 Nov 2006 02:15:00 +0000 (02:15 +0000)]
Fixed make distcheck
John Darrington [Tue, 28 Nov 2006 09:39:37 +0000 (09:39 +0000)]
Fixed documentation problems
Ben Pfaff [Mon, 27 Nov 2006 01:09:45 +0000 (01:09 +0000)]
Add note about Texinfo.
Ben Pfaff [Sun, 26 Nov 2006 17:00:54 +0000 (17:00 +0000)]
Fix some table formatting.
Thanks to John Darrington for pointing out the problem.
Ben Pfaff [Sun, 26 Nov 2006 02:59:11 +0000 (02:59 +0000)]
List Texinfo 4.7 or later as optional.
Ben Pfaff [Sat, 25 Nov 2006 02:15:00 +0000 (02:15 +0000)]
We've had a mix of min, max from libpspp/misc.h and MIN, MAX from
gnulib's minmax.h thus far. This change replaces all instances of the
former by the latter.
John Darrington [Sat, 25 Nov 2006 00:42:44 +0000 (00:42 +0000)]
Added whitespace and plugged memory leak.
Ben Pfaff [Wed, 22 Nov 2006 14:28:24 +0000 (14:28 +0000)]
Fix race condition in tests/bugs/signals.sh.
Ben Pfaff [Wed, 22 Nov 2006 14:27:16 +0000 (14:27 +0000)]
HOST command needs F_KEEP_FINAL_TOKEN.
Ben Pfaff [Wed, 22 Nov 2006 04:24:02 +0000 (04:24 +0000)]
Rewrite formatted data input routines to conform to SPSS data formats
as closely as possible
Ben Pfaff [Sun, 19 Nov 2006 03:44:10 +0000 (03:44 +0000)]
Fix grammar in comment.
Ben Pfaff [Sat, 18 Nov 2006 03:32:54 +0000 (03:32 +0000)]
Replace several similar lines by one line inside DO REPEAT.
John Darrington [Thu, 16 Nov 2006 12:47:22 +0000 (12:47 +0000)]
Apply patch #5561. Connect debugger on error.
John Darrington [Tue, 14 Nov 2006 12:29:25 +0000 (12:29 +0000)]
Fixed bug which crept in with the recent lexer changes.
Added regression test to check for this bug.
John Darrington [Tue, 14 Nov 2006 11:47:17 +0000 (11:47 +0000)]
Plugged some small memory leaks
John Darrington [Sat, 11 Nov 2006 23:10:00 +0000 (23:10 +0000)]
Encapsulated lexer and updated calling functions accordingly.
Ben Pfaff [Sat, 11 Nov 2006 19:43:33 +0000 (19:43 +0000)]
Fix buffer overflow reported by John Darrington.
Ben Pfaff [Sat, 11 Nov 2006 19:30:59 +0000 (19:30 +0000)]
Implement SKIP keyword on DATA LIST. Fixes bug #17099.
John Darrington [Tue, 7 Nov 2006 12:59:59 +0000 (12:59 +0000)]
Committed patch #5524, which allows the message destination to be
set on the command line.
Ben Pfaff [Sun, 5 Nov 2006 05:20:52 +0000 (05:20 +0000)]
Rewrite and improve formatted output routines.
Add lots of regression tests.
Revise documentation.
Thanks to John Darrington for review--see patch #5522.
John Darrington [Sun, 5 Nov 2006 00:35:43 +0000 (00:35 +0000)]
Added casefilter structure to assist with missing values. Changed T-TEST
and ONEWAY commands to use it.
Ben Pfaff [Sat, 4 Nov 2006 23:49:35 +0000 (23:49 +0000)]
* msg-ui.c (handle_msg): Only write message to terminal if
get_error_routing_to_terminal() returns true.
Ben Pfaff [Sat, 4 Nov 2006 19:49:45 +0000 (19:49 +0000)]
Implement SET ERRORS, SHOW ERRORS.
John Darrington [Fri, 3 Nov 2006 09:54:15 +0000 (09:54 +0000)]
Updated the docs and the parser for EXAMINE to make it clearer which options
are currently supported and which are not.
Ben Pfaff [Fri, 3 Nov 2006 04:53:51 +0000 (04:53 +0000)]
Completely rewrite src/data/format.[ch], to achieve better
abstraction. Rewrite all references to formats in other files.
See patch #5511.
Ben Pfaff [Thu, 2 Nov 2006 04:51:41 +0000 (04:51 +0000)]
* sys-file-info.c: (cmd_display) Use compare_var_ptr_names to
compare "struct variable **"s, not compare_var_names. Fixes bug
#17423.
Ben Pfaff [Wed, 1 Nov 2006 03:36:09 +0000 (03:36 +0000)]
Remove num_to_string() function, because it is not used anywhere.
Ben Pfaff [Wed, 1 Nov 2006 03:33:01 +0000 (03:33 +0000)]
Tue Oct 31 19:29:05 2006 Ben Pfaff <blp@gnu.org>
* configure.ac: Drop tests for strchr, strrchr because now we
assume a C89 compliant library. (Gnulib makes this assumption so
we might as well too.)
Ben Pfaff [Wed, 1 Nov 2006 03:25:36 +0000 (03:25 +0000)]
Add missing "#include <config.h>".
Ben Pfaff [Wed, 1 Nov 2006 02:22:35 +0000 (02:22 +0000)]
Tue Oct 31 18:21:48 2006 Ben Pfaff <blp@gnu.org>
* print-space.c (print_space_trns_proc): Let dfm_put_record add
the new-line character, to match dfm_put_record change below.
Ben Pfaff [Wed, 1 Nov 2006 02:12:25 +0000 (02:12 +0000)]
Fix error messages and comment.
Ben Pfaff [Sun, 29 Oct 2006 22:09:41 +0000 (22:09 +0000)]
Sun Oct 29 14:08:53 2006 Ben Pfaff <blp@gnu.org>
* Smake (GNULIB_MODULES): Remove `restrict' from modules, because
recent gnulib doesn't have such a module.
Ben Pfaff [Sun, 29 Oct 2006 22:04:09 +0000 (22:04 +0000)]
Reduce verbosity of ll-test, llx-test output.
John Darrington [Sun, 29 Oct 2006 11:16:07 +0000 (11:16 +0000)]
More constness
John Darrington [Sun, 29 Oct 2006 09:51:35 +0000 (09:51 +0000)]
Made array.h const correct, and dealt with the consequences.
Ben Pfaff [Sun, 29 Oct 2006 00:01:52 +0000 (00:01 +0000)]
Change some aspects of the PRINT, PRINT EJECT, and WRITE
transformations to more closely match SPSS behavior:
- PRINT puts spaces between variables, unless a format is specified
explicitly.
- WRITE doesn't put space between variables.
- PRINT to an external file prefixes each line with a space.
- PRINT EJECT to an external file indicates a formfeed by a "1" in the
first column.
- WRITE writes out spaces for system-missing values, not a period.
- When no output is specified, an empty record is output.
Also, update documentation and tests to match this behavior.
John Darrington [Sat, 28 Oct 2006 08:31:22 +0000 (08:31 +0000)]
Eliminated global variable getl_buf
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 [Thu, 26 Oct 2006 06:29:10 +0000 (06:29 +0000)]
Damn! Forgot to change casenum_t in *.q
John Darrington [Thu, 26 Oct 2006 06:16:36 +0000 (06:16 +0000)]
Eliminated global variable current_dataset.
The dataset is now owned by main, and passed around by pointer.
John Darrington [Wed, 25 Oct 2006 22:28:13 +0000 (22:28 +0000)]
Yet more constness
John Darrington [Sun, 22 Oct 2006 11:07:52 +0000 (11:07 +0000)]
More constness/namespace policing
Jason Stover [Fri, 20 Oct 2006 19:33:52 +0000 (19:33 +0000)]
removed useless code