summaryrefslogtreecommitdiff
path: root/tools/scaninc/c_file.h
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-10-08 23:40:46 -0500
committerGitHub <noreply@github.com>2017-10-08 23:40:46 -0500
commitb60f7cb66b1bcd293babbd95e56d26d61f309ee0 (patch)
treebe0dadd4cb3a6c36e27233836a6f104359d49949 /tools/scaninc/c_file.h
parent3776a9fb4f0531535b0b5879dab7b3b6bd231736 (diff)
parentb0d49dbbfbfcf39c2a9f88572437b6af77c8f709 (diff)
Merge pull request #388 from yenatch/scaninc
[dont merge] scaninc: read C includes and add -I
Diffstat (limited to 'tools/scaninc/c_file.h')
-rw-r--r--tools/scaninc/c_file.h6
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