pspp-builds.git
13 years agoWorkaround for gettext deficiencies
John Darrington [Mon, 4 Oct 2010 17:37:08 +0000 (19:37 +0200)]
Workaround for gettext deficiencies

xgettext doesn't have a --language=gtkbuilder option.
Instead, we've been (mis)using --language=glade which
has worked ok except that it doesn't extract labels
from the columns of GtkListStore items.
This change adds a pair of dummy widgets containing identical
label strings so that these strings will get entered into
the .pot file.  Closes bug #31033

13 years agoRANK: Convert tests to Autotest framework.
Ben Pfaff [Mon, 4 Oct 2010 18:25:25 +0000 (11:25 -0700)]
RANK: Convert tests to Autotest framework.

13 years agopspp: Fix crash passing the name of a nonexistent file on the command line.
Ben Pfaff [Mon, 4 Oct 2010 03:36:33 +0000 (20:36 -0700)]
pspp: Fix crash passing the name of a nonexistent file on the command line.

Also adds a test.

13 years agopspp: Make style slightly more like the rest of the program.
Ben Pfaff [Mon, 4 Oct 2010 03:35:33 +0000 (20:35 -0700)]
pspp: Make style slightly more like the rest of the program.

13 years agoConvert PRINT and WRITE tests to Autotest framework.
Ben Pfaff [Sun, 3 Oct 2010 22:45:44 +0000 (15:45 -0700)]
Convert PRINT and WRITE tests to Autotest framework.

13 years agoPERMISSIONS: Convert test to Autotest framework.
Ben Pfaff [Sun, 3 Oct 2010 15:06:50 +0000 (08:06 -0700)]
PERMISSIONS: Convert test to Autotest framework.

13 years agoNPAR TESTS: Convert SIGN test to Autotest framework.
Ben Pfaff [Sun, 3 Oct 2010 12:42:58 +0000 (05:42 -0700)]
NPAR TESTS: Convert SIGN test to Autotest framework.

13 years agoNPAR TESTS: Convert WILCOXON tests to Autotest framework.
Ben Pfaff [Sun, 3 Oct 2010 12:41:05 +0000 (05:41 -0700)]
NPAR TESTS: Convert WILCOXON tests to Autotest framework.

13 years agoNPAR TESTS: Convert CHISQUARE tests to Autotest framework.
Ben Pfaff [Sun, 3 Oct 2010 12:37:39 +0000 (05:37 -0700)]
NPAR TESTS: Convert CHISQUARE tests to Autotest framework.

13 years agoUpdate generated HTML to conform to W3C standards.
John Darrington [Sun, 3 Oct 2010 12:41:54 +0000 (14:41 +0200)]
Update generated HTML to conform to W3C standards.

Changed the html output driver so that the generated
HTML is accepted by http://validator.w3.org

13 years agoAdded gettext markup to some strings which required it
John Darrington [Sun, 3 Oct 2010 12:11:01 +0000 (14:11 +0200)]
Added gettext markup to some strings which required it

13 years agoUndo inappropriate quote substitution in generated HTML.
John Darrington [Sun, 3 Oct 2010 11:56:02 +0000 (13:56 +0200)]
Undo inappropriate quote substitution in generated HTML.

Commit 173d1687aea88e0e5e1b1d8615ed68ebefb15d08 erroneously
substituted these quotes in html fragments.

13 years agoConsolidate translatable strings
John Darrington [Sun, 3 Oct 2010 11:16:36 +0000 (13:16 +0200)]
Consolidate translatable strings

13 years agoRemove erroneous CONST_CAST
John Darrington [Sun, 3 Oct 2010 10:45:06 +0000 (12:45 +0200)]
Remove erroneous CONST_CAST

Commit 97f9b8ad137e333af9b3c767556d28dfda93a461 attempted to use CONST_CAST to
avoid a compiler warning about constness.  However it applies at the wrong
level of deference.  This change undoes that particular problem and reverts
to the original cast.

13 years agoConstness
John Darrington [Sun, 3 Oct 2010 10:37:30 +0000 (12:37 +0200)]
Constness

13 years agoFix memory leaks in ROC command
John Darrington [Sun, 3 Oct 2010 10:25:00 +0000 (12:25 +0200)]
Fix memory leaks in ROC command

