pspp
8 years agoCrosstabs Dialog: Remove some deprecated widgets
John Darrington [Sat, 5 Dec 2015 15:20:15 +0000 (16:20 +0100)]
Crosstabs Dialog: Remove some deprecated widgets

8 years agoValue Labels Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 14:36:41 +0000 (15:36 +0100)]
Value Labels Dialog: Remove deprecated widgets

8 years agoHistogram Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 14:13:37 +0000 (15:13 +0100)]
Histogram Dialog: Remove deprecated widgets

8 years agoComments Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 12:38:22 +0000 (13:38 +0100)]
Comments Dialog: Remove deprecated widgets

8 years agoEntry Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 12:28:38 +0000 (13:28 +0100)]
Entry Dialog: Remove deprecated widgets

8 years agoTranspose Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 12:24:08 +0000 (13:24 +0100)]
Transpose Dialog: Remove deprecated widgets

8 years agoVariable Info Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 12:10:26 +0000 (13:10 +0100)]
Variable Info Dialog: Remove deprecated widgets

8 years agoGoto Case Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 12:01:46 +0000 (13:01 +0100)]
Goto Case Dialog: Remove deprecated widgets

8 years agoWeight Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 11:52:11 +0000 (12:52 +0100)]
Weight Dialog: Remove deprecated widgets

8 years agoBinomial Dialog: Remove deprecated widgets
John Darrington [Sat, 5 Dec 2015 11:38:59 +0000 (12:38 +0100)]
Binomial Dialog: Remove deprecated widgets

8 years agoOneway Dialog: Remove obsolete widgets
John Darrington [Fri, 4 Dec 2015 21:14:17 +0000 (22:14 +0100)]
Oneway Dialog: Remove obsolete widgets

8 years agoBinomial dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 20:21:32 +0000 (21:21 +0100)]
Binomial dialog: Remove GtkAlignment

8 years agoAutorecode Dialog: Replace deprecated widgets
John Darrington [Fri, 4 Dec 2015 14:02:32 +0000 (15:02 +0100)]
Autorecode Dialog: Replace deprecated widgets

8 years agoMissing Value Dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 12:52:14 +0000 (13:52 +0100)]
Missing Value Dialog: Remove GtkAlignment

8 years agoVariable Type Dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 12:43:33 +0000 (13:43 +0100)]
Variable Type Dialog: Remove GtkAlignment

8 years agoValue Labels Dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 12:38:22 +0000 (13:38 +0100)]
Value Labels Dialog: Remove GtkAlignment

8 years agoQuick Cluster Dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 12:02:03 +0000 (13:02 +0100)]
Quick Cluster Dialog: Remove GtkAlignment

8 years agoComment Dialog: Remove GtkAlignment
John Darrington [Fri, 4 Dec 2015 11:58:22 +0000 (12:58 +0100)]
Comment Dialog: Remove GtkAlignment

8 years agoFix compiler warning
John Darrington [Fri, 4 Dec 2015 10:04:01 +0000 (11:04 +0100)]
Fix compiler warning

8 years agoFix bug in two sample non-parametric dialog.
John Darrington [Fri, 4 Dec 2015 09:37:48 +0000 (10:37 +0100)]
Fix bug in two sample non-parametric dialog.

Commit fc6620099bbc53762095569d5356b67a81a85402 changed all dialog
boxes such that the previous (existing) dialog widget and all
children are re-used each time the dialog is summoned, instead of
creating a new one each time.

The two sample non-parametric test, however has some special code
on activation to populate the dialog, and this had not been moved
to the conditional case - hence the pertinent widgets were getting
added each time.  This resulted in the dialog being overpopulated.

This change fixes these things.

8 years agoSort Dialog: Remove deprecated widgets and make some cosmetic improvements
John Darrington [Fri, 4 Dec 2015 08:55:28 +0000 (09:55 +0100)]
Sort Dialog: Remove deprecated widgets and make some cosmetic improvements

8 years agoSplit psppire.ui into three separate files
John Darrington [Fri, 4 Dec 2015 08:02:34 +0000 (09:02 +0100)]
Split psppire.ui into three separate files

This is more consistent with the rest of the system, where each dialog
has its own .ui file.

8 years agoNEWS: fix typo
John Darrington [Thu, 3 Dec 2015 18:27:08 +0000 (19:27 +0100)]
NEWS: fix typo

