aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-05 16:43:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-05 16:43:22 +0200
commit719556e44c041a1b65b3fd32e7d6d19154b93b9b (patch)
tree5add769dd6bbb436d4d1efd8215ed97068a0c0aa
parentad2f77faead53027af0d82aa45131036a63dc898 (diff)
Sketch bit stealing interface for regex line_char
-rw-r--r--build2/test/script/regex20
1 files changed, 20 insertions, 0 deletions
diff --git a/build2/test/script/regex b/build2/test/script/regex
index 9a70030..7dacfee 100644
--- a/build2/test/script/regex
+++ b/build2/test/script/regex
@@ -57,6 +57,26 @@ namespace build2
struct line_char
{
+ /*
+ private:
+ size_t data_;
+
+ // Steal two bits from the pointer (need to static assert).
+ //
+ public:
+ line_type
+ type () const;
+
+ int
+ special () const; // Stored as (shifted) int16.
+
+ const char_string*
+ literal () const;
+
+ const char_regex*
+ regex () const;
+ */
+
line_type type;
union