13 years agoAdd comments informing the caller about side effects
John Darrington [Sun, 3 Oct 2010 10:23:18 +0000 (12:23 +0200)]
Add comments informing the caller about side effects

13 years agoConsistently use the return value from case_ref.
John Darrington [Sun, 3 Oct 2010 08:41:36 +0000 (10:41 +0200)]
Consistently use the return value from case_ref.

This makes debugging easier.

13 years agoNPAR TESTS: Convert BINOMAL tests to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 22:01:54 +0000 (15:01 -0700)]
NPAR TESTS: Convert BINOMAL tests to Autotest framework.

13 years agoN OF CASES: Convert test to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 21:32:14 +0000 (14:32 -0700)]
N OF CASES: Convert test to Autotest framework.

13 years agotests: Convert no_case_size.sh test to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 21:29:37 +0000 (14:29 -0700)]
tests: Convert no_case_size.sh test to Autotest framework.

13 years agoMISSING VALUES: Convert test to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 20:51:44 +0000 (13:51 -0700)]
MISSING VALUES: Convert test to Autotest framework.

13 years agoMATCH FILES: Convert tests to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 20:42:33 +0000 (13:42 -0700)]
MATCH FILES: Convert tests to Autotest framework.

13 years agotests: Convert longvar.sh test to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 20:03:28 +0000 (13:03 -0700)]
tests: Convert longvar.sh test to Autotest framework.

13 years agopspp: Avoid printing multiple messages for a single signal caused by a bug.
Ben Pfaff [Sat, 2 Oct 2010 19:01:50 +0000 (12:01 -0700)]
pspp: Avoid printing multiple messages for a single signal caused by a bug.

When I tested commit 38f3d1b22 "pspp: Make a signal that indicates a bug
re-raise that signal to exit" I didn't read the output carefully enough.
John Darrington pointed out the problem.

13 years agoLOOP: Convert tests to Autotest framework.
Ben Pfaff [Sat, 2 Oct 2010 17:50:32 +0000 (10:50 -0700)]
LOOP: Convert tests to Autotest framework.

13 years agopspp: Make a signal that indicates a bug re-raise that signal to exit.
Ben Pfaff [Sat, 2 Oct 2010 17:21:21 +0000 (10:21 -0700)]
pspp: Make a signal that indicates a bug re-raise that signal to exit.

John Darrington pointed out that exiting with EXIT_FAILURE isn't nearly
emphatic enough here.

13 years agoen_GB.po: translate quotes to UTF characters
John Darrington [Sat, 2 Oct 2010 14:29:25 +0000 (16:29 +0200)]
en_GB.po: translate quotes to UTF characters

13 years agoUse macros from cast.h instead of literal casts
John Darrington [Sat, 2 Oct 2010 13:59:11 +0000 (15:59 +0200)]
Use macros from cast.h instead of literal casts

13 years agoFix memory leak in LIST command.
John Darrington [Fri, 1 Oct 2010 18:17:06 +0000 (20:17 +0200)]
Fix memory leak in LIST command.

13 years agoFix memory leak in casegrouper. Closes bug #30764
John Darrington [Thu, 30 Sep 2010 19:49:34 +0000 (21:49 +0200)]
Fix memory leak in casegrouper.  Closes bug #30764

13 years agoFix memory leak in sweep.c
John Darrington [Thu, 30 Sep 2010 08:59:05 +0000 (10:59 +0200)]
Fix memory leak in sweep.c

13 years agoFix memory leak in output rendering
John Darrington [Thu, 30 Sep 2010 08:51:49 +0000 (10:51 +0200)]
Fix memory leak in output rendering

13 years agotests: Remove PG_CONFIG from TESTS_ENVIRONMENT.
Ben Pfaff [Thu, 30 Sep 2010 04:44:36 +0000 (21:44 -0700)]
tests: Remove PG_CONFIG from TESTS_ENVIRONMENT.

This is no longer needed now that the PostgreSQL tests have been converted
to use Autotest.

13 years agoLIST: Convert tests to use Autotest.
Ben Pfaff [Thu, 30 Sep 2010 04:39:34 +0000 (21:39 -0700)]
LIST: Convert tests to use Autotest.

