pspp-builds.git
16 years agoAdded egression dialog
Jason Stover [Wed, 27 Feb 2008 04:04:16 +0000 (04:04 +0000)]
Added egression dialog

16 years agoFixed bug #21073
John Darrington [Wed, 27 Feb 2008 02:38:19 +0000 (02:38 +0000)]
Fixed bug #21073

16 years agoThis file's very out of date, and it duplicates the bug tracker.
John Darrington [Sat, 23 Feb 2008 06:04:47 +0000 (06:04 +0000)]
This file's very out of date, and it duplicates the bug tracker.
Removing it.

16 years agoThis file no longer serves any useful purpose.
John Darrington [Sat, 23 Feb 2008 04:40:25 +0000 (04:40 +0000)]
This file no longer serves any useful purpose.

16 years agoRemove obsolete properties from glade files. Fixed bug #20897
John Darrington [Sat, 23 Feb 2008 01:53:00 +0000 (01:53 +0000)]
Remove obsolete properties from glade files.  Fixed bug #20897

16 years agoRemove erroneous cast.
John Darrington [Wed, 20 Feb 2008 23:26:19 +0000 (23:26 +0000)]
Remove erroneous cast.

16 years agoRemove erroneous casts.
John Darrington [Wed, 20 Feb 2008 23:20:00 +0000 (23:20 +0000)]
Remove erroneous casts.

16 years agoWhitespace changes and remove unnecessary casts.
John Darrington [Wed, 20 Feb 2008 23:14:10 +0000 (23:14 +0000)]
Whitespace changes and remove unnecessary casts.

16 years agoCleanup gtksheet and add features to var-sheet.[ch]
John Darrington [Wed, 20 Feb 2008 10:04:11 +0000 (10:04 +0000)]
Cleanup gtksheet and add features to var-sheet.[ch]

16 years agoPatch #6426. Reviewed by John Darrington.
Ben Pfaff [Wed, 20 Feb 2008 05:06:48 +0000 (05:06 +0000)]
Patch #6426.  Reviewed by John Darrington.

Add "trailing-rows", "format-type" properties to PsppireVarStore.

16 years agoFixed some problems reported by autoconf -Wall
John Darrington [Wed, 20 Feb 2008 04:43:37 +0000 (04:43 +0000)]
Fixed some problems reported by autoconf -Wall
Plugged some memory leaks.

16 years ago(popup_messages): Always destroy `msg' and `lead' strings, avoiding a
Ben Pfaff [Wed, 20 Feb 2008 04:24:29 +0000 (04:24 +0000)]
(popup_messages): Always destroy `msg' and `lead' strings, avoiding a
memory leak.  Thanks to John Darrington for reporting the problem.

16 years agoAdded const qualifier to return value of gtk_check_version, as
John Darrington [Wed, 20 Feb 2008 00:26:20 +0000 (00:26 +0000)]
Added const qualifier to return value of gtk_check_version, as
required by GTK 2.12

16 years ago(ds_read_line): Add argument to limit the length of the line to be
Ben Pfaff [Tue, 19 Feb 2008 06:45:11 +0000 (06:45 +0000)]
(ds_read_line): Add argument to limit the length of the line to be
read.  Update all callers.

16 years ago(var_create): Use the new functions for default variable attributes below.
Ben Pfaff [Tue, 19 Feb 2008 06:41:25 +0000 (06:41 +0000)]
(var_create): Use the new functions for default variable attributes below.
(var_default_formats): New function.
(var_default_measure): New function.
(var_default_alignment): New function.

16 years ago(macro FMT_MAX_NUMERIC_WIDTH): New macro.
Ben Pfaff [Tue, 19 Feb 2008 06:37:57 +0000 (06:37 +0000)]
(macro FMT_MAX_NUMERIC_WIDTH): New macro.

16 years agoPatch #6426. Reviewed by John Darrington.
Ben Pfaff [Tue, 19 Feb 2008 06:32:18 +0000 (06:32 +0000)]
Patch #6426.  Reviewed by John Darrington.

