Commit 9e40ce78 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

2005-12-27 Benoît Perrot <benoit@lrde.epita.fr>

	print is a python keyword

	* src/inst/inst.hh, src/inst/nodes.gen.py:
	(print) Rename as...
	(write).
parent 6b995dd1
2005-12-27 Benot Perrot <benoit@lrde.epita.fr>
print is a python keyword
* src/inst/inst.hh, src/inst/nodes.gen.py:
(print) Rename as...
(write).
2005-12-23 Benot Perrot <benoit@lrde.epita.fr> 2005-12-23 Benot Perrot <benoit@lrde.epita.fr>
Use libtool to pack librairies Use libtool to pack librairies
......
...@@ -45,11 +45,11 @@ namespace inst ...@@ -45,11 +45,11 @@ namespace inst
} }
public: public:
virtual void accept (ConstVisitor& v) const = 0; virtual void accept(ConstVisitor& v) const = 0;
virtual void accept (Visitor& v) = 0; virtual void accept(Visitor& v) = 0;
public: public:
virtual void print(std::ostream&) const = 0; virtual void write(std::ostream&) const = 0;
public: public:
format_type get_format() const format_type get_format() const
...@@ -58,13 +58,13 @@ namespace inst ...@@ -58,13 +58,13 @@ namespace inst
} }
private: private:
const format_type format_; const format_type format_;
}; };
inline std::ostream& inline std::ostream&
operator<<(std::ostream& ostr, const Inst& i) operator<<(std::ostream& ostr, const Inst& i)
{ {
i.print(ostr); i.write(ostr);
return ostr; return ostr;
} }
......
...@@ -191,12 +191,12 @@ namespace inst ...@@ -191,12 +191,12 @@ namespace inst
sys.stdout = header sys.stdout = header
print """ public: print """ public:
/// Print this /// Print this
virtual void\tprint(std::ostream &ostr) const; virtual void\twrite(std::ostream &ostr) const;
""" """
sys.stdout = impl sys.stdout = impl
print """ print """
void""" void"""
print " " + class_id + "::print(std::ostream &ostr) const" print " " + class_id + "::write(std::ostream &ostr) const"
print " {" print " {"
s = "" s = ""
i = 0 i = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment