aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/register.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-23 13:54:21 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-23 13:54:21 +0200
commit5dce303a2a2c27d50e99856b6f33467798e13020 (patch)
tree4f32f6e720ef5bb063e48c9d5ab6bd8356c6b3d6 /kernel/register.h
parentfff12c719fc2d61e36e85f27080a4043078b0929 (diff)
downloadyosys-5dce303a2a2c27d50e99856b6f33467798e13020.tar.gz
yosys-5dce303a2a2c27d50e99856b6f33467798e13020.tar.bz2
yosys-5dce303a2a2c27d50e99856b6f33467798e13020.zip
Changed backend-api from FILE to std::ostream
Diffstat (limited to 'kernel/register.h')
-rw-r--r--kernel/register.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/kernel/register.h b/kernel/register.h
index d7e4281c2..f2c6ad29e 100644
--- a/kernel/register.h
+++ b/kernel/register.h
@@ -17,15 +17,11 @@
*
*/
+#include "kernel/yosys.h"
+
#ifndef REGISTER_H
#define REGISTER_H
-#include "kernel/yosys.h"
-#include <stdio.h>
-#include <string>
-#include <vector>
-#include <map>
-
YOSYS_NAMESPACE_BEGIN
struct Pass
@@ -94,12 +90,12 @@ struct Backend : Pass
virtual void run_register();
virtual ~Backend();
virtual void execute(std::vector<std::string> args, RTLIL::Design *design) OVERRIDE FINAL;
- virtual void execute(FILE *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
+ virtual void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) = 0;
- void extra_args(FILE *&f, std::string &filename, std::vector<std::string> args, size_t argidx);
+ void extra_args(std::ostream *&f, std::string &filename, std::vector<std::string> args, size_t argidx);
- static void backend_call(RTLIL::Design *design, FILE *f, std::string filename, std::string command);
- static void backend_call(RTLIL::Design *design, FILE *f, std::string filename, std::vector<std::string> args);
+ static void backend_call(RTLIL::Design *design, std::ostream *f, std::string filename, std::string command);
+ static void backend_call(RTLIL::Design *design, std::ostream *f, std::string filename, std::vector<std::string> args);
};
// implemented in passes/cmds/select.cc