3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-01-07 03:22:46 +00:00

Remove string_buf by making log_signal() and log_const() return std::string

We only have to fix one caller in-tree so this probably has very low impact on out-of-tree plugins.

Resolves #5215
This commit is contained in:
Robert O'Callahan 2025-09-16 03:06:17 +00:00
parent 09742e27f7
commit 8492c49f6c
3 changed files with 7 additions and 32 deletions

View file

@ -253,8 +253,8 @@ extern dict<std::string, LogExpectedItem> log_expect_log, log_expect_warning, lo
extern dict<std::string, LogExpectedItem> log_expect_prefix_log, log_expect_prefix_warning, log_expect_prefix_error;
void log_check_expected();
const char *log_signal(const RTLIL::SigSpec &sig, bool autoint = true);
const char *log_const(const RTLIL::Const &value, bool autoint = true);
std::string log_signal(const RTLIL::SigSpec &sig, bool autoint = true);
std::string log_const(const RTLIL::Const &value, bool autoint = true);
const char *log_id(const RTLIL::IdString &id);
template<typename T> static inline const char *log_id(T *obj, const char *nullstr = nullptr) {