diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-06-13 17:51:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-13 17:51:17 -0400 |
commit | b0dfaa92be48b4dc88af0c1502689fcad7da99ea (patch) | |
tree | 5b60e917fc89f39426fd54babfcb0dd5c12822c2 /tools/preproc/c_file.h | |
parent | f85fb3af8923b7dce601591dede2d3bee0729d1e (diff) | |
parent | 7189e4e26f3da36ed9d373f77a9f51a36fc8ddaf (diff) |
Merge pull request #1460 from luckytyphlosion/remove-temps
Buildsystem no longer builds temporary files for C compilation by default, and other makefile optimizations.
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 |