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>
Use libtool to pack librairies
......
......@@ -45,11 +45,11 @@ namespace inst
}
public:
virtual void accept (ConstVisitor& v) const = 0;
virtual void accept (Visitor& v) = 0;
virtual void accept(ConstVisitor& v) const = 0;
virtual void accept(Visitor& v) = 0;
public:
virtual void print(std::ostream&) const = 0;
virtual void write(std::ostream&) const = 0;
public:
format_type get_format() const
......@@ -64,7 +64,7 @@ namespace inst
inline std::ostream&
operator<<(std::ostream& ostr, const Inst& i)
{
i.print(ostr);
i.write(ostr);
return ostr;
}
......
......@@ -191,12 +191,12 @@ namespace inst
sys.stdout = header
print """ public:
/// Print this
virtual void\tprint(std::ostream &ostr) const;
virtual void\twrite(std::ostream &ostr) const;
"""
sys.stdout = impl
print """
void"""
print " " + class_id + "::print(std::ostream &ostr) const"
print " " + class_id + "::write(std::ostream &ostr) const"
print " {"
s = ""
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