8 years agoEnsure that the leftmost vertical gridline gets rendered in RTL mode.
John Darrington [Wed, 2 Dec 2015 20:43:36 +0000 (21:43 +0100)]
Ensure that the leftmost vertical gridline gets rendered in RTL mode.

When in an RTL locale, the last (ie leftmost) vertical gridline was omitted.
This change corrects that.

Reported by: Mohammad Haghighat <hosseinhg@hotmail.com>

8 years agoSheet Grid Lines: Correct positioning.
John Darrington [Wed, 2 Dec 2015 20:30:31 +0000 (21:30 +0100)]
Sheet Grid Lines: Correct positioning.

The calculations for the x and y positions have been corrected to fit the Gtk3
cairo implementation.

8 years agoVertically reflect the table borders for RTL locales
John Darrington [Tue, 1 Dec 2015 17:35:50 +0000 (18:35 +0100)]
Vertically reflect the table borders for RTL locales

When rendering in a right to left locale, the terminals where a horizontal table
border line meets a vertical border needs to be a mirror image of what is normal
in a left to right locale.  This change does that.

Reported by: Mohammad Haghighat <hosseinhg@hotmail.com>

8 years agoOutput renderer: Reverse the order of table columns when in RTL locale
John Darrington [Tue, 1 Dec 2015 13:30:09 +0000 (14:30 +0100)]
Output renderer:  Reverse the order of table columns when in RTL locale

When operating in a RTL locale, the last column of a table should be rendered
"first" (ie. leftmost).  This change achieves that.  In order to determine if
the locale is a RTL locale, a new translatable string is introduced.  This
string must be localised by the translator of the .po file for RTL locales. LTR
locales can leave it untranslated.

Reported by: Mohammad Haghighat <hosseinhg@hotmail.com>

8 years agoOutput viewer: Right justify output items if an RTL locale is in effect
John Darrington [Mon, 30 Nov 2015 13:43:15 +0000 (14:43 +0100)]
Output viewer:  Right justify output items if an RTL locale is in effect

The GtkDrawingArea widgets which contain the rendered tables, must be shifted
to the right hand side of the parent widget for RTL locales.

Reported by: Mohammad Haghighat <hosseinhg@hotmail.com>

8 years agoOutput viewer: Add diagnostic feature
John Darrington [Tue, 1 Dec 2015 07:43:17 +0000 (08:43 +0100)]
Output viewer: Add diagnostic feature

8 years agoosx: Test 605 (QUICK CLUSTER with pairwise missing) failed on Mac OS
Friedrich Beckmann [Sun, 29 Nov 2015 15:50:00 +0000 (16:50 +0100)]
osx: Test 605 (QUICK CLUSTER with pairwise missing) failed on Mac OS

The uses head -n -3 to check the top number of lines of two files. On osx
negative line numbers are not allowed with head. I changed this to the
respective number of positive line numbers.

8 years agoosx: Test 172 (decrypt an encrypted syntax file) failed in regression
Friedrich Beckmann [Sun, 29 Nov 2015 15:45:53 +0000 (16:45 +0100)]
osx: Test 172 (decrypt an encrypted syntax file) failed in regression

Test 172 decrypts a file which produces some problematic CRLF characters.
The characters are removed with sed to check vs. reference data, but the sed
does not work the same way on osx as on linux. I changed this to tr which
works on both systems.

8 years agoFix build issue on Gnewsense mips64
John Darrington [Sun, 29 Nov 2015 11:16:45 +0000 (12:16 +0100)]
Fix build issue on Gnewsense mips64

8 years agoSmake clean target removed po/ChangeLog and po/Makefile.in (both are in git)
Friedrich Beckmann [Sun, 29 Nov 2015 12:23:56 +0000 (13:23 +0100)]
Smake clean target removed po/ChangeLog and po/Makefile.in (both are in git)

make -f Smake clean

removed po/ChangeLog and po/Makefile.in which are under git control. This
fix leaves those two files untouched. Without the fix, the make -f Smake
step after a clean ends with an error because po/Makefile.in is missing.

8 years agoFix compiler warning
John Darrington [Sun, 29 Nov 2015 08:14:40 +0000 (09:14 +0100)]
Fix compiler warning

8 years agoCorrect the rendering of the data and variable sheets in RTL locales
John Darrington [Sat, 28 Nov 2015 20:26:51 +0000 (21:26 +0100)]
Correct the rendering of the data and variable sheets in RTL locales

