diff options
author | Siesh1oo <siesh1oo@siesh1oo.no> | 2014-03-12 18:33:37 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-03-12 23:17:14 +0100 |
commit | 8127d5e8c35da6610dc9fd43cca66ff9ca41f078 (patch) | |
tree | 2a30bcb08197a4b77234befaa0096bccae52ae73 /kernel/register.h | |
parent | 31528634796c15d0dcdb113ff730fa743663ca07 (diff) | |
download | yosys-8127d5e8c35da6610dc9fd43cca66ff9ca41f078.tar.gz yosys-8127d5e8c35da6610dc9fd43cca66ff9ca41f078.tar.bz2 yosys-8127d5e8c35da6610dc9fd43cca66ff9ca41f078.zip |
- 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.
Diffstat (limited to 'kernel/register.h')
-rw-r--r-- | kernel/register.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/register.h b/kernel/register.h index b582f98c9..f3d3f70ae 100644 --- a/kernel/register.h +++ b/kernel/register.h @@ -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 |