These functions were never meant to be public (and they were not declared
in a header file).
static void put_cmp_number (struct sfm_writer *, double);
static void put_cmp_string (struct sfm_writer *, const void *, size_t);
static void put_cmp_number (struct sfm_writer *, double);
static void put_cmp_string (struct sfm_writer *, const void *, size_t);
-bool write_error (const struct sfm_writer *);
-bool close_writer (struct sfm_writer *);
+static bool write_error (const struct sfm_writer *);
+static bool close_writer (struct sfm_writer *);
/* Returns default options for writing a system file. */
struct sfm_write_options
/* Returns default options for writing a system file. */
struct sfm_write_options
}
/* Returns true if an I/O error has occurred on WRITER, false otherwise. */
}
/* Returns true if an I/O error has occurred on WRITER, false otherwise. */
write_error (const struct sfm_writer *writer)
{
return ferror (writer->file);
write_error (const struct sfm_writer *writer)
{
return ferror (writer->file);
/* Closes a system file after we're done with it.
Returns true if successful, false if an I/O error occurred. */
/* Closes a system file after we're done with it.
Returns true if successful, false if an I/O error occurred. */
close_writer (struct sfm_writer *w)
{
bool ok;
close_writer (struct sfm_writer *w)
{
bool ok;