projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete trailing whitespace at end of lines.
[pspp-builds.git]
/
src
/
data
/
any-reader.c
diff --git
a/src/data/any-reader.c
b/src/data/any-reader.c
index 009e42270d5403866c431c8f4f6b171ed8b18702..18a28c6d1ed14231dcb1be18c90d18c7d1dac08e 100644
(file)
--- a/
src/data/any-reader.c
+++ b/
src/data/any-reader.c
@@
-37,7
+37,7
@@
#define _(msgid) gettext (msgid)
/* Result of type detection. */
#define _(msgid) gettext (msgid)
/* Result of type detection. */
-enum detect_result
+enum detect_result
{
YES, /* It is this type. */
NO, /* It is not this type. */
{
YES, /* It is this type. */
NO, /* It is not this type. */
@@
-60,9
+60,9
@@
try_detect (struct file_handle *handle, bool (*detect) (FILE *))
fh_get_file_name (handle), strerror (errno));
return IO_ERROR;
}
fh_get_file_name (handle), strerror (errno));
return IO_ERROR;
}
-
+
is_type = detect (file);
is_type = detect (file);
-
+
fn_close (fh_get_file_name (handle), file);
return is_type ? YES : NO;
fn_close (fh_get_file_name (handle), file);
return is_type ? YES : NO;
@@
-74,7
+74,7
@@
try_detect (struct file_handle *handle, bool (*detect) (FILE *))
struct casereader *
any_reader_open (struct file_handle *handle, struct dictionary **dict)
{
struct casereader *
any_reader_open (struct file_handle *handle, struct dictionary **dict)
{
- switch (fh_get_referent (handle))
+ switch (fh_get_referent (handle))
{
case FH_REF_FILE:
{
{
case FH_REF_FILE:
{