[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csv 04/10] sys-file-writer: Make write_error(), close_writer() static.
From: |
Ben Pfaff |
Subject: |
[csv 04/10] sys-file-writer: Make write_error(), close_writer() static. |
Date: |
Sun, 8 Aug 2010 10:17:46 -0700 |
These functions were never meant to be public (and they were not declared
in a header file).
---
src/data/sys-file-writer.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/data/sys-file-writer.c b/src/data/sys-file-writer.c
index a90d4e1..d84e4b4 100644
--- a/src/data/sys-file-writer.c
+++ b/src/data/sys-file-writer.c
@@ -144,8 +144,8 @@ static void put_cmp_opcode (struct sfm_writer *, uint8_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
@@ -946,7 +946,7 @@ sys_file_casewriter_destroy (struct casewriter *writer,
void *w_)
}
/* Returns true if an I/O error has occurred on WRITER, false otherwise. */
-bool
+static bool
write_error (const struct sfm_writer *writer)
{
return ferror (writer->file);
@@ -954,7 +954,7 @@ write_error (const struct sfm_writer *writer)
/* Closes a system file after we're done with it.
Returns true if successful, false if an I/O error occurred. */
-bool
+static bool
close_writer (struct sfm_writer *w)
{
bool ok;
--
1.7.1
- Implementing SAVE TRANSLATE for comma- and tab-separated data, Ben Pfaff, 2010/08/08
- [csv 08/10] DATA LIST: Don't report an error for an empty final field in LIST format., Ben Pfaff, 2010/08/08
- [csv 06/10] DATA LIST: Convert tests to use Autotest., Ben Pfaff, 2010/08/08
- [csv 01/10] i18n: Make a few strings more generic for translators., Ben Pfaff, 2010/08/08
- [csv 07/10] DATA LIST: Fix output column reporting for FREE and LIST formats., Ben Pfaff, 2010/08/08
- [csv 04/10] sys-file-writer: Make write_error(), close_writer() static.,
Ben Pfaff <=
- [csv 10/10] Implement SAVE TRANSLATE to comma- and tab-delimited text formats., Ben Pfaff, 2010/08/08
- [csv 03/10] sys-file-writer: Fix comment., Ben Pfaff, 2010/08/08
- [csv 02/10] Replace S_I[RWX]{USR,GRP,OTH} macros by their values., Ben Pfaff, 2010/08/08
- [csv 09/10] SAVE: Fix UNSELECTED=RETAIN with a filter variable., Ben Pfaff, 2010/08/08
- [csv 05/10] sys-file-writer: Consistently use "goto error" to exit., Ben Pfaff, 2010/08/08