8 years agoFix change inadvertently added by previous commit
John Darrington [Sat, 28 Nov 2015 17:44:34 +0000 (18:44 +0100)]
Fix change inadvertently added by previous commit

8 years agoPersist dialog box widget settings.
John Darrington [Sat, 28 Nov 2015 06:55:01 +0000 (07:55 +0100)]
Persist dialog box widget settings.

Arrange for the status of widgets within dialog boxes to persist
between calls when called for the same dataset.   Some users
have requested this to make repeated operations easier.

8 years agoMake fn_open and fn_close take a struct file_handle instead of char *
John Darrington [Wed, 18 Nov 2015 17:52:24 +0000 (18:52 +0100)]
Make fn_open and fn_close take a struct file_handle instead of char *

This change alters the signature of the fn_open and fn_close functions,
and changes all callers appropriately.  The purpose of such a change is
so that the encoding of the filename is passed to fn_open from wherever
it was created.

It also changes the implementation of fn_open on windows systems to call
_wfopen instead of fopen.  This should fix the problem of windows builds
not being able to open files whose pathnames included non-ascii characters.

As a bonus, we no longer require the rather contrived function
local_to_filename_encoding.

Some related issues (what about the pspprc file?) remain.

8 years agoRemove diagnostic code from quick-cluster.c
John Darrington [Sat, 21 Nov 2015 08:53:55 +0000 (09:53 +0100)]
Remove diagnostic code from quick-cluster.c

8 years agoRemove unnecessary #include directives
John Darrington [Fri, 20 Nov 2015 19:55:18 +0000 (20:55 +0100)]
Remove unnecessary #include directives

8 years agofh_get_identity: Move to static scope
John Darrington [Sun, 15 Nov 2015 07:17:55 +0000 (08:17 +0100)]
fh_get_identity: Move to static scope

8 years agoQUICK CLUSTER: Remove sqrt from Euclidean distance calculations
John Darrington [Fri, 13 Nov 2015 12:57:38 +0000 (13:57 +0100)]
QUICK CLUSTER: Remove sqrt from Euclidean distance calculations

The Euclidean distance is used only for comparison with other Euclidean
distances.  Since it is invariant that (sqrt(x) < sqrt(y))  === (x < y)
for all non-negative x,y  it is a waste of effort calculating the sqrt.

8 years agofh_get_identity: Remove incorrect statement from comment.
John Darrington [Fri, 13 Nov 2015 13:02:17 +0000 (14:02 +0100)]
fh_get_identity: Remove incorrect statement from comment.

8 years agoMove fn_identity from file-name.c to file-handle-def.c
John Darrington [Wed, 11 Nov 2015 19:46:22 +0000 (20:46 +0100)]
Move fn_identity from file-name.c to file-handle-def.c

8 years agoNew top level menu for Graphs.
John Darrington [Wed, 11 Nov 2015 18:09:15 +0000 (19:09 +0100)]
New top level menu for Graphs.

Added a new top level menu to assist with the generation of graphics.
Currently it has only scatterplot, histogram and barchart.

8 years agoQuick Cluster: Reimplement clustering algorithm
John Darrington [Sat, 7 Nov 2015 11:16:13 +0000 (12:16 +0100)]
Quick Cluster:  Reimplement clustering algorithm

This change replaces the algorithm to be closer to that described by
SPSS Statistical Algorithms.  It results in better classification of
"real" data, and better seperated cluster centers.

It also provides a few subcommands which were previously not
implemented.

8 years agoQuick Cluster: Print an error instead of failing silently
John Darrington [Mon, 9 Nov 2015 17:23:19 +0000 (18:23 +0100)]
Quick Cluster: Print an error instead of failing silently
when bad syntax is given

8 years agoQuick Cluster: Add horizontal rule in cluster membership table.
John Darrington [Sat, 7 Nov 2015 10:06:20 +0000 (11:06 +0100)]
Quick Cluster: Add horizontal rule in cluster membership table.

This is consistent with other tables, and I think it looks better.

8 years agoAvoid possible overflow in fn_identity.
John Darrington [Fri, 6 Nov 2015 18:59:13 +0000 (19:59 +0100)]
Avoid possible overflow in fn_identity.

8 years agoFix crash on w32
John Darrington [Tue, 3 Nov 2015 20:45:52 +0000 (21:45 +0100)]
Fix crash on w32

8 years agoFix typo in NEWS file
John Darrington [Mon, 2 Nov 2015 17:57:08 +0000 (18:57 +0100)]
Fix typo in NEWS file

