From 5d6f8aad8aaa3cdc3c52848c8adbc271dbe8e5e2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 Oct 2009 14:17:04 +0200 Subject: Use a set instead of pre-sorted array for keywords The pre-sorted array approach depends on the character encoding. --- cli/context.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx index 37864af..1f2facb 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -6,6 +6,7 @@ #ifndef CLI_CONTEXT_HXX #define CLI_CONTEXT_HXX +#include #include #include #include @@ -42,10 +43,14 @@ public: typedef std::map reserved_name_map_type; reserved_name_map_type const& reserved_name_map; + typedef std::set keyword_set_type; + keyword_set_type const& keyword_set; + private: struct data { string inl_; + keyword_set_type keyword_set_; }; public: -- cgit v1.1