From c5eb5e56b8911bb520a987761739bbb9d9328380 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 23 Oct 2014 10:47:21 +0200 Subject: Re-introduced Yosys::readsome() helper function (f.read() + f.gcount() made problems with lines > 16kB) --- kernel/yosys.h | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/yosys.h') diff --git a/kernel/yosys.h b/kernel/yosys.h index b9182c1d..11f356ad 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -127,6 +127,7 @@ namespace RTLIL { std::string stringf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); std::string vstringf(const char *fmt, va_list ap); +int readsome(std::istream &f, char *s, int n); std::string next_token(std::string &text, const char *sep); bool patmatch(const char *pattern, const char *string); int run_command(const std::string &command, std::function process_line = std::function()); -- cgit v1.2.3