(min_width): Renamed fmt_min_width and made public.
Updated all references.
(max_width): Renamed fmt_max_width and made public.  Updated all
references.
(max_decimals): Renamed fmt_max_decimals and made public.  Updated
all references.

16 years agoApplied patch #6420
John Darrington [Tue, 19 Feb 2008 00:35:19 +0000 (00:35 +0000)]
Applied patch #6420

16 years agoImplemented the Examine dialog
John Darrington [Mon, 18 Feb 2008 08:35:27 +0000 (08:35 +0000)]
Implemented the Examine dialog

16 years agoRemove superfluous casts and fix whitespace sillyness.
John Darrington [Sun, 17 Feb 2008 05:37:49 +0000 (05:37 +0000)]
Remove superfluous casts and fix whitespace sillyness.

16 years agoFixed bug #22306
John Darrington [Thu, 14 Feb 2008 12:08:39 +0000 (12:08 +0000)]
Fixed bug #22306

16 years agoFixed crash when trying to get the label of a non-existant variable.
John Darrington [Wed, 13 Feb 2008 03:22:02 +0000 (03:22 +0000)]
Fixed crash when trying to get the label of a non-existant variable.

16 years agoFix bug which crashed the gui when selected an empty line in the
John Darrington [Wed, 13 Feb 2008 02:59:30 +0000 (02:59 +0000)]
Fix bug which crashed the gui when selected an empty line in the
variable info dialog.

16 years agoAdd a couple of extensions to GET DATA TYPE=TXT. Patch #6412. Thanks
Ben Pfaff [Sun, 10 Feb 2008 08:17:49 +0000 (08:17 +0000)]
Add a couple of extensions to GET DATA TYPE=TXT.  Patch #6412.  Thanks
to John Darrington for review.

16 years agoConsolidate multiple messages into single message dialog. Patch
Ben Pfaff [Sun, 10 Feb 2008 07:08:45 +0000 (07:08 +0000)]
Consolidate multiple messages into single message dialog.  Patch
#6405.  Thanks to John Darrington for review.

* automake.mk (dist_src_ui_gui_psppire_DATA): Add
message-dialog.glade.

* helper.c (give_help): Use GtkMessageDialog directly instead of
trying to reuse message-dialog code.

* message-dialog.c: Rewritten.

* message-dialog.glade: New file.

16 years agoRemoved the "feature" where rows are automatically appended
John Darrington [Fri, 8 Feb 2008 23:30:12 +0000 (23:30 +0000)]
Removed the "feature" where rows are automatically appended
to the datasheet on focusing below the last row.

16 years agoundid accidental checkin of text import patch
Jason Stover [Fri, 8 Feb 2008 17:50:52 +0000 (17:50 +0000)]
undid accidental checkin of text import patch

16 years agooops
Jason Stover [Fri, 8 Feb 2008 17:22:27 +0000 (17:22 +0000)]
oops

16 years agooops
Jason Stover [Fri, 8 Feb 2008 16:10:12 +0000 (16:10 +0000)]
oops

16 years agoAdded crosstabs dialog
Jason Stover [Fri, 8 Feb 2008 14:46:49 +0000 (14:46 +0000)]
Added crosstabs dialog

16 years agoAdded valid predicates to transpose and sort dialogs.
John Darrington [Fri, 8 Feb 2008 03:33:43 +0000 (03:33 +0000)]
Added valid predicates to transpose and sort dialogs.

16 years agoFlush the journal on journal_write
John Darrington [Thu, 7 Feb 2008 23:40:12 +0000 (23:40 +0000)]
Flush the journal on journal_write

16 years agoFix build breakage caused by LDFLAGS conflicts.
John Darrington [Thu, 7 Feb 2008 04:40:42 +0000 (04:40 +0000)]
Fix build breakage caused by LDFLAGS conflicts.

16 years agoIncrease the chances of finding libpq if it's installed.
John Darrington [Wed, 6 Feb 2008 10:33:05 +0000 (10:33 +0000)]
Increase the chances of finding libpq if it's installed.

