src/data/any-reader.c (any_reader_may_open): Return tri-state value. 20131216030506/pspp 20131217030518/pspp 20131218030515/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Dec 2013 14:36:49 +0000 (15:36 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 15 Dec 2013 16:20:32 +0000 (17:20 +0100)
commit41b0d9a7203d396cf1514459afa4722ab5ae8ded
tree5ecba9f12825df7d81eec64895b370886de8a7b4
parent378b066491cc80d34f31683357c05be853250b80
src/data/any-reader.c (any_reader_may_open): Return tri-state value.

Previously, any_reader_may_open returned bool.  This change makes it
return a tri-state variable. YES, NO or ERROR.  This is useful to
distinguish between a file which is not "readable" (ie not in a format
which PSPP knows how to read) and a file which cannot be opened due
to lack of permission or other lower level errors.
src/data/any-reader.c
src/data/any-reader.h
src/ui/gui/psppire-window.c
src/ui/gui/psppire.c