From b42d9a345e2b02a1b17fa61b22117fbf7b187a31 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 May 2012 11:19:04 +0200 Subject: Add support for -I option Now quote-included ("") option files are searched for relative to the including file while bracket-included (<>) ones are search in the directories specified with -I. --- cli/parser.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cli/parser.hxx') diff --git a/cli/parser.hxx b/cli/parser.hxx index 34d3450..f7f6d68 100644 --- a/cli/parser.hxx +++ b/cli/parser.hxx @@ -8,6 +8,7 @@ #include #include +#include #include // std::auto_ptr #include @@ -20,6 +21,10 @@ class lexer; class parser { public: + typedef std::vector paths; + + parser (paths const& include_paths): include_paths_ (include_paths) {} + struct invalid_input {}; std::auto_ptr @@ -76,6 +81,8 @@ private: bool outer = true); private: + paths const include_paths_; + bool valid_; semantics::path const* path_; -- cgit v1.1