From 681ca68ac96e8d39f49eb2c9f42e5c1e1041f5e0 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Thu, 4 Nov 2021 21:07:26 +0000 Subject: Disassemble some more tables and the first graphic (#71) * Sync tools/ directory with pokeemerald We really ought to have a central repository for this mess * Make incremental builds faster Scientists hate him! He made NODEP disappear with this ONE SIMPLE TRICK!!! Want to know more? -> __click here__ <- * Disassemble some more tables and the first graphic --- tools/preproc/c_file.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/preproc/c_file.h') diff --git a/tools/preproc/c_file.h b/tools/preproc/c_file.h index 7369aba..49e633a 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 -- cgit v1.2.3