16 years agoOptimise the psql reader, by fetching more than one record at a time.
John Darrington [Wed, 6 Feb 2008 02:08:18 +0000 (02:08 +0000)]
Optimise the psql reader, by fetching more than one record at a time.
Fix a few bugs.  Ask the server to send the number of records when the
casereader is created.

16 years agoPostgres 8.3 represents money with 64 bits. Compensate accordingly.
John Darrington [Tue, 5 Feb 2008 02:12:03 +0000 (02:12 +0000)]
Postgres 8.3 represents money with 64 bits. Compensate accordingly.

16 years agoPatch #6387
John Darrington [Mon, 4 Feb 2008 09:29:08 +0000 (09:29 +0000)]
Patch #6387

16 years agoFix server startup so it works with postgres 8.2
John Darrington [Mon, 4 Feb 2008 09:21:02 +0000 (09:21 +0000)]
Fix server startup so it works with postgres 8.2

16 years agoOops. Add missing files.
John Darrington [Mon, 4 Feb 2008 09:04:18 +0000 (09:04 +0000)]
Oops.  Add missing files.

16 years agoFixed the test for the presence of the OpenSSL library.
John Darrington [Mon, 4 Feb 2008 03:46:15 +0000 (03:46 +0000)]
Fixed the test for the presence of the OpenSSL library.

16 years agoAdded the postgres reader. Closes patch #6388
John Darrington [Mon, 4 Feb 2008 01:24:00 +0000 (01:24 +0000)]
Added the postgres reader.  Closes patch #6388

16 years agoFixed various memory leaks in GUI
John Darrington [Sun, 3 Feb 2008 12:09:24 +0000 (12:09 +0000)]
Fixed various memory leaks in GUI

16 years agoAdd new utility "dissect-sysfile".
Ben Pfaff [Sun, 3 Feb 2008 06:52:12 +0000 (06:52 +0000)]
Add new utility "dissect-sysfile".

Patch #6347.

16 years agoIn system files, fix error message when floating-point format cannot
Ben Pfaff [Sun, 3 Feb 2008 06:47:24 +0000 (06:47 +0000)]
In system files, fix error message when floating-point format cannot
be identified.

Patch #6347.

16 years agoIn system files, allow missing values to be specified on long string
Ben Pfaff [Sun, 3 Feb 2008 06:45:03 +0000 (06:45 +0000)]
In system files, allow missing values to be specified on long string
variables, but warn about them because PSPP does not yet support them.
Ignore extension records 20 and 21, which PSPP does not yet support.

Patch #6347.

16 years agoFix memory leaks in gui
John Darrington [Sun, 3 Feb 2008 05:26:05 +0000 (05:26 +0000)]
Fix memory leaks in gui

16 years agoFix leak in dialogs, and correct name of options button.
John Darrington [Sun, 3 Feb 2008 04:15:34 +0000 (04:15 +0000)]
Fix leak in dialogs, and correct name of options button.

16 years agoPatch #6386. Thanks to John Darrington for review and for the
Ben Pfaff [Sat, 2 Feb 2008 06:58:12 +0000 (06:58 +0000)]
Patch #6386.  Thanks to John Darrington for review and for the
updates to gnumeric-reader.c.

* dictionary.c (make_hinted_name): New function.
(make_numeric_name): New function.
(dict_make_unique_var_name): New function.

* gnumeric-reader.c (devise_name): Removed.
(munge_name): Removed.
(gnumeric_open_reader): Use new function
dict_make_unique_var_name.

* short-names.c (set_var_short_name_suffix): Use new function
str_format_26adic.

16 years agoFixed some warnings from valgrind.
John Darrington [Sat, 2 Feb 2008 06:40:29 +0000 (06:40 +0000)]
Fixed some warnings from valgrind.

16 years agoUpdate Back-Cover Text for manuals to the newest form recommended by
Ben Pfaff [Wed, 30 Jan 2008 23:40:33 +0000 (23:40 +0000)]
Update Back-Cover Text for manuals to the newest form recommended by
GNU maintainer's manual.

