diff options
author | scnorton <scnorton@biociphers.org> | 2017-10-16 14:12:59 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-10-16 14:12:59 -0400 |
commit | a6d2bfaebd16940fc0ac1be3ca29caf0888296ca (patch) | |
tree | 7ec979bc8481b2c2d55874aef3e9004ddb715781 /tools/scaninc/c_file.h | |
parent | 96ebc5d46287e33df7bda74a6fb340281cdaa4c5 (diff) | |
parent | 7d657ef56716fd01bacf4a47df50ad0ec3d03b10 (diff) |
Merge branch 'master' into secret_base
Diffstat (limited to 'tools/scaninc/c_file.h')
-rw-r--r-- | tools/scaninc/c_file.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/scaninc/c_file.h b/tools/scaninc/c_file.h index 922cb4639..618901b85 100644 --- a/tools/scaninc/c_file.h +++ b/tools/scaninc/c_file.h @@ -33,6 +33,7 @@ public: ~CFile(); void FindIncbins(); const std::set<std::string>& GetIncbins() { return m_incbins; } + const std::set<std::string>& GetIncludes() { return m_includes; } private: char *m_buffer; @@ -41,13 +42,16 @@ private: int m_lineNum; std::string m_path; std::set<std::string> m_incbins; + std::set<std::string> m_includes; - void RemoveComments(); bool ConsumeHorizontalWhitespace(); bool ConsumeNewline(); + bool ConsumeComment(); void SkipWhitespace(); bool CheckIdentifier(const std::string& ident); + void CheckInclude(); void CheckIncbin(); + std::string ReadPath(); }; #endif // C_FILE_H |