8 years agoUpdated version number to 0.9.0 ( 9 indicating unstable version )
John Darrington [Sat, 31 Oct 2015 15:50:19 +0000 (16:50 +0100)]
Updated version number to 0.9.0 ( 9 indicating unstable version )

We should have done this as soon as gtk3 was merged but we didn't

8 years agoget_default_paper_size: Use access instead of fn_exists
John Darrington [Sat, 31 Oct 2015 11:56:42 +0000 (12:56 +0100)]
get_default_paper_size: Use access instead of fn_exists

The latter has portability problems.  Also access checks that the file is readable not only
that it exists.

8 years agoFixed problem building documentation in absence of xmllint
John Darrington [Thu, 29 Oct 2015 19:11:36 +0000 (20:11 +0100)]
Fixed problem building documentation in absence of xmllint

This change fixes two problems:

1. XMLLINT was only checked in configure if --without-cairo was not given.   However,
the documentation (may) require it.

2. The file doc/help-pages-list needed to be shipped.  Otherwise the docs need to be rebuilt which
is not desired for users

8 years agoUse a better method of identifying files on w32
John Darrington [Sun, 25 Oct 2015 19:14:55 +0000 (20:14 +0100)]
Use a better method of identifying files on w32

8 years agoRemove unused functions fn_dir_name fn_getenv and fn_getenv_default
John Darrington [Tue, 27 Oct 2015 20:23:06 +0000 (21:23 +0100)]
Remove unused functions fn_dir_name fn_getenv and fn_getenv_default

8 years agodfm_writer_error: Correct comment
John Darrington [Sun, 25 Oct 2015 06:54:15 +0000 (07:54 +0100)]
dfm_writer_error: Correct comment

8 years agoRemove unused function fn_is_special
John Darrington [Sat, 24 Oct 2015 06:53:09 +0000 (08:53 +0200)]
Remove unused function fn_is_special

8 years agoAdd test to check that reading from a pipe works ok
John Darrington [Sat, 24 Oct 2015 09:10:26 +0000 (11:10 +0200)]
Add test to check that reading from a pipe works ok

8 years agoRemove obsolete prototype
John Darrington [Fri, 23 Oct 2015 21:27:43 +0000 (23:27 +0200)]
Remove obsolete prototype

8 years agoRemove unused function
John Darrington [Fri, 23 Oct 2015 18:57:44 +0000 (20:57 +0200)]
Remove unused function

8 years agoAvoid "definition without prototype" warnings
John Darrington [Fri, 23 Oct 2015 07:42:43 +0000 (09:42 +0200)]
Avoid "definition without prototype" warnings

8 years agoAvoid "definition without prototype" warnings
John Darrington [Thu, 22 Oct 2015 14:27:58 +0000 (16:27 +0200)]
Avoid "definition without prototype" warnings

8 years agocaseproto_ref: Append compiler directive WARN_UNUSED_RESULT
John Darrington [Thu, 22 Oct 2015 14:14:28 +0000 (16:14 +0200)]
caseproto_ref: Append compiler directive WARN_UNUSED_RESULT

8 years agomake-file.c: Behave better under windows operating systems
John Darrington [Sat, 17 Oct 2015 15:29:31 +0000 (17:29 +0200)]
make-file.c: Behave better under windows operating systems

Under w32 it is necessary to convert all file names to UTF-16 and prefix all
the file related system calls with "_w".  Otherwise, calls involving filenames
which contain non-ascii characters will not work properly.

8 years agoQUICK CLUSTER: Avoid "unused parameter" warning.
Ben Pfaff [Wed, 21 Oct 2015 15:04:33 +0000 (08:04 -0700)]
QUICK CLUSTER: Avoid "unused parameter" warning.

8 years agoQUICK CLUSTER: New subcommand: /PRINT
Alan Mead [Wed, 21 Oct 2015 09:30:36 +0000 (11:30 +0200)]
QUICK CLUSTER: New subcommand: /PRINT

This subcommand can be used to show the initial cluster centres and
the final cluster membership.

Closes bug #41019

8 years agoSkip fifo test for w32 hosted builds
John Darrington [Tue, 20 Oct 2015 13:55:52 +0000 (15:55 +0200)]
Skip fifo test for w32 hosted builds

8 years agoAppend the correct number of null bytes to the end of recoded strings
John Darrington [Tue, 20 Oct 2015 10:08:46 +0000 (12:08 +0200)]
Append the correct number of null bytes to the end of recoded strings

