From 9b9a8863246046ded0fc6573cbcdc4e39944ebbc Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Fri, 4 Aug 2023 18:23:19 -0500 Subject: [PATCH] update some viewscreens to use `std::future` and add support in codegen for `std::future` should close #625 --- StructFields.pm | 1 + data-definition.xsd | 1 + df.viewscreen.xml | 7 +++---- lower-1.xslt | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/StructFields.pm b/StructFields.pm index 4d0e1fddc..a09621542 100644 --- a/StructFields.pm +++ b/StructFields.pm @@ -98,6 +98,7 @@ my %custom_primitive_handlers = ( 'stl-fstream' => sub { header_ref("fstream"); return "std::fstream"; }, 'stl-mutex' => sub { header_ref("mutex"); return "std::mutex"; }, 'stl-condition-variable' => sub { header_ref("condition_variable"); return "std::condition_variable"; }, + 'stl-future' => sub { header_ref("future"); return "std::future"; }, ); my %custom_primitive_inits = ( diff --git a/data-definition.xsd b/data-definition.xsd index e5566d710..7648e69d5 100644 --- a/data-definition.xsd +++ b/data-definition.xsd @@ -222,6 +222,7 @@ + diff --git a/df.viewscreen.xml b/df.viewscreen.xml index b913c14ca..38a78c832 100644 --- a/df.viewscreen.xml +++ b/df.viewscreen.xml @@ -684,6 +684,7 @@ + @@ -845,10 +846,8 @@ - - - - + + diff --git a/lower-1.xslt b/lower-1.xslt index 1306f2fbc..4733ad413 100644 --- a/lower-1.xslt +++ b/lower-1.xslt @@ -217,9 +217,10 @@ Error: field corresponds to an enum value of + - +