From: Maynard J. <may...@us...> - 2008-10-23 13:44:01
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv18752/libutil++ Modified Files: xml_output.cpp xml_output.h Log Message: moved xml util routines to libop and fixed some other problems in the previous patch Index: xml_output.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/xml_output.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -d -r1.3 -r1.4 --- xml_output.cpp 15 Oct 2008 21:10:01 -0000 1.3 +++ xml_output.cpp 23 Oct 2008 13:43:49 -0000 1.4 @@ -11,7 +11,7 @@ #include <sstream> #include <iostream> -#include "xml_out.h" +#include "op_xml_out.h" #include "xml_output.h" using namespace std; @@ -31,7 +31,7 @@ string open_element(tag_t tag, bool with ostringstream out; char buf[MAX_XML_BUF]; - buf[0] = 0; + buf[0] = '\0'; open_xml_element(tag, with_attrs, buf); out << buf; return out.str(); @@ -43,7 +43,7 @@ string close_element(tag_t tag, bool has ostringstream out; char buf[MAX_XML_BUF]; - buf[0] = 0; + buf[0] = '\0'; close_xml_element(tag, has_nested, buf); out << buf; return out.str(); @@ -55,7 +55,7 @@ string init_attr(tag_t attr, size_t valu ostringstream out; char buf[MAX_XML_BUF]; - buf[0] = 0; + buf[0] = '\0'; init_xml_int_attr(attr, value, buf); out << buf; return out.str(); @@ -67,7 +67,7 @@ string init_attr(tag_t attr, double valu ostringstream out; char buf[MAX_XML_BUF]; - buf[0] = 0; + buf[0] = '\0'; init_xml_dbl_attr(attr, value, buf); out << buf; return out.str(); @@ -79,7 +79,7 @@ string init_attr(tag_t attr, string cons ostringstream out; char buf[MAX_XML_BUF]; - buf[0] = 0; + buf[0] = '\0'; init_xml_str_attr(attr, str.c_str(), buf); out << buf; return out.str(); Index: xml_output.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/xml_output.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -d -r1.3 -r1.4 --- xml_output.h 15 Oct 2008 21:10:01 -0000 1.3 +++ xml_output.h 23 Oct 2008 13:43:49 -0000 1.4 @@ -10,7 +10,7 @@ #ifndef XML_OUTPUT_H #define XML_OUTPUT_H -#include "xml_out.h" +#include "op_xml_out.h" std::string tag_name(tag_t tag); std::string open_element(tag_t tag, bool with_attrs = false); |