[nolimips] 205: print is still a python keyword

divide ut regnes, mais pas toujours. Aheum. Bon le truc bien c'est que j'ai fait 42 insertions. https://svn.lrde.epita.fr/svn/nolimips ChangeLog | 18 ++++++++++++++++++ src/inst/data_section.cc | 2 +- src/inst/data_section.hh | 2 +- src/inst/exp.cc | 2 +- src/inst/exp.hh | 4 ++-- src/inst/label_exp.cc | 2 +- src/inst/label_exp.hh | 2 +- src/inst/op_exp.cc | 2 +- src/inst/op_exp.hh | 2 +- src/inst/program.hh | 4 ++-- src/inst/register.hh | 4 ++-- src/inst/section.hh | 4 ++-- src/inst/text_section.cc | 2 +- src/inst/text_section.hh | 2 +- src/misc/table.hh | 4 ++-- src/vm/cpu.cc | 2 +- src/vm/cpu.hh | 4 ++-- src/vm/virtual_machine.hh | 4 ++-- 18 files changed, 42 insertions(+), 24 deletions(-) Index: trunk/ChangeLog from Benoît Perrot <benoit@lrde.epita.fr> print is still a python keyword * src/misc/table.hh, * src/inst/register.hh, * src/inst/exp.hh, src/inst/exp.cc, * src/inst/op_exp.hh, src/inst/op_exp.cc, * src/inst/label_exp.hh, src/inst/label_exp.cc, * src/inst/section.hh, * src/inst/data_section.hh, src/inst/data_section.cc, * src/inst/text_section.hh, src/inst/text_section.cc, * src/inst/program.hh, * src/vm/cpu.hh, src/vm/cpu.cc, * src/vm/virtual_machine.hh: (print) Rename as... (write). 2005-12-27 Benoît Perrot <benoit@lrde.epita.fr> Index: trunk/src/vm/cpu.hh --- trunk/src/vm/cpu.hh (revision 204) +++ trunk/src/vm/cpu.hh (working copy) @@ -82,7 +82,7 @@ void reset(); /// Print registers' content - void print(std::ostream &os) const; + void write(std::ostream &os) const; /** \name General purpose registers accessors. \{ */ @@ -361,7 +361,7 @@ inline std::ostream & operator<<(std::ostream &ostr, const Cpu &cpu) { - cpu.print(ostr); + cpu.write(ostr); return ostr; } Index: trunk/src/vm/virtual_machine.hh --- trunk/src/vm/virtual_machine.hh (revision 204) +++ trunk/src/vm/virtual_machine.hh (working copy) @@ -73,7 +73,7 @@ void reset(); /// Print the vm - void print(std::ostream& ostr) const + void write(std::ostream& ostr) const { // FIXME: print the whole cpu, and cp0. ostr << cpu_; @@ -162,7 +162,7 @@ inline std::ostream& operator<<(std::ostream &os, const VirtualMachine &vm) { - vm.print(os); + vm.write(os); return os; } Index: trunk/src/vm/cpu.cc --- trunk/src/vm/cpu.cc (revision 204) +++ trunk/src/vm/cpu.cc (working copy) @@ -77,7 +77,7 @@ // Print operators // -------------------------------------------------------------------------- void - Cpu::print(std::ostream &os) const + Cpu::write(std::ostream &os) const { std::ios_base::fmtflags flags = os.flags (std::ios_base::hex); Index: trunk/src/misc/table.hh --- trunk/src/misc/table.hh (revision 204) +++ trunk/src/misc/table.hh (working copy) @@ -74,7 +74,7 @@ public: - void print (std::ostream& ostr) const + void write(std::ostream& ostr) const { bool first = true; @@ -98,7 +98,7 @@ template<class K, class E> inline std::ostream& operator<< (std::ostream& ostr, const Table<K, E>& t) { - t.print (ostr); + t.write(ostr); return ostr; } Index: trunk/src/inst/label_exp.cc --- trunk/src/inst/label_exp.cc (revision 204) +++ trunk/src/inst/label_exp.cc (working copy) @@ -39,7 +39,7 @@ } void - LabelExp::print(std::ostream& ostr) const + LabelExp::write(std::ostream& ostr) const { ostr << *name_; } Index: trunk/src/inst/exp.cc --- trunk/src/inst/exp.cc (revision 204) +++ trunk/src/inst/exp.cc (working copy) @@ -26,7 +26,7 @@ } void - Exp::print(std::ostream& ostr) const + Exp::write(std::ostream& ostr) const { ostr << immediate_; } Index: trunk/src/inst/data_section.cc --- trunk/src/inst/data_section.cc (revision 204) +++ trunk/src/inst/data_section.cc (working copy) @@ -44,7 +44,7 @@ // -------------------------------------------------------------------------- void - DataSection::print(std::ostream& ostr) const + DataSection::write(std::ostream& ostr) const { if (0 < size()) { Index: trunk/src/inst/register.hh --- trunk/src/inst/register.hh (revision 204) +++ trunk/src/inst/register.hh (working copy) @@ -69,7 +69,7 @@ } public: - void print (std::ostream& ostr) const + void write(std::ostream& ostr) const { if (kind_ != unlimited) ostr << "$" << index_; @@ -85,7 +85,7 @@ inline std::ostream& operator<< (std::ostream& ostr, const Register& reg) { - reg.print(ostr); + reg.write(ostr); return ostr; } Index: trunk/src/inst/op_exp.hh --- trunk/src/inst/op_exp.hh (revision 204) +++ trunk/src/inst/op_exp.hh (working copy) @@ -63,7 +63,7 @@ } public: - virtual void print(std::ostream& ostr) const; + virtual void write(std::ostream& ostr) const; public: const kind_type kind_; Index: trunk/src/inst/label_exp.hh --- trunk/src/inst/label_exp.hh (revision 204) +++ trunk/src/inst/label_exp.hh (working copy) @@ -48,7 +48,7 @@ } public: - virtual void print(std::ostream& ostr) const; + virtual void write(std::ostream& ostr) const; protected: const misc::unique_string name_; Index: trunk/src/inst/exp.hh --- trunk/src/inst/exp.hh (revision 204) +++ trunk/src/inst/exp.hh (working copy) @@ -41,7 +41,7 @@ virtual ~Exp(); public: - virtual void print(std::ostream& ostr) const; + virtual void write(std::ostream& ostr) const; virtual void accept (ConstExpVisitor& v) const = 0; virtual void accept (ExpVisitor& v) = 0; @@ -71,7 +71,7 @@ inline std::ostream& operator<<(std::ostream& ostr, const Exp& e) { - e.print(ostr); + e.write(ostr); return ostr; } Index: trunk/src/inst/data_section.hh --- trunk/src/inst/data_section.hh (revision 204) +++ trunk/src/inst/data_section.hh (working copy) @@ -85,7 +85,7 @@ public: - virtual void print(std::ostream& ostr) const; + virtual void write(std::ostream& ostr) const; protected: std::vector<const Label*> labels_; Index: trunk/src/inst/text_section.cc --- trunk/src/inst/text_section.cc (revision 204) +++ trunk/src/inst/text_section.cc (working copy) @@ -51,7 +51,7 @@ // -------------------------------------------------------------------------- void - TextSection::print(std::ostream& ostr) const + TextSection::write(std::ostream& ostr) const { ostr << "\t" << name_ << std::endl; Index: trunk/src/inst/section.hh --- trunk/src/inst/section.hh (revision 204) +++ trunk/src/inst/section.hh (working copy) @@ -66,7 +66,7 @@ } public: - virtual void print(std::ostream& ostr) const = 0; + virtual void write(std::ostream& ostr) const = 0; protected: const misc::unique_string name_; @@ -77,7 +77,7 @@ inline std::ostream& operator<<(std::ostream& ostr, const Section& s) { - s.print(ostr); + s.write(ostr); return ostr; } Index: trunk/src/inst/program.hh --- trunk/src/inst/program.hh (revision 204) +++ trunk/src/inst/program.hh (working copy) @@ -52,7 +52,7 @@ public: - void print(std::ostream& ostr) const + void write(std::ostream& ostr) const { ostr << data_section_; ostr << text_section_; @@ -66,7 +66,7 @@ inline std::ostream& operator<< (std::ostream& ostr, const Program& p) { - p.print(ostr); + p.write(ostr); return ostr; } Index: trunk/src/inst/text_section.hh --- trunk/src/inst/text_section.hh (revision 204) +++ trunk/src/inst/text_section.hh (working copy) @@ -72,7 +72,7 @@ } public: - virtual void print(std::ostream& ostr) const; + virtual void write(std::ostream& ostr) const; protected: std::vector<const TextLabel*> labels_; Index: trunk/src/inst/op_exp.cc --- trunk/src/inst/op_exp.cc (revision 204) +++ trunk/src/inst/op_exp.cc (working copy) @@ -40,7 +40,7 @@ } void - OpExp::print(std::ostream& ostr) const + OpExp::write(std::ostream& ostr) const { ostr << *left_; switch (kind_)
participants (1)
-
Noe