diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-22 12:46:02 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-22 12:46:02 +0100 |
commit | e4429c480ea224ab9b5b0a98dbf5d9661a291b11 (patch) | |
tree | 2f9ae640eff584aaacaae57ca47538a034541962 /frontends/verilog/preproc.cc | |
parent | 18d003254ccdca6fd9cbfe59b7b27007873a26be (diff) |
Enable {* .. *} feature per default (removes dependency to REJECT feature in flex)
Diffstat (limited to 'frontends/verilog/preproc.cc')
-rw-r--r-- | frontends/verilog/preproc.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc index 2033a290..9f824526 100644 --- a/frontends/verilog/preproc.cc +++ b/frontends/verilog/preproc.cc @@ -198,13 +198,6 @@ static void input_file(FILE *f, std::string filename) input_buffer.insert(it, "`file_pop\n"); } -static std::string define_to_feature(std::string defname) -{ - if (defname == "__YOSYS_ENABLE_DEFATTR__") - return "defattr"; - return std::string(); -} - std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::map<std::string, std::string> pre_defines_map, const std::list<std::string> include_dirs) { std::map<std::string, std::string> defines_map(pre_defines_map); @@ -298,8 +291,6 @@ std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::m std::string name, value; skip_spaces(); name = next_token(true); - if (!define_to_feature(name).empty()) - output_code.push_back("`yosys_enable_" + define_to_feature(name)); skip_spaces(); int newline_count = 0; while (!tok.empty()) { @@ -331,8 +322,6 @@ std::string frontend_verilog_preproc(FILE *f, std::string filename, const std::m std::string name; skip_spaces(); name = next_token(true); - if (!define_to_feature(name).empty()) - output_code.push_back("`yosys_disable_" + define_to_feature(name)); // printf("undef: >>%s<<\n", name.c_str()); defines_map.erase(name); continue; |