13 years agocasereader: Fix casereader_select() with BY argument greater than 1.
Ben Pfaff [Thu, 30 Sep 2010 04:31:43 +0000 (21:31 -0700)]
casereader: Fix casereader_select() with BY argument greater than 1.

This fixes the /CASES=BY subcommand on LIST.  The following commit will add
a test.

13 years agoDATA LIST: Convert tests for line-ends compatibility to use Autotest.
Ben Pfaff [Thu, 30 Sep 2010 03:34:28 +0000 (20:34 -0700)]
DATA LIST: Convert tests for line-ends compatibility to use Autotest.

13 years agoLAG: Convert tests to use Autotest.
Ben Pfaff [Thu, 30 Sep 2010 03:30:24 +0000 (20:30 -0700)]
LAG: Convert tests to use Autotest.

13 years agoReplace glm with a new implementation.
John Darrington [Wed, 29 Sep 2010 20:02:28 +0000 (22:02 +0200)]
Replace glm with a new implementation.

The code is still not ready for use. It's awaiting
a working type 3 sum of squares.

13 years agoDisconnect clip signal handlers when a syntax window is destroyed
John Darrington [Sun, 26 Sep 2010 10:13:35 +0000 (12:13 +0200)]
Disconnect clip signal handlers when a syntax window is destroyed

13 years agotests: Merge the four GET DATA /TYPE=PSQL tests into a single one.
Ben Pfaff [Wed, 29 Sep 2010 04:32:25 +0000 (21:32 -0700)]
tests: Merge the four GET DATA /TYPE=PSQL tests into a single one.

This saves about 30 seconds on my laptop, so it seems worth it, even though
it combines tests that might better be separated.

13 years agotests: Fix typo in GET DATA /TYPE=TXT test.
Ben Pfaff [Wed, 29 Sep 2010 04:31:07 +0000 (21:31 -0700)]
tests: Fix typo in GET DATA /TYPE=TXT test.

Not capitalizing the at_ in AT_BANNER apparently just kept the banner
from appearing and didn't seem to cause other problems.

13 years agoINSERT: Convert tests to use Autotest.
Ben Pfaff [Wed, 29 Sep 2010 04:30:20 +0000 (21:30 -0700)]
INSERT: Convert tests to use Autotest.

13 years agosyntax-file: Open syntax files immediately, instead of delaying.
Ben Pfaff [Wed, 29 Sep 2010 04:19:59 +0000 (21:19 -0700)]
syntax-file: Open syntax files immediately, instead of delaying.

Until now, syntax files have been opened only when the first line needs to
be read.  This commit changes behavior to open syntax files as soon as the
syntax file source is created.

This fixes the behavior INSERT CD=YES when a relative file path is
specified.  Without this commit, INSERT checks that the file exists, then
it creates the syntax file source, then it chdirs into the syntax file's
directory, and then the syntax file source tries to open the file, which
fails because the relative path is no longer correct.  With this commit,
the file gets opened before the chdir, so it succeeds.

The following commit will add a test to prevent regression.

13 years agotests: Fix distribution, by adding tests/testsuite.in to EXTRA_DIST.
Ben Pfaff [Wed, 29 Sep 2010 03:30:56 +0000 (20:30 -0700)]
tests: Fix distribution, by adding tests/testsuite.in to EXTRA_DIST.

13 years agotests: Convert IMPORT and EXPORT test to use Autotest.
Ben Pfaff [Tue, 28 Sep 2010 05:06:45 +0000 (22:06 -0700)]
tests: Convert IMPORT and EXPORT test to use Autotest.

13 years agotests: Convert GET DATA /TYPE=PSQL tests to use Autotest.
Ben Pfaff [Tue, 28 Sep 2010 05:01:38 +0000 (22:01 -0700)]
tests: Convert GET DATA /TYPE=PSQL tests to use Autotest.

13 years agotests: Break get-data.at up into get-data-gnm.at and get-data-txt.at
Ben Pfaff [Tue, 28 Sep 2010 04:55:17 +0000 (21:55 -0700)]
tests: Break get-data.at up into get-data-gnm.at and get-data-txt.at

