diff options
| author | glankk <glankk@users.noreply.github.com> | 2021-04-22 20:47:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 14:47:05 -0400 |
| commit | e06757c87e317e6bb102bd39fbe4cdcfed277fa9 (patch) | |
| tree | 607a0457e3ceb2eea34e27fbe64e0a11ae168525 /ZAPD/OutputFormatter.h | |
| parent | 21ba65d4c3eb3dbbf196f8b70c61add08b491658 (diff) | |
Outputformatter fixes (#117)
Diffstat (limited to 'ZAPD/OutputFormatter.h')
| -rw-r--r-- | ZAPD/OutputFormatter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ZAPD/OutputFormatter.h b/ZAPD/OutputFormatter.h index 92f9b15..770f5d5 100644 --- a/ZAPD/OutputFormatter.h +++ b/ZAPD/OutputFormatter.h @@ -15,6 +15,7 @@ private: int nest; int nestIndent[8]; int currentIndent; + int wordNests; char word[128]; char space[128]; @@ -23,7 +24,7 @@ private: std::string str; - int Write(const char* buf, int count); + void Flush(); static OutputFormatter* Instance; static int WriteStatic(const char* buf, int count); @@ -33,5 +34,7 @@ public: int (*StaticWriter())(const char* buf, int count); + int Write(const char* buf, int count); + std::string GetOutput(); };
\ No newline at end of file |