16 years agoOops
John Darrington [Tue, 29 Jan 2008 11:26:05 +0000 (11:26 +0000)]
Oops

16 years agoImplemented the paired samples t test dialog. Closes patch #6378
John Darrington [Tue, 29 Jan 2008 11:12:59 +0000 (11:12 +0000)]
Implemented the paired samples t test dialog.  Closes patch #6378

16 years agoFixed bug #22073
John Darrington [Tue, 22 Jan 2008 06:49:07 +0000 (06:49 +0000)]
Fixed bug #22073

16 years agoReworked settings so as to use one large struct instead of lots of static
John Darrington [Sat, 19 Jan 2008 06:58:03 +0000 (06:58 +0000)]
Reworked settings so as to use one large struct instead of lots of static
variables.  Closes patch #6363

16 years agoFix bug #22012
John Darrington [Mon, 14 Jan 2008 05:08:44 +0000 (05:08 +0000)]
Fix bug #22012

16 years agoCloses patch #6359
John Darrington [Wed, 2 Jan 2008 03:46:42 +0000 (03:46 +0000)]
Closes patch #6359

16 years agoIgnore null pointer in taint_destroy. Closes bug #21863
John Darrington [Mon, 24 Dec 2007 03:54:38 +0000 (03:54 +0000)]
Ignore null pointer in taint_destroy.  Closes bug #21863

16 years agoConstness patrol
John Darrington [Mon, 24 Dec 2007 01:33:42 +0000 (01:33 +0000)]
Constness patrol

16 years agoMade case_{reader,writer}_class structures const.
John Darrington [Fri, 21 Dec 2007 23:49:36 +0000 (23:49 +0000)]
Made case_{reader,writer}_class structures const.

16 years agoOops. Added new test.
John Darrington [Fri, 21 Dec 2007 23:44:18 +0000 (23:44 +0000)]
Oops.  Added new test.

16 years agoClosing bug #21760
John Darrington [Fri, 21 Dec 2007 09:12:45 +0000 (09:12 +0000)]
Closing bug #21760

16 years agogtk_window_set_transient_for: Wrong argument order.
John Darrington [Thu, 13 Dec 2007 23:27:02 +0000 (23:27 +0000)]
gtk_window_set_transient_for: Wrong argument order.

16 years agoRemove unused variables.
John Darrington [Thu, 13 Dec 2007 23:20:28 +0000 (23:20 +0000)]
Remove unused variables.

16 years agoOops. Arguments reversed.
John Darrington [Thu, 13 Dec 2007 10:35:51 +0000 (10:35 +0000)]
Oops.  Arguments reversed.

16 years agoMiscellaneous T Test improvements. See bug #21760
John Darrington [Thu, 13 Dec 2007 07:58:20 +0000 (07:58 +0000)]
Miscellaneous T Test improvements. See bug #21760

16 years agoWhitespace changes only.
John Darrington [Wed, 12 Dec 2007 00:26:26 +0000 (00:26 +0000)]
Whitespace changes only.

16 years agoAdded the proper quotation marks in the syntax generator when the groups
John Darrington [Tue, 11 Dec 2007 11:46:04 +0000 (11:46 +0000)]
Added the proper quotation marks in the syntax generator when the groups
variable is a string variable.

16 years agoAdded the One Sample T Test dialog
John Darrington [Mon, 10 Dec 2007 10:21:05 +0000 (10:21 +0000)]
Added the One Sample T Test dialog

16 years agoOops
John Darrington [Sat, 8 Dec 2007 06:32:02 +0000 (06:32 +0000)]
Oops

16 years agoPatch #6302.
Ben Pfaff [Sat, 8 Dec 2007 06:17:00 +0000 (06:17 +0000)]
Patch #6302.

(data_parser_make_active_file): Fix case count
argument to casereader_create_sequential, which fixes data reading
in the GUI.
Provided by John Darrington.