Previously the recode_string et al functions assumed that the correct way to
terminate a string was to append a single \0.  With encodings such as UTF-16
however, two \0 bytes are necessary and four with UTF-32.  This change fixes
the problem.

8 years agoChange pattern of tmpfiles from <name>.tmpXXXXXX to <name>tmpXXXXXX
John Darrington [Tue, 20 Oct 2015 09:19:23 +0000 (11:19 +0200)]
Change pattern of tmpfiles from <name>.tmpXXXXXX to <name>tmpXXXXXX

Under wine, and presumably certain windows systems, filenames with more than one dot are not allowed.

8 years agoMove definition of handler inside the #ifdef HAVE_READLINE
John Darrington [Mon, 19 Oct 2015 13:23:23 +0000 (15:23 +0200)]
Move definition of handler inside the #ifdef HAVE_READLINE

8 years agoProvide stubs for spreadsheet functions when no spreadsheet support is built
John Darrington [Sun, 18 Oct 2015 17:41:42 +0000 (19:41 +0200)]
Provide stubs for spreadsheet functions when no spreadsheet support is built

This prevents link errors when compiling with full optimisation.

8 years agoGnumeric Reader: Fix memory leak
John Darrington [Sun, 18 Oct 2015 11:14:47 +0000 (13:14 +0200)]
Gnumeric Reader: Fix memory leak

8 years agoAdd tests for cases exercising the atomic replacement mechanism
John Darrington [Sat, 17 Oct 2015 16:04:10 +0000 (18:04 +0200)]
Add tests for cases exercising the atomic replacement mechanism

Add a test case when writing to a fifo.
Add some test cases for situations where file creation fails.  Failure
to create a file should be reported gracefully.

8 years agoRemove unnecessary #include directive
John Darrington [Sat, 17 Oct 2015 13:47:03 +0000 (15:47 +0200)]
Remove unnecessary #include directive

8 years agostruct file_handle: Add new member file_name_encoding and an accessor function
John Darrington [Fri, 9 Oct 2015 19:54:57 +0000 (21:54 +0200)]
struct file_handle: Add new member file_name_encoding and an accessor function

8 years agoEnsure all lex_readers have the encoding parameter
John Darrington [Wed, 7 Oct 2015 17:06:21 +0000 (19:06 +0200)]
Ensure all lex_readers have the encoding parameter

8 years agoreplace_file_start: remove parameter TMP_FILE
John Darrington [Thu, 8 Oct 2015 16:15:42 +0000 (18:15 +0200)]
replace_file_start: remove parameter TMP_FILE

This parameter was never used (all callers passed NULL) and I cannot
imagine why anyone would be interested in it.

8 years agoreplace_file_start: Now takes a file handle instead of a file name
John Darrington [Wed, 7 Oct 2015 18:22:25 +0000 (20:22 +0200)]
replace_file_start: Now takes a file handle instead of a file name

8 years agolexer.c: Remove file_name member from lex_reader_file
John Darrington [Wed, 7 Oct 2015 12:03:38 +0000 (14:03 +0200)]
lexer.c: Remove file_name member from lex_reader_file

The parent class already has such a member so this is
redundant and complicates things.

8 years agoFix the INCLUDE /ENCODING subcommand and add a test for it.
John Darrington [Wed, 7 Oct 2015 09:28:35 +0000 (11:28 +0200)]
Fix the INCLUDE /ENCODING subcommand and add a test for it.

It seems that INCLUDE /ENCODING had never worked nor had been
tested.

8 years agoZip Reader: Avoid undefined behaviour when reading short files
John Darrington [Sun, 4 Oct 2015 20:54:48 +0000 (22:54 +0200)]
Zip Reader: Avoid undefined behaviour when reading short files

The zip reader makes many calls to fread.  However the return value was not checked.  This could
have had undefined consequences when reading short files.  This change checks all calls to fread.

8 years agotests: Distribute tests/data/test-encrypted.sps also.
Ben Pfaff [Fri, 2 Oct 2015 17:08:23 +0000 (10:08 -0700)]
tests: Distribute tests/data/test-encrypted.sps also.

Reported by John Darrington.

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Fri, 2 Oct 2015 12:48:52 +0000 (05:48 -0700)]
po: Update translations from translationproject.org.