13 years agoDO REPEAT: Add test for missing END REPEAT.
Ben Pfaff [Tue, 28 Sep 2010 01:56:15 +0000 (18:56 -0700)]
DO REPEAT: Add test for missing END REPEAT.

Bug #31016.

13 years agolexer: Properly initialize lexer->prog when lex_get_line_raw() fails.
Ben Pfaff [Tue, 28 Sep 2010 01:51:22 +0000 (18:51 -0700)]
lexer: Properly initialize lexer->prog when lex_get_line_raw() fails.

lex_get_line(), the main caller of lex_get_line_raw(), set lexer->prog to
NULL when reading failed, but other callers need to do the same thing too,
otherwise e.g. DO REPEAT accesses invalid storage when there is a missing
END REPEAT.

Bug #31016.

13 years agoDO REPEAT: Report an error when END REPEAT is missing.
Ben Pfaff [Tue, 28 Sep 2010 01:49:25 +0000 (18:49 -0700)]
DO REPEAT: Report an error when END REPEAT is missing.

Bug #31016.

13 years agotests: Convert GET DATA /TYPE=GNM tests to use Autotest.
Ben Pfaff [Sun, 26 Sep 2010 05:25:16 +0000 (22:25 -0700)]
tests: Convert GET DATA /TYPE=GNM tests to use Autotest.

13 years agotests: Convert GET DATA /TYPE=TXT tests to use Autotest.
Ben Pfaff [Sun, 26 Sep 2010 03:55:24 +0000 (20:55 -0700)]
tests: Convert GET DATA /TYPE=TXT tests to use Autotest.

13 years agotests: Convert FILTER tests to use Autotest.
Ben Pfaff [Sun, 26 Sep 2010 03:23:09 +0000 (20:23 -0700)]
tests: Convert FILTER tests to use Autotest.

13 years agotests: Convert FILE HANDLE tests to use Autotest.
Ben Pfaff [Sun, 26 Sep 2010 02:46:35 +0000 (19:46 -0700)]
tests: Convert FILE HANDLE tests to use Autotest.

13 years agotests: Convert FILE LABEL, DOCUMENT, ADD DOCUMENT tests to use Autotest.
Ben Pfaff [Sun, 26 Sep 2010 02:42:09 +0000 (19:42 -0700)]
tests: Convert FILE LABEL, DOCUMENT, ADD DOCUMENT tests to use Autotest.

13 years agotests: Convert EXAMINE tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:56:06 +0000 (16:56 -0700)]
tests: Convert EXAMINE tests to use Autotest.

13 years agotests: Convert erase.sh test to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:38:27 +0000 (16:38 -0700)]
tests: Convert erase.sh test to use Autotest.

13 years agotests: Convert do-repeat.sh test to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:33:01 +0000 (16:33 -0700)]
tests: Convert do-repeat.sh test to use Autotest.

13 years agotests: Convert do-if.sh test to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:26:49 +0000 (16:26 -0700)]
tests: Convert do-if.sh test to use Autotest.

13 years agotests: Convert correlation.sh test to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:20:58 +0000 (16:20 -0700)]
tests: Convert correlation.sh test to use Autotest.

13 years agotests: Convert bignum.sh test to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 23:13:04 +0000 (16:13 -0700)]
tests: Convert bignum.sh test to use Autotest.

13 years agotower: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:55:16 +0000 (15:55 -0700)]
tower: Convert tests to use Autotest.

13 years agostringi-set: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:45:35 +0000 (15:45 -0700)]
stringi-set: Convert tests to use Autotest.

13 years agostring-set: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:41:39 +0000 (15:41 -0700)]
string-set: Convert tests to use Autotest.

13 years agostringi-map: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:37:02 +0000 (15:37 -0700)]
stringi-map: Convert tests to use Autotest.

13 years agostring-map: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:33:43 +0000 (15:33 -0700)]
string-map: Convert tests to use Autotest.

13 years agostr: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 22:17:10 +0000 (15:17 -0700)]
str: Convert tests to use Autotest.

13 years agosparse-array: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:46:13 +0000 (14:46 -0700)]
sparse-array: Convert tests to use Autotest.