16 years agoCreate a "pspp-stock-select" stock icon, and use it in selector actions.
John Darrington [Sat, 8 Dec 2007 06:10:03 +0000 (06:10 +0000)]
Create a "pspp-stock-select" stock icon, and use it in selector actions.
It probably won't ever get displayed, but avoids GtkCritical errors in
older gtk libraries.

16 years agoPatch #6302.
Ben Pfaff [Sat, 8 Dec 2007 06:09:03 +0000 (06:09 +0000)]
Patch #6302.

* casegrouper.c (casegrouper_get_next_group): Cause a casegrouper
made from an empty casereader produce a casegrouper with no
groups, instead of one with one group that has no cases.

* casereader.c (casereader_is_empty): New function.

16 years agoPatch #6302.
Ben Pfaff [Sat, 8 Dec 2007 06:05:35 +0000 (06:05 +0000)]
Patch #6302.

* crosstabs.q (precalc): Initialize data structures even if the
first case cannot be read.

* frequencies.q (precalc): Ditto.

16 years agoHandle variable display parameters record with only 2 data items per
Ben Pfaff [Fri, 7 Dec 2007 05:22:06 +0000 (05:22 +0000)]
Handle variable display parameters record with only 2 data items per
variable.  Reported by Guido Gay <gay@irer.it>.

16 years agoMade the options subdialog transient on the parent.
John Darrington [Fri, 7 Dec 2007 04:11:24 +0000 (04:11 +0000)]
Made the options subdialog transient on the parent.

16 years agoMention GET DATA support for text data files.
Ben Pfaff [Wed, 5 Dec 2007 06:41:27 +0000 (06:41 +0000)]
Mention GET DATA support for text data files.

16 years agoImplement GET DATA/TYPE=TXT.
Ben Pfaff [Wed, 5 Dec 2007 06:40:12 +0000 (06:40 +0000)]
Implement GET DATA/TYPE=TXT.

* automake.mk: Add new tests.

* command/get-data-txt.sh: New test.

* command/get-data-txt-examples.sh: New test.

* command/get-data-txt-importcases.sh: New test.

* data-parser.c: New file.

* data-parser.h: New file.

* data-list.c (struct dls_var_spec): Removed.
(ll_to_dls_var_spec): Removed.
(enum dls_type): Removed.
(struct data_list_pgm): Rename struct data_list_trns.  Remove
pool, specs, type, record_cnt, delims, skip_records, value_cnt
members.  Add new `parser' member.
(cmd_data_list): Use data-parser infrastructure.
(parse_fixed): Ditto.
(parse_free): Ditto.
(dump_fixed_table): Removed.
(dump_free_table): Removed.
(cut_field): Removed.
(read_from_data_list): Removed.
(read_from_data_list_fixed): Removed.
(read_from_data_list_free): Removed.
(read_from_data_list_list): Removed.
(data_list_trns_free): Rename arguments for clarity.
(data_list_trns_proc): Ditto.
(data_list_casereader_read): Removed.
(data_list_casereader_destroy): Removed.
(data_list_casereader_class): Removed.

* get-data.c (cmd_get_data): Support TXT type.
(set_type): New function.
(parse_get_txt): New function.

16 years agoAllow parsing 0-based column ranges.
Ben Pfaff [Wed, 5 Dec 2007 06:24:46 +0000 (06:24 +0000)]
Allow parsing 0-based column ranges.

(parse_column): New function.
(parse_column_range): Add `base' argument.  Update all callers.

16 years agoMake GET DATA a separate command, instead of something invoked
Ben Pfaff [Wed, 5 Dec 2007 06:22:45 +0000 (06:22 +0000)]
Make GET DATA a separate command, instead of something invoked
indirectly from GET.

* automake.mk: Remove get-data.h from sources.

* get-data.h: Removed.

* get-data.c (parse_get_data_command): Rename cmd_get_data.

* get.c (parse_read_command): No longer any need to check for DATA
keyword.

* command.def: Add GET DATA command.

16 years ago* lexer.c (lex_match_id_n): New function.
Ben Pfaff [Wed, 5 Dec 2007 06:15:38 +0000 (06:15 +0000)]
* lexer.c (lex_match_id_n): New function.
(lex_match_id): Reimplement in terms of lex_match_id_n.

