From 8d4981fcc1c545396df3eac87a3c1a67f3d30038 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 3 Feb 2020 15:53:56 +0300 Subject: [texo] Abolished dependency on ScriptPP. --- src/file.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index c46a1f2..cbe9222 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1,21 +1,23 @@ #include "file.hpp" +#include + /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Texo File Exporter */ -TexoExporterFile::TexoExporterFile(FILE * file): file(file) +TexoFile::TexoFile(FILE *file): file(file) {} -bool TexoExporterFile::Put(char c) +bool TexoFile::Put(char c) { fputc(c, file); return !ferror(file); } -bool TexoExporterFile::Put(const ScriptVariable & str) +bool TexoFile::Put(const char *str) { - fwrite(str.c_str(), 1, str.Length(), file); + fwrite(str, 1, strlen(str), file); return !ferror(file); } -- cgit v1.2.3