summaryrefslogtreecommitdiff
path: root/src/file.cpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-02-03 15:53:56 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-02-03 15:53:56 +0300
commit8d4981fcc1c545396df3eac87a3c1a67f3d30038 (patch)
tree0e4f373313f7b251847fecd1186786574e8d450c /src/file.cpp
parent3032869b86efa52f20ad9840381a37017980f587 (diff)
downloadtexo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar
texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.tar.xz
texo-8d4981fcc1c545396df3eac87a3c1a67f3d30038.zip
[texo] Abolished dependency on ScriptPP.
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp10
1 files changed, 6 insertions, 4 deletions
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 <string.h>
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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);
}