8 years agopspp-convert: Support decrypting encrypted SPSS syntax files.
Ben Pfaff [Sat, 26 Sep 2015 23:42:13 +0000 (16:42 -0700)]
pspp-convert: Support decrypting encrypted SPSS syntax files.

Thanks to charlesjohnsont@outlook.com for providing an example.
Bug #45974.

8 years agoFix memory leak in initialization
John Darrington [Sun, 20 Sep 2015 06:48:55 +0000 (08:48 +0200)]
Fix memory leak in initialization

8 years agodoc: Add missing file to doc_pspp_dev_TEXINFOS.
Ben Pfaff [Sat, 19 Sep 2015 22:52:17 +0000 (15:52 -0700)]
doc: Add missing file to doc_pspp_dev_TEXINFOS.

Reported by John Darrington.

8 years agoPsppireSpreadsheetModel: Take reference to underlying model
John Darrington [Sat, 19 Sep 2015 18:02:03 +0000 (20:02 +0200)]
PsppireSpreadsheetModel: Take reference to underlying model

8 years agodoc: Document encrypted syntax file format.
Ben Pfaff [Wed, 16 Sep 2015 06:00:31 +0000 (23:00 -0700)]
doc: Document encrypted syntax file format.

Thanks to charlesjohnsont@outlook.com for providing an example.
Bug #45974.

8 years agoFix memory leak in PsppireVarSheet
John Darrington [Wed, 16 Sep 2015 05:34:27 +0000 (07:34 +0200)]
Fix memory leak in PsppireVarSheet

8 years agoFix memory leak in ODS reader
John Darrington [Wed, 16 Sep 2015 05:34:01 +0000 (07:34 +0200)]
Fix memory leak in ODS reader

8 years agoText file importer: Initialise the total_is_exact variable.
John Darrington [Wed, 16 Sep 2015 05:30:57 +0000 (07:30 +0200)]
Text file importer: Initialise the total_is_exact variable.

The text file importer was supposed to have a feature where the total number of lines
in the file was measured if the file was short, or estimated if it was long.  However
the variable which was supposed to hold this information was never initialised. This
change fixes that.

8 years agoRef count struct spreadsheet
John Darrington [Tue, 15 Sep 2015 16:17:19 +0000 (18:17 +0200)]
Ref count struct spreadsheet

struct spreadsheet is a base class for which all current derivations
are ref counted.  It makes sense then to have the base class refcounted
instead of the more derived ones

8 years agoany-reader: Add some comments on interface and implementation.
Ben Pfaff [Sat, 12 Sep 2015 18:43:14 +0000 (11:43 -0700)]
any-reader: Add some comments on interface and implementation.

Also, adjust pfm_detect() and sfm_detect() code to be consistent with
pcp_detect().  This should not cause a change in behavior.

8 years agopc+-file-reader: Fix handling of short files.
Ben Pfaff [Sat, 12 Sep 2015 18:42:26 +0000 (11:42 -0700)]
pc+-file-reader: Fix handling of short files.

The code failed to return an error properly when fread() read past end of
file.

The function comment didn't properly reflect what the function actually
returned, so this commit also updates the comment.

Reported by John Darrington.

8 years agogui: Mark print_startup_time() unused to avoid warning.
Ben Pfaff [Sat, 12 Sep 2015 18:31:38 +0000 (11:31 -0700)]
gui: Mark print_startup_time() unused to avoid warning.

8 years agoFix dereference to reallocated pointer in data-parser.c (parse_delimited_no_span...
John Darrington [Sat, 12 Sep 2015 10:38:50 +0000 (12:38 +0200)]
Fix dereference to reallocated pointer in data-parser.c (parse_delimited_no_span, parse_delimited_span)

The parse_delimited_span and parse_delimited_no_span functions were
accessing a pointer from within a loop, but the pointer had been
initialised outside the loop.  However the loop itself was deallocating
the memory referenced by that pointer.

This change initialises the pointer within the loop so as to avoid
a potential crash here.

8 years agopo: Update translations from translationproject.org.
Ben Pfaff [Sun, 6 Sep 2015 19:27:46 +0000 (12:27 -0700)]
po: Update translations from translationproject.org.

8 years agoRemove some unnecessary #include directives
John Darrington [Sun, 6 Sep 2015 08:06:02 +0000 (10:06 +0200)]
Remove some unnecessary #include directives

8 years agoHave "make distcheck" run without errors
John Darrington [Sun, 6 Sep 2015 07:43:53 +0000 (09:43 +0200)]
Have "make distcheck" run without errors