diff options
author | Henner Zeller <h.zeller@acm.org> | 2019-05-14 21:07:26 -0700 |
---|---|---|
committer | Henner Zeller <h.zeller@acm.org> | 2019-05-14 21:07:26 -0700 |
commit | 8eb2798776ef83afd187d65b8eb471a4b2f3c219 (patch) | |
tree | 09543aed88dd32811051c998bd6db5a207956d7d /frontends/ilang | |
parent | c8c1df23a0ddf85b6d5a822299634b42b82a6e15 (diff) | |
download | yosys-8eb2798776ef83afd187d65b8eb471a4b2f3c219.tar.gz yosys-8eb2798776ef83afd187d65b8eb471a4b2f3c219.tar.bz2 yosys-8eb2798776ef83afd187d65b8eb471a4b2f3c219.zip |
Make the generated *.tab.hh include all the headers needed to define the union.
Diffstat (limited to 'frontends/ilang')
-rw-r--r-- | frontends/ilang/ilang_parser.y | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/ilang/ilang_parser.y b/frontends/ilang/ilang_parser.y index 0df792997..44c99906a 100644 --- a/frontends/ilang/ilang_parser.y +++ b/frontends/ilang/ilang_parser.y @@ -47,6 +47,15 @@ USING_YOSYS_NAMESPACE %define api.prefix {rtlil_frontend_ilang_yy} +/* The union is defined in the header, so we need to provide all the + * includes it requires + */ +%code requires { +#include <string> +#include <vector> +#include "frontends/ilang/ilang_frontend.h" +} + %union { char *string; int integer; @@ -451,4 +460,3 @@ conn_stmt: delete $2; delete $3; }; - |