From ed7a63015c1583d5544ac18bbaccaedc95f3e5e3 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 8 Nov 2019 19:49:40 +0300 Subject: [texo] Full rewrite of inner representation. --- src/file.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index ae41bde..221ff81 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1,15 +1,21 @@ #include "file.hpp" +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Texo File Exporter + */ TexoExporterFile::TexoExporterFile(FILE *file): file(file) {} -void TexoExporterFile::Put(char c) + +bool TexoExporterFile::Put(char c) { fputc(c, file); + return !ferror(file); } -void TexoExporterFile::Put(const ScriptVariable &str) +bool TexoExporterFile::Put(const ScriptVariable &str) { fwrite(str.c_str(), 1, str.Length(), file); + return !ferror(file); } -- cgit v1.2.3