13 years agorange-set: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:34:46 +0000 (14:34 -0700)]
range-set: Convert tests to use Autotest.

13 years agorange-map: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:31:48 +0000 (14:31 -0700)]
range-map: Convert tests to use Autotest.

13 years agollx: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:27:10 +0000 (14:27 -0700)]
llx: Convert tests to use Autotest.

13 years agoll: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:24:47 +0000 (14:24 -0700)]
ll: Convert tests to use Autotest.

13 years agohmapx: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:14:44 +0000 (14:14 -0700)]
hmapx: Convert tests to use Autotest.

13 years agohmap: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 21:07:13 +0000 (14:07 -0700)]
hmap: Convert tests to use Autotest.

13 years agoheap: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 19:38:29 +0000 (12:38 -0700)]
heap: Convert tests to use Autotest.

13 years agobt: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 19:32:39 +0000 (12:32 -0700)]
bt: Convert tests to use Autotest.

13 years agoabt: Convert tests to use Autotest.
Ben Pfaff [Sat, 25 Sep 2010 04:42:02 +0000 (21:42 -0700)]
abt: Convert tests to use Autotest.

13 years agoUpdate to latest Gnulib
John Darrington [Sat, 25 Sep 2010 11:18:04 +0000 (13:18 +0200)]
Update to latest Gnulib

13 years agoCreated an additional i18n test
John Darrington [Sat, 25 Sep 2010 09:43:23 +0000 (11:43 +0200)]
Created an additional i18n test

13 years agotests_check target depends upon check_PROGRAMS
John Darrington [Thu, 23 Sep 2010 19:20:59 +0000 (21:20 +0200)]
tests_check target depends upon check_PROGRAMS

13 years agodata-in: Get rid of first_column, last_column arguments.
Ben Pfaff [Fri, 24 Sep 2010 04:03:36 +0000 (21:03 -0700)]
data-in: Get rid of first_column, last_column arguments.

Most callers can't provide this arguments, and so in the interest of
making the data_in() interface simpler, it seems better to put the
callers in charge of dealing with error messages, since they better
know their own context.

13 years agodata-in: Make data_in() parameters more uniform.
Ben Pfaff [Mon, 20 Sep 2010 04:36:58 +0000 (21:36 -0700)]
data-in: Make data_in() parameters more uniform.

data_in() essentially takes an input encoding and an output encoding but
the parameters were in inconsistent order, inconsistently named, and had
inconsistent types.  This commit changes all that to, I hope, be easier to
understand.

13 years agodata-in: Rewrite logic for recoding input, and get rid of src_enc member.
Ben Pfaff [Fri, 24 Sep 2010 03:56:50 +0000 (20:56 -0700)]
data-in: Rewrite logic for recoding input, and get rid of src_enc member.

The logic used here seemed actually wrong for non-binary numeric formats
and AHEX format: we want these translated into the native encoding so that
we can interpret digits and letters properly without additional work.
The only case where we care about the output encoding is A format.

13 years agodata-in: Eliminate "implied_decimals" parameter from data_in().
Ben Pfaff [Mon, 20 Sep 2010 03:55:06 +0000 (20:55 -0700)]
data-in: Eliminate "implied_decimals" parameter from data_in().

This parameter is usually 0, so break out the associated functionality into
a new function that callers can use if they really need it.

13 years agocalendar: Use sensible error reporting in calendar_gregorian_to_offset().
Ben Pfaff [Sat, 18 Sep 2010 00:10:44 +0000 (17:10 -0700)]
calendar: Use sensible error reporting in calendar_gregorian_to_offset().

13 years agomessage: Add column range to struct msg_locator.
Ben Pfaff [Sun, 19 Sep 2010 18:07:09 +0000 (11:07 -0700)]
message: Add column range to struct msg_locator.

data_in() can specify a range of columns for the messages that it outputs,
but until now these were not output in the format specified by the GNU
Coding Standards.  This commit fixes that.

13 years agomessage: Consistently initialize locator; use 0 for "no line number".
Ben Pfaff [Sun, 19 Sep 2010 18:04:41 +0000 (11:04 -0700)]
message: Consistently initialize locator; use 0 for "no line number".

