summaryrefslogtreecommitdiff
path: root/ZAPD/OutputFormatter.h
diff options
context:
space:
mode:
authorNicholas Estelami <NEstelami@users.noreply.github.com>2021-04-13 07:49:30 -0400
committerGitHub <noreply@github.com>2021-04-13 07:49:30 -0400
commit420508d2d872e8653081d95a43bf2ad8f85d894c (patch)
tree9019e0a87ad719c4a3b1e38c61e7b67feebfa63a /ZAPD/OutputFormatter.h
parent95bf5fc0080135f20f3ab17082f79b9e539e80a5 (diff)
Refactoring and various features added (#108)
* ZAPD prints out git hash * Refactor: ZResource constructor sets parent always. ZOverlay also no longer a ZResource, since it did not make much sense. * Organized ZResource a bit * A number of bug fixes, cleanup, and feature improvements. * Prepping for legacy dlist disasm * Fixed some merging issues. Fixed compilation issues with MSVC. Added in proper support for legacy display list disassembler. Refactored parts of ZFile. * Merge with upstream * Finished ZFile refactor, and other tidying. * Fixed up merge issues * Minor cleanup * Got rid of libgfxd_win.a * Fixed matching issue * Fixed up a few bugs * Fixed issue with exceptions * Fixed up merge issues with ZPrerender, along with cleaning up some code * Additional cleanup * Fixed merge issues with ZMtx and fixed a bug with ZDisplayList * Fixes based on PR feedback * run clang-format (#7) Signed-off-by: angie <angheloalf95@gmail.com> * Fixed merge issues with Roz's PR * Misc fixes * Fixed MM bug, removed redundant file. * Removed some commented out code Co-authored-by: Jack Walker <7463599+Jack-Walker@users.noreply.github.com> Co-authored-by: Anghelo Carvajal <anghelo.carvajal.14@sansano.usm.cl>
Diffstat (limited to 'ZAPD/OutputFormatter.h')
-rw-r--r--ZAPD/OutputFormatter.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/ZAPD/OutputFormatter.h b/ZAPD/OutputFormatter.h
index 97edcdd..92f9b15 100644
--- a/ZAPD/OutputFormatter.h
+++ b/ZAPD/OutputFormatter.h
@@ -7,31 +7,31 @@
class OutputFormatter
{
private:
- const int tab_size;
- const int default_indent;
- const int line_limit;
+ const int tabSize;
+ const int defaultIndent;
+ const int lineLimit;
int col;
int nest;
- int nest_indent[8];
- int current_indent;
+ int nestIndent[8];
+ int currentIndent;
char word[128];
char space[128];
- char* word_p;
- char* space_p;
+ char* wordP;
+ char* spaceP;
std::string str;
- int write(const char* buf, int count);
+ int Write(const char* buf, int count);
- static OutputFormatter* static_instance;
- static int write_static(const char* buf, int count);
+ static OutputFormatter* Instance;
+ static int WriteStatic(const char* buf, int count);
public:
- OutputFormatter(int tab_size = 4, int default_indent = 4, int line_limit = 120);
+ OutputFormatter(int tabSize = 4, int defaultIndent = 4, int lineLimit = 120);
- int (*static_writer())(const char* buf, int count);
+ int (*StaticWriter())(const char* buf, int count);
- std::string get_output();
+ std::string GetOutput();
}; \ No newline at end of file