diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2021-07-02 12:53:12 -0400 |
---|---|---|
committer | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2021-07-02 12:53:12 -0400 |
commit | b3d66f5528ccfc8b8a3f6c0d46444ad5943364f4 (patch) | |
tree | 9917de58912d28e884871cb7efc5b4d291ec4e78 /tools/preproc/c_file.h | |
parent | 9fd27fe8552eb0716222e72bc92ffa7f7334c68d (diff) | |
parent | 3964820a84e4819bb807d601d2c3c7b196f764e8 (diff) |
Merge branch 'master' of https://github.com/pret/pokeemerald
Diffstat (limited to 'tools/preproc/c_file.h')
-rw-r--r-- | tools/preproc/c_file.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/preproc/c_file.h b/tools/preproc/c_file.h index 7369aba85..49e633a18 100644 --- a/tools/preproc/c_file.h +++ b/tools/preproc/c_file.h @@ -30,7 +30,7 @@ class CFile { public: - CFile(std::string filename); + CFile(const char * filenameCStr, bool isStdin); CFile(CFile&& other); CFile(const CFile&) = delete; ~CFile(); @@ -42,6 +42,7 @@ private: long m_size; long m_lineNum; std::string m_filename; + bool m_isStdin; bool ConsumeHorizontalWhitespace(); bool ConsumeNewline(); @@ -55,4 +56,6 @@ private: void RaiseWarning(const char* format, ...); }; +#define CHUNK_SIZE 4096 + #endif // C_FILE_H |