A few of the callers of msg_emit() did not initialize the "where" member
of the struct msg, because they expect that msg_emit() will do it for them.
This is currently correct, but I intend to soon introduce the ability for
msg_emit()'s caller to specify a location.  With that change, it will be
important for the caller to initialize this member, so this commit makes
sure of that.

At the same time, some callers were using -1 as the default value that
means "no line number" and others were using 0.  This commit standardizes
on the latter.

13 years agocommand: Add specific DATASET unimplemented commands.
Ben Pfaff [Mon, 19 Jul 2010 04:12:10 +0000 (21:12 -0700)]
command: Add specific DATASET unimplemented commands.

13 years agocommand: Remove superfluous trailing spaces from command names.
Ben Pfaff [Sun, 18 Jul 2010 21:57:02 +0000 (14:57 -0700)]
command: Remove superfluous trailing spaces from command names.

These spaces made user messages look a little funny but they were otherwise
harmless.

13 years agocommand: Remove INSERT from list of unimplemented commands.
Ben Pfaff [Sun, 18 Jul 2010 21:55:55 +0000 (14:55 -0700)]
command: Remove INSERT from list of unimplemented commands.

This command is implemented, so this was a duplicate entry.

13 years agolexer: Use lex_is_string() more consistently.
Ben Pfaff [Sun, 12 Sep 2010 21:05:36 +0000 (14:05 -0700)]
lexer: Use lex_is_string() more consistently.

The lexer has this function, so we might as well use it consistently.

13 years agolexer: Remove DUMP_TOKENS debugging feature.
Ben Pfaff [Mon, 12 Jul 2010 05:04:17 +0000 (22:04 -0700)]
lexer: Remove DUMP_TOKENS debugging feature.

This feature is not very useful anymore.  I have not used it in years.

13 years agolexer: Improve translatability of lex_error().
Ben Pfaff [Sat, 11 Sep 2010 20:54:25 +0000 (13:54 -0700)]
lexer: Improve translatability of lex_error().

In general I believe that it is easier to translate full sentences or
clauses.  It seems likely that "Syntax error %s at %s." where the first
%s is an arbitrary English phrase would be impossible to translate
grammatically into some languages, so this changes the general form to
"Syntax error at %s: %s." which seems more likely to be translatable while
not changing the English meaning.

13 years agoMake translation easier.
Ben Pfaff [Fri, 17 Sep 2010 03:59:13 +0000 (20:59 -0700)]
Make translation easier.

Many of the invocations of lex_error() were easy to rephrase to be more
easily translated, or to rewrite as calls to other functions.

13 years agoHOST: Use more modern syntax.
Ben Pfaff [Tue, 6 Jul 2010 23:17:19 +0000 (16:17 -0700)]
HOST: Use more modern syntax.

An old SPSS paper manual I have describes the syntax that PSPP
implemented for HOST up until this commit, but newer versions
describe the syntax that this commit adopts.

13 years agoAGGREGATE: Simplify code.
Ben Pfaff [Sun, 12 Sep 2010 21:06:55 +0000 (14:06 -0700)]
AGGREGATE: Simplify code.

ds_chomp() returns whether it trimmed off a character, and we might as well
use that instead of doing a redundant check.

13 years agoPERMISSIONS: Add missing check for string token.
Ben Pfaff [Sun, 12 Sep 2010 21:05:59 +0000 (14:05 -0700)]
PERMISSIONS: Add missing check for string token.

13 years agosyntax-string-source: Fix format string problems.
Ben Pfaff [Fri, 17 Sep 2010 23:50:44 +0000 (16:50 -0700)]
syntax-string-source: Fix format string problems.

create_syntax_string_source() treated its argument as a printf-style format
string but wasn't annotated properly.  Most of the callers did not pass
string literals and were not escaped, so change it not to format its string
and add a new function create_syntax_format_source() with the previous
behavior.

13 years agoi18n: New function recode_substring_pool().
Ben Pfaff [Fri, 24 Sep 2010 03:45:28 +0000 (20:45 -0700)]
i18n: New function recode_substring_pool().

Occasionally it is necessary to recode a string that might contain a null
byte.  This function is useful in such a case.