summaryrefslogtreecommitdiff
path: root/tools/preproc/c_file.h
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2021-01-19 11:43:50 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2021-01-19 11:43:50 -0500
commit10c0566121cb923b7f4e6c1a97a1df8ad70cb327 (patch)
tree9aac83d3fd42c4c0331d6cb4c7d2dcf5fee69351 /tools/preproc/c_file.h
parent98f8c96c9e21791651d2274f07046496ab826ff2 (diff)
Don't keep temporary C build files by default.
Diffstat (limited to 'tools/preproc/c_file.h')
-rw-r--r--tools/preproc/c_file.h5
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