/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
#include <stdbool.h>
#include <stdio.h>
+#include <libpspp/float-format.h>
+#include <libpspp/integer-format.h>
+
/* Reading system files. */
/* System file info that doesn't fit in struct dictionary. */
{
char creation_date[10]; /* `dd mmm yy' plus a null. */
char creation_time[9]; /* `hh:mm:ss' plus a null. */
- int big_endian; /* 1=big-endian, 0=little-endian. */
- int compressed; /* 0=no, 1=yes. */
+ enum integer_format integer_format;
+ enum float_format float_format;
+ bool compressed; /* 0=no, 1=yes. */
int case_cnt; /* -1 if unknown. */
char product[61]; /* Product name plus a null. */
};
struct dictionary;
struct file_handle;
struct ccase;
-struct sfm_reader *sfm_open_reader (struct file_handle *,
+struct casereader *sfm_open_reader (struct file_handle *,
struct dictionary **,
struct sfm_read_info *);
-int sfm_read_case (struct sfm_reader *, struct ccase *);
-bool sfm_read_error (const struct sfm_reader *);
-void sfm_close_reader (struct sfm_reader *);
bool sfm_detect (FILE *);
#endif /* sys-file-reader.h */