Ben Pfaff [Sun, 6 Nov 2022 19:33:59 +0000 (11:33 -0800)]
GET DATA: Improve coding style and tests.
Ben Pfaff [Sun, 6 Nov 2022 19:28:59 +0000 (11:28 -0800)]
CORRELATIONS: Rename cmd_correlation() to cmd_correlations() for consistency.
Ben Pfaff [Sun, 6 Nov 2022 19:41:06 +0000 (11:41 -0800)]
Use lex_error_expecting() in more places.
Ben Pfaff [Sun, 6 Nov 2022 19:27:59 +0000 (11:27 -0800)]
file-handle-def: Style improvements.
Ben Pfaff [Sun, 25 Sep 2022 23:01:26 +0000 (16:01 -0700)]
lexer: New function lex_force_match_phrase().
Ben Pfaff [Sun, 6 Nov 2022 18:42:51 +0000 (10:42 -0800)]
spvxml-helpers: Avoid warning on recent versions of libxml2.
Ben Pfaff [Wed, 21 Sep 2022 23:32:26 +0000 (16:32 -0700)]
format: Improve error messages.
Ben Pfaff [Wed, 21 Sep 2022 23:29:46 +0000 (16:29 -0700)]
docs: Improve example in DEFINE.
Ben Pfaff [Wed, 21 Sep 2022 23:29:32 +0000 (16:29 -0700)]
DATA LIST: Improve error messages and coding style.
Ben Pfaff [Wed, 21 Sep 2022 23:33:32 +0000 (16:33 -0700)]
LOOP: Improve error messages and coding style.
Ben Pfaff [Wed, 21 Sep 2022 22:31:54 +0000 (15:31 -0700)]
DO REPEAT: Improve error messages and coding style.
Ben Pfaff [Tue, 20 Sep 2022 06:13:16 +0000 (23:13 -0700)]
RECODE: Improve error messages and coding style.
Ben Pfaff [Mon, 19 Sep 2022 02:59:16 +0000 (19:59 -0700)]
T-TEST: Improve error messages and coding style.
Ben Pfaff [Mon, 19 Sep 2022 02:31:47 +0000 (19:31 -0700)]
SORT CASES: Improve error messages and coding style.
Ben Pfaff [Mon, 19 Sep 2022 02:08:06 +0000 (19:08 -0700)]
RELIABILITY: Improve error messages and coding style.
Ben Pfaff [Mon, 19 Sep 2022 01:43:01 +0000 (18:43 -0700)]
REGRESSION: Improve error messages and coding style.
Ben Pfaff [Mon, 19 Sep 2022 01:15:55 +0000 (18:15 -0700)]
NPAR TESTS: Improve error messages and coding style.
Ben Pfaff [Sun, 18 Sep 2022 23:47:58 +0000 (16:47 -0700)]
MATRIX: Improve error messages.
Ben Pfaff [Sun, 18 Sep 2022 23:47:49 +0000 (16:47 -0700)]
GLM: Improve error messages.
Ben Pfaff [Sun, 18 Sep 2022 23:42:40 +0000 (16:42 -0700)]
FREQUENCIES: Improve error message and coding style.
Ben Pfaff [Sun, 18 Sep 2022 23:42:26 +0000 (16:42 -0700)]
lexer: Make lex_error_expecting_valist() support a longer list.
Ben Pfaff [Sun, 18 Sep 2022 21:08:28 +0000 (14:08 -0700)]
FACTOR: Improve error messages and coding style.
Ben Pfaff [Sun, 18 Sep 2022 21:08:20 +0000 (14:08 -0700)]
EXAMINE: Improve error messages.
Ben Pfaff [Sun, 18 Sep 2022 20:07:13 +0000 (13:07 -0700)]
NUMERIC, STRING, LEAVE: Improve error messages.
Ben Pfaff [Sun, 18 Sep 2022 19:34:19 +0000 (12:34 -0700)]
RENAME VARIABLES: Remove obsolete comment.
Ben Pfaff [Sun, 18 Sep 2022 19:33:03 +0000 (12:33 -0700)]
MODIFY VARS: Remove.
Ben Pfaff [Sat, 17 Sep 2022 16:43:42 +0000 (09:43 -0700)]
MISSING VALUES: Improve error messages.
Ben Pfaff [Fri, 16 Sep 2022 23:14:34 +0000 (16:14 -0700)]
DELETE VARIABLES: Improve error messages.
Ben Pfaff [Fri, 16 Sep 2022 23:08:25 +0000 (16:08 -0700)]
APPLY DICTIONARY: Style improvements.
Ben Pfaff [Tue, 13 Sep 2022 02:19:38 +0000 (19:19 -0700)]
SAVE TRANSLATE: Improve error messages and implementation of RENAME.
Ben Pfaff [Tue, 13 Sep 2022 01:48:46 +0000 (18:48 -0700)]
PRINT: Improve error messages.
Ben Pfaff [Mon, 12 Sep 2022 17:33:13 +0000 (10:33 -0700)]
placement-parser: Improve error messages for format assignment.
Ben Pfaff [Mon, 12 Sep 2022 16:34:59 +0000 (09:34 -0700)]
PRINT SPACE: Improve error messages.
Ben Pfaff [Mon, 12 Sep 2022 06:01:53 +0000 (23:01 -0700)]
MATRIX DATA: Improve error messages.
Ben Pfaff [Mon, 12 Sep 2022 05:51:13 +0000 (22:51 -0700)]
LIST: Improve error messages.
Ben Pfaff [Mon, 12 Sep 2022 05:33:15 +0000 (22:33 -0700)]
SET: Improve error messages for SET CCx.
Ben Pfaff [Mon, 12 Sep 2022 05:10:40 +0000 (22:10 -0700)]
Improve error messages for format specifiers.
Ben Pfaff [Mon, 12 Sep 2022 03:50:33 +0000 (20:50 -0700)]
MATCH FILES, UPDATE, ADD FILES: Improve error messages.
Ben Pfaff [Mon, 12 Sep 2022 01:30:51 +0000 (18:30 -0700)]
SHOW: Display settings in pivot table.
Ben Pfaff [Mon, 12 Sep 2022 00:30:07 +0000 (17:30 -0700)]
Assorted improvements to diagnostics.
Ben Pfaff [Mon, 12 Sep 2022 00:24:42 +0000 (17:24 -0700)]
INSERT: Add testing-only feature for ignoring cascading failures.
This makes it easier to write tests that cause a lot of cascading failures.
Ben Pfaff [Sun, 11 Sep 2022 19:23:10 +0000 (12:23 -0700)]
AGGREGATE: Bring up to speed.
Ben Pfaff [Sun, 11 Sep 2022 19:08:43 +0000 (12:08 -0700)]
DEFINE: Don't label a declaration, for C99 compatibility.
Thanks to Friedrich Beckmann for reporting the problem.
Fixes: 36fc62cea799 ("macro: Coding style improvement in macro_tokens_from_string().")Fixes: b8f7ae6610f0 ("DEFINE: Improve error messages for parsing macro body.")
Ben Pfaff [Sun, 11 Sep 2022 19:04:09 +0000 (12:04 -0700)]
AGGREGATE: Improve stats accumulation data structure.
Ben Pfaff [Sun, 11 Sep 2022 18:40:02 +0000 (11:40 -0700)]
str: Replace ss_alloc_substring() by ss_clone() and similarly with a pool.
This makes it possible to use in an initializer.
Ben Pfaff [Sun, 11 Sep 2022 18:12:21 +0000 (11:12 -0700)]
AGGREGATE: Use array instead of linked list.
Ben Pfaff [Sun, 11 Sep 2022 18:10:11 +0000 (11:10 -0700)]
AGGREGATE: Remove write-only struct member.
Ben Pfaff [Sun, 11 Sep 2022 03:55:25 +0000 (20:55 -0700)]
macro: Coding style improvement in macro_tokens_from_string().
Ben Pfaff [Sun, 11 Sep 2022 16:31:19 +0000 (09:31 -0700)]
value: Update comments.
These used to be true but they no longer are, so remove them.
Ben Pfaff [Sun, 11 Sep 2022 03:55:06 +0000 (20:55 -0700)]
segment: Comment fix.
Ben Pfaff [Sun, 11 Sep 2022 01:23:09 +0000 (18:23 -0700)]
DEFINE: Improve error messages for parsing macro body.
Without this change, errors always got reported following the macro body,
not for the particular token at issue.
Ben Pfaff [Sun, 11 Sep 2022 01:11:18 +0000 (18:11 -0700)]
Improve error messages for missing subcommands.
Ben Pfaff [Sat, 10 Sep 2022 18:12:33 +0000 (11:12 -0700)]
format: Cite variable names in messages reporting incompatible width.
Ben Pfaff [Sat, 10 Sep 2022 18:04:21 +0000 (11:04 -0700)]
Cite tokens when reporting invalid identifiers.
These functions weren't able to cite a specific token in cases where that
was appropriate. This fixes the problem.
Ben Pfaff [Mon, 29 Aug 2022 17:02:48 +0000 (10:02 -0700)]
Improve error messages by citing syntax in more of them.
A while back, PSPP gained the ability to cite particular tokens in
diagnostics, but few of the existing messages were enhanced to do
so. This commit adds this to several more of them, in particular
all of the messages that used lex_error() and variations.
Ben Pfaff [Wed, 7 Sep 2022 15:27:54 +0000 (08:27 -0700)]
CTABLES: Allow CAPTIONS, CORNERS, TITLES in TITLES subcommand.
Matthias Faeth reported that SPSS accepts these spellings.
Ben Pfaff [Mon, 5 Sep 2022 16:55:08 +0000 (09:55 -0700)]
pspp-dump-sav: Do not install by default.
People keep fuzzing pspp-dump-sav and reporting vulnerabilities against it,
but hardly anyone uses it (maybe just me). It's not worth the trouble.
Fixes: #62977.
Ben Pfaff [Sun, 28 Aug 2022 23:23:46 +0000 (16:23 -0700)]
CTABLES: Make ID values reproducible when category labels are moved.
ID values were assigned in an arbitrary order when category labels were
moved, because the pivot table leaf index for the category dimension was
not included in the sort. This fixes the problem.
This also factors finding the category leaf index out of the inner loop in
ctables_table_output(). This index doesn't vary across that inner loop and
I simply hadn't noticed while writing the code.
Ben Pfaff [Mon, 27 Dec 2021 00:01:47 +0000 (16:01 -0800)]
Implement CTABLES procedure.
Ben Pfaff [Sun, 28 Aug 2022 21:19:50 +0000 (14:19 -0700)]
lexer: New function lex_ofs_error().
Ben Pfaff [Sun, 28 Aug 2022 21:18:48 +0000 (14:18 -0700)]
message: New function msg_location_merged().
Ben Pfaff [Sat, 6 Aug 2022 19:32:01 +0000 (12:32 -0700)]
FREQUENCIES: Implement LAYERED option on SPLIT FILE.
Ben Pfaff [Sun, 28 Aug 2022 17:38:36 +0000 (10:38 -0700)]
pivot-table: Introduce infrastructure for handling split files.
This will be used for the first time in FREQUENCIES in an upcoming commit.
Ben Pfaff [Fri, 12 Aug 2022 17:15:33 +0000 (10:15 -0700)]
pivot-table: Allow all pivot_value formatting functions to use defaults.
Ben Pfaff [Sat, 6 Aug 2022 19:31:40 +0000 (12:31 -0700)]
dictionary: Limit split file variables to 8, for compatibility.
Ben Pfaff [Sat, 6 Aug 2022 17:55:12 +0000 (10:55 -0700)]
dictionary: Introduce SPLIT_NONE for dictionaries without split variables.
This also implements dict_get_split_type(), which previously had a
prototype but no implementation.
Ben Pfaff [Sun, 28 Aug 2022 21:14:35 +0000 (14:14 -0700)]
dictionary: New function var_force_valid_weight().
Ben Pfaff [Fri, 29 Jul 2022 21:09:59 +0000 (14:09 -0700)]
Automatically infer variables' measurement level from format and data.
Ben Pfaff [Wed, 3 Aug 2022 23:53:53 +0000 (16:53 -0700)]
Use rsvg-convert instead of GIMP for converting SVG to PNG.
rsvg-convert is much faster and more commonly installed.
Ben Pfaff [Sun, 28 Aug 2022 21:20:22 +0000 (14:20 -0700)]
str: New functions for case-matching of substrings, prefixes, and suffixes.
Ben Pfaff [Mon, 1 Aug 2022 04:18:21 +0000 (21:18 -0700)]
str: New function ds_put_substring_multiple().
Ben Pfaff [Mon, 1 Aug 2022 04:16:49 +0000 (21:16 -0700)]
lexer: Fix negative 'n0' and 'n1' in lex_source_contains_macro_call().
Ben Pfaff [Mon, 1 Aug 2022 04:16:24 +0000 (21:16 -0700)]
lexer: Support more options in lex_error_expecting_array().
Ben Pfaff [Sun, 28 Aug 2022 21:21:13 +0000 (14:21 -0700)]
pivot-table: Improve comment.
Ben Pfaff [Sun, 28 Aug 2022 21:21:02 +0000 (14:21 -0700)]
pivot-table: Avoid making PIVOT_N_AXES an enum member.
Otherwise the compiler will complain about it not appearing in a switch.
Ben Pfaff [Sun, 28 Aug 2022 21:15:13 +0000 (14:15 -0700)]
format-parser: Comment and style fixes.
Ben Pfaff [Thu, 25 Aug 2022 21:00:56 +0000 (14:00 -0700)]
doc: Improve documentation for macro support.
Ben Pfaff [Sun, 28 Aug 2022 21:08:56 +0000 (14:08 -0700)]
po: Remove reference to $(all_q_sources), which doesn't exist anymore.
Fixes: 0a18cc59b123 ("q2c: Remove, since it is no longer used.")
Ben Pfaff [Sun, 28 Aug 2022 21:14:56 +0000 (14:14 -0700)]
variable: Also complain about negative weights in var_force_valid_weight().
Ben Pfaff [Sun, 14 Aug 2022 23:42:56 +0000 (16:42 -0700)]
FREQUENCIES: Use the smallest mode if there are multiple.
This matches the documentation.
Ben Pfaff [Thu, 4 Aug 2022 23:58:53 +0000 (16:58 -0700)]
render: Coding style fix.
Ben Pfaff [Sat, 6 Aug 2022 19:31:19 +0000 (12:31 -0700)]
doc: Improve description of extension subtype 5.
Ben Pfaff [Thu, 4 Aug 2022 20:58:12 +0000 (13:58 -0700)]
pspp-output: Improve usage message.
Ben Pfaff [Sat, 6 Aug 2022 17:11:59 +0000 (10:11 -0700)]
FREQUENCIES: Fix memory leak with percentiles and split file.
Ben Pfaff [Tue, 2 Aug 2022 00:25:49 +0000 (17:25 -0700)]
FREQUENCIES: Fix use-after-free error.
Ben Pfaff [Thu, 21 Jul 2022 01:15:34 +0000 (18:15 -0700)]
syntax-gen: Test the category properly.
This code was testing the format type against a collection of format type
categories, which doesn't make any sense. This commit fixes the problem.
Found by inspection.
Friedrich Beckmann [Sun, 10 Jul 2022 21:19:55 +0000 (23:19 +0200)]
g_memdup2: added src/ui/gui/glibfix.h to the distribution file list
I forgot to include the new header file for the previous fix in the
list of files for the distribution.
Friedrich Beckmann [Sun, 10 Jul 2022 20:33:24 +0000 (22:33 +0200)]
supply g_memdup2() for glib before 2.68.
The previous commit did not work on debian. I followed the ideas from
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1927
and
https://github.com/mdbtools/gmdb2/commit/
62ce520a9c5
So this commit provides g_memdup2 for glib versions which do not
provide g_memdup2.
Friedrich Beckmann [Sun, 10 Jul 2022 19:40:39 +0000 (21:40 +0200)]
Revert "Add header wrapper for glib to supply g_memdup2() for glib before 2.68."
This reverts commit
652517f6e99bca918bf2275003f5d51fe5f2f0c6.
Ben Pfaff [Sat, 9 Jul 2022 15:37:02 +0000 (08:37 -0700)]
Add header wrapper for glib to supply g_memdup2() for glib before 2.68.
Friedrich Beckmann reported that some of our build targets have glib as
old as 2.58.
Ben Pfaff [Fri, 8 Jul 2022 22:45:40 +0000 (15:45 -0700)]
SPLIT FILE: Add LAYERED vs. SEPARATE distinction to the dictionary.
Ben Pfaff [Fri, 8 Jul 2022 22:45:54 +0000 (15:45 -0700)]
attributes: New macro ATTRSET_INITIALIZER.
Ben Pfaff [Fri, 8 Jul 2022 22:44:43 +0000 (15:44 -0700)]
gui: Use g_memdup2() instead of deprecated g_memdup().
Ben Pfaff [Fri, 8 Jul 2022 22:22:24 +0000 (15:22 -0700)]
configure: Update autoconf and libtool macro use to fix warnings.
Ben Pfaff [Fri, 8 Jul 2022 17:51:59 +0000 (10:51 -0700)]
Fix use-after-free errors.
Found by GCC 12.1.1.
Ben Pfaff [Fri, 8 Jul 2022 17:51:23 +0000 (10:51 -0700)]
Suppress GCC 12.1.1 warnings.
I don't think these warnings are for real problems, so just suppress them.
I don't understand why the change to datasheet-test.c suppresses a warning,
but it does.
Ben Pfaff [Sat, 2 Jul 2022 03:56:07 +0000 (20:56 -0700)]
Release version 1.6.2.
Ben Pfaff [Thu, 30 Jun 2022 21:25:57 +0000 (14:25 -0700)]
gui: Fix icon names.
Using icon-name "org.gnu.pspp" makes the window manager show the PSPP
icon instead of a generic one.
Reported by Friedrich Beckmann.
Friedrich Beckmann [Sun, 26 Jun 2022 07:07:18 +0000 (09:07 +0200)]
tests/atlocal.in - switched from which to command -v
Sam James reported a possible future build problem due to the
usage of the "which" command:
https://savannah.gnu.org/bugs/?62675
I replace "which" with "command -v" as proposed. Thanks for your
support.
Closes: 62675
Friedrich Beckmann [Sat, 25 Jun 2022 19:59:24 +0000 (21:59 +0200)]
pspp specific icon not shown in about menu
The changes of the pspp icon name in
commit
52ba15f3dce
were missing in the help about menu such that the icons were not
shown.