3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-27 19:05:52 +00:00

- kernel/register.h, kernel/driver.cc: refactor rewrite_yosys_exe()/get_share_file_name() to portable proc_self_dirname()/proc_share_dirname().

This refactoring improves robustness and allows OSX support with only 7 new lines of code, and easy extension for other systems.
 - passes/abc/abc.cc, passes/cmds/show.cc, passes/techmap/techmap.cc: use new, refactored semantics.
This commit is contained in:
Siesh1oo 2014-03-12 18:33:37 +01:00 committed by Clifford Wolf
parent 3152863479
commit 8127d5e8c3
5 changed files with 44 additions and 37 deletions

View file

@ -36,8 +36,8 @@ extern const char *yosys_version_str;
// implemented in driver.cc
extern RTLIL::Design *yosys_get_design();
std::string rewrite_yosys_exe(std::string exe);
std::string get_share_file_name(std::string file);
extern std::string proc_self_dirname();
extern std::string proc_share_dirname();
const char *create_prompt(RTLIL::Design *design, int recursion_counter);
// from passes/cmds/design.cc