mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-22 20:32:07 +00:00
Fixed handling of "//" in filenames in verilog pre-processor
This commit is contained in:
parent
756b4064b2
commit
ef151b0b30
2 changed files with 5 additions and 1 deletions
|
@ -201,7 +201,7 @@ static void input_file(std::istream &f, std::string filename)
|
|||
insert_input("");
|
||||
auto it = input_buffer.begin();
|
||||
|
||||
input_buffer.insert(it, "`file_push " + filename + "\n");
|
||||
input_buffer.insert(it, "`file_push \"" + filename + "\"\n");
|
||||
while ((rc = readsome(f, buffer, sizeof(buffer)-1)) > 0) {
|
||||
buffer[rc] = 0;
|
||||
input_buffer.insert(it, buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue