mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-13 13:11:27 +00:00
fmt: FmtPart::{STRING→LITERAL},{CHARACTER→STRING}
.
Before this commit, the `STRING` variant inserted a literal string; the `CHARACTER` variant inserted a string. This commit renames them to `LITERAL` and `STRING` respectively.
This commit is contained in:
parent
0210509dea
commit
a5441bc00c
5 changed files with 37 additions and 37 deletions
12
kernel/fmt.h
12
kernel/fmt.h
|
@ -53,19 +53,19 @@ struct VerilogFmtArg {
|
|||
// Must be kept in sync with `struct fmt_part` in backends/cxxrtl/runtime/cxxrtl/cxxrtl.h!
|
||||
struct FmtPart {
|
||||
enum {
|
||||
STRING = 0,
|
||||
LITERAL = 0,
|
||||
INTEGER = 1,
|
||||
CHARACTER = 2,
|
||||
STRING = 2,
|
||||
VLOG_TIME = 3,
|
||||
} type;
|
||||
|
||||
// STRING type
|
||||
// LITERAL type
|
||||
std::string str;
|
||||
|
||||
// INTEGER/CHARACTER types
|
||||
// INTEGER/STRING types
|
||||
RTLIL::SigSpec sig;
|
||||
|
||||
// INTEGER/CHARACTER/VLOG_TIME types
|
||||
// INTEGER/STRING/VLOG_TIME types
|
||||
enum {
|
||||
RIGHT = 0,
|
||||
LEFT = 1,
|
||||
|
@ -86,7 +86,7 @@ struct Fmt {
|
|||
public:
|
||||
std::vector<FmtPart> parts;
|
||||
|
||||
void append_string(const std::string &str);
|
||||
void append_literal(const std::string &str);
|
||||
|
||||
void parse_rtlil(const RTLIL::Cell *cell);
|
||||
void emit_rtlil(RTLIL::Cell *cell) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue