X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fany-writer.c;h=7043b65e55e7305ae2c7b27b35de7dd048224167;hb=65e61cc92b48297625bc71cf31b8a19e301eb6c1;hp=2aeaa3a5d101f57b13f7866f65285044f9785fce;hpb=5f168bf8465ae50ba5c2c761b52f29a0500c0658;p=pspp diff --git a/src/data/any-writer.c b/src/data/any-writer.c index 2aeaa3a5d1..7043b65e55 100644 --- a/src/data/any-writer.c +++ b/src/data/any-writer.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "file-handle-def.h" #include "file-name.h" @@ -62,7 +63,7 @@ any_writer_open (struct file_handle *handle, struct dictionary *dict) struct any_writer *writer; char *extension; - extension = fn_extension (fh_get_filename (handle)); + extension = fn_extension (fh_get_file_name (handle)); str_lowercase (extension); if (!strcmp (extension, ".por")) @@ -85,7 +86,7 @@ any_writer_open (struct file_handle *handle, struct dictionary *dict) dict)); } - abort (); + NOT_REACHED (); } /* If PRIVATE is non-null, creates and returns a new any_writer, @@ -162,7 +163,7 @@ any_writer_write (struct any_writer *writer, const struct ccase *c) case SCRATCH_FILE: return scratch_writer_write_case (writer->private, c); } - abort (); + NOT_REACHED (); } /* Returns true if an I/O error has occurred on WRITER, false @@ -181,7 +182,7 @@ any_writer_error (const struct any_writer *writer) case SCRATCH_FILE: return scratch_writer_error (writer->private); } - abort (); + NOT_REACHED (); } /* Closes WRITER. @@ -209,7 +210,7 @@ any_writer_close (struct any_writer *writer) break; default: - abort (); + NOT_REACHED (); } free (writer);