aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verilog
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/verilog')
-rw-r--r--frontends/verilog/lexer.l2
-rw-r--r--frontends/verilog/preproc.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l
index c9302aba8..98f360885 100644
--- a/frontends/verilog/lexer.l
+++ b/frontends/verilog/lexer.l
@@ -64,7 +64,7 @@ YOSYS_NAMESPACE_END
return TOK_ID;
#define YY_INPUT(buf,result,max_size) \
- result = lexin->readsome(buf, max_size);
+ result = readsome(*lexin, buf, max_size);
%}
diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc
index 7e14fcb84..b4e77c31b 100644
--- a/frontends/verilog/preproc.cc
+++ b/frontends/verilog/preproc.cc
@@ -202,7 +202,7 @@ static void input_file(std::istream &f, std::string filename)
auto it = input_buffer.begin();
input_buffer.insert(it, "`file_push " + filename + "\n");
- while ((rc = f.readsome(buffer, sizeof(buffer)-1)) > 0) {
+ while ((rc = readsome(f, buffer, sizeof(buffer)-1)) > 0) {
buffer[rc] = 0;
input_buffer.insert(it, buffer);
}