From 497793c854b9dfbf70c2c23813b6b7f06012bcc2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Nov 2019 15:00:25 +0200 Subject: Generalize attributes to be comma-separated with arbitrary values Before: x = [string null] After: x = [string, null] --- libbuild2/parser.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/parser.hxx') diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 347466d..8eef03c 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -214,9 +214,9 @@ namespace build2 // struct attributes { - bool has; // Has attributes flag. - location loc; // Start of attributes location. - vector> ats; // Attributes. + bool has; // Has attributes flag. + location loc; // Start location. + small_vector, 1> ats; // Attributes. explicit operator bool () const {return has;} }; -- cgit v1.1