projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move global initialization and cleanup code into main.c.
[pspp-builds.git]
/
src
/
sfm-write.h
diff --git
a/src/sfm-write.h
b/src/sfm-write.h
index f91ffd08e0c6aaf886f45f1149218af65966f7b2..896353dbef30a77d72e4cac1d2614d385fb1e85c 100644
(file)
--- a/
src/sfm-write.h
+++ b/
src/sfm-write.h
@@
-14,20
+14,30
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#ifndef SFM_WRITE_H
#define SFM_WRITE_H 1
#ifndef SFM_WRITE_H
#define SFM_WRITE_H 1
+#include <stdbool.h>
+
/* Writing system files. */
/* Writing system files. */
+/* Options for creating a system file. */
+struct sfm_write_options
+ {
+ bool create_writeable; /* File perms: writeable or read/only? */
+ bool compress; /* Compress file? */
+ int version; /* System file version (currently 2 or 3). */
+ };
+
struct file_handle;
struct dictionary;
struct ccase;
struct file_handle;
struct dictionary;
struct ccase;
-struct sfm_writer *sfm_open_writer (struct file_handle *,
- const struct dictionary *,
-
int compress, short omit_longnames
);
+struct sfm_writer *sfm_open_writer (struct file_handle *,
struct dictionary *,
+ struct sfm_write_options);
+
struct sfm_write_options sfm_writer_default_options (void
);
int sfm_write_case (struct sfm_writer *, struct ccase *);
void sfm_close_writer (struct sfm_writer *);
int sfm_write_case (struct sfm_writer *, struct ccase *);
void sfm_close_writer (struct sfm_writer *);