* identifier.c (lex_id_match_n): New function.
(lex_id_match): Reimplement in terms of lex_id_match_n.

16 years ago* src/language/data-io/data-reader.c (struct dfm_reader): New
Ben Pfaff [Wed, 5 Dec 2007 06:04:59 +0000 (06:04 +0000)]
* src/language/data-io/data-reader.c (struct dfm_reader): New
`file_size' member to support dfm_get_percent_read.
(dfm_open_reader): Initialize file_size.
(dfm_get_percent_read): New function.

* Smake (GNULIB_MODULES): Add ftello module.

16 years agoRemoved 'Written by' line
Jason Stover [Tue, 4 Dec 2007 04:22:24 +0000 (04:22 +0000)]
Removed 'Written by' line

16 years agoImplemented the FREQUENCIES dialog.
John Darrington [Sat, 1 Dec 2007 04:42:19 +0000 (04:42 +0000)]
Implemented the FREQUENCIES dialog.

16 years agoMade libglade_psppire.so link against gl/libgl.a
John Darrington [Fri, 30 Nov 2007 04:19:08 +0000 (04:19 +0000)]
Made libglade_psppire.so link against gl/libgl.a

16 years ago* bugs/compression.sh: Don't fail on big-endian system. Partial
Ben Pfaff [Sun, 25 Nov 2007 19:11:39 +0000 (19:11 +0000)]
* bugs/compression.sh: Don't fail on big-endian system.  Partial
fix for bug #21590.

* bugs/sysfile-info.sh: Disregard "Integer Format" and "Real
Format" lines in SYSFILE INFO output, to permit big-endian systems
to pass also.  Partial fix for bug #21590.

* float-format.c (assemble_number): Only store 32 bits for Z short
format.  Partial fix for bug #21590.

16 years ago(src_data_libdata_a_SOURCES): Add val-type.h, to fix make distcheck.
Ben Pfaff [Sun, 25 Nov 2007 06:17:16 +0000 (06:17 +0000)]
(src_data_libdata_a_SOURCES): Add val-type.h, to fix make distcheck.

16 years ago(short_names_assign): Fix dumb typo, in which `i' was written where
Ben Pfaff [Sat, 24 Nov 2007 22:14:43 +0000 (22:14 +0000)]
(short_names_assign): Fix dumb typo, in which `i' was written where
`j' was meant.

16 years agoImplemented the recode dialogs.
John Darrington [Fri, 23 Nov 2007 10:34:53 +0000 (10:34 +0000)]
Implemented the recode dialogs.

16 years agoAppended "EXECUTE." to the end of syntax generated by the compute dialog.
John Darrington [Fri, 23 Nov 2007 05:39:53 +0000 (05:39 +0000)]
Appended "EXECUTE." to the end of syntax generated by the compute dialog.

16 years agoAdded new icons to the install target.
John Darrington [Wed, 21 Nov 2007 11:57:15 +0000 (11:57 +0000)]
Added new icons to the install target.

16 years agoAdded glade-3 iconettes for the acr widget.
John Darrington [Wed, 21 Nov 2007 08:25:54 +0000 (08:25 +0000)]
Added glade-3 iconettes for the acr widget.

16 years agoCorrectly calculate n_missing_values field when writing variables that
Ben Pfaff [Mon, 19 Nov 2007 01:06:05 +0000 (01:06 +0000)]
Correctly calculate n_missing_values field when writing variables that
include a range of missing values.

16 years agoMention that pkg-config versions 0.18 and 0.19 are buggy.
Ben Pfaff [Sun, 18 Nov 2007 04:10:34 +0000 (04:10 +0000)]
Mention that pkg-config versions 0.18 and 0.19 are buggy.

Mention that pkg-config is required to read Gnumeric files.

16 years agoAdd definition of CHARSETALIASDIR to TESTS_ENVIRONMENT, to allow
Ben Pfaff [Thu, 15 Nov 2007 15:00:34 +0000 (15:00 +0000)]
Add definition of CHARSETALIASDIR to TESTS_ENVIRONMENT, to allow
locale_charset to find charset.alias before running "make install".

16 years ago(display_variables): Fix DISPLAY LABELS. Thanks to Guido Gay
Ben Pfaff [Mon, 12 Nov 2007 00:54:50 +0000 (00:54 +0000)]
(display_variables): Fix DISPLAY LABELS.  Thanks to Guido Gay
<gay@irer.it> for reporting this bug.

16 years agoPatch #6262. New developers guide and resulting fixes and cleanups.
Ben Pfaff [Sun, 11 Nov 2007 05:51:38 +0000 (05:51 +0000)]
Patch #6262.  New developers guide and resulting fixes and cleanups.

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

* dict-class.c: New file.
(dict_class_from_id): Move here.
(dict_class_to_name): Move here.

* dict-class.h: New file.
(enum dict_class): Move here.  Change from consecutive integers to
consecutive bits, to make testing for any of multiple values
easier.  Add new DC_ALL constant.

* dictionary.c (struct dictionary): Change `case_limit' from
size_t to casenumber.
(dict_get_vars): Make final argument an enum dict_class.
(dict_get_vars_mutable): Ditto.
(dict_get_case_limit): Change return value to casenumber.
(dict_set_case_limit): Change final argument to a casenumber.
(dict_unset_split_var): Add assertion.  Rephrase slightly.
(dict_set_label): Use xstrndup to simplify.

* format.c (fmt_step_width): AHEX format also needs 2-byte
stepping.
(fmt_set_style): Simplify assertions.

* missing-values.c (mv_add_num_range): Rename mv_add_range.
Simplify implementation.
(mv_has_value): Simplify implementation.
(mv_pop_value): Remove the first value, not the last, to avoid
having GET followed by SAVE reverse the order of missing values.
(mv_peek_value): Rename mv_get_value.  Simplify assertion.
(mv_has_range): Simplify implementation.
(mv_peek_range): Rename mv_get_range.
(can_resize_string): Removed.
(mv_is_resizable): Use value_is_resizable.
(mv_resize): Use value_resize.

* short-names.h (SHORT_NAME_LEN): Move here.

* val-type.h: New file, for definitions related to type and width
of abstract values.  Before, these definitions were mixed among
those related to "union value" and those related to variables.
(macro SYSMIS): Move here.
(macro LOWEST): Move here.
(macro HIGHEST): Move here.
(macro MAX_STRING); Move here.
(enum val_type): New enum with values VAL_NUMERIC and VAL_STRING.
Replaces enum var_type that had values VAR_NUMERIC and VAR_STRING.
All references updated.
(val_type_is_valid): New function.  Replaces var_type_is_valid.
All references updated.
(val_type_from_width): New function.  Replaces
var_type_from_width.  All references updated.

* value-labels.c (val_labs_copy): Renamed val_labs_clone.  All
references updated.
(val_labs_can_set_width): Use value_is_resizable.
(val_labs_add): Simply return false if the value labels set is too
wide, instead of having undefined behavior.
(val_labs_replace): Ditto.
(val_labs_replace): Ditto.
(val_labs_first): Set iterator to null if iteration is complete.
(val_labs_first_sorted): Ditto.
(val_labs_done): Become a no-op if the iterator is null.

* value.c (value_is_resizable): New function.
(value_resize): New function.

* variable.c (var_get_dict_class): New function.

* variable.h (macro LONG_NAME_LEN): Rename VAR_NAME_LEN.  Update
all references.

* not-implemented.texi: Fix @include command so that it works
consistently, by using a file name relative to Makefile.am's
srcdir instead of relative to doc.

16 years agoPass -b option to diff to avoid spurious failure of
Ben Pfaff [Sat, 10 Nov 2007 21:28:04 +0000 (21:28 +0000)]
Pass -b option to diff to avoid spurious failure of
tests/bugs/compression.sh on od.

16 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.

16 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.

16 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