OSDN Git Service

lexical_test/dom_test.cpp: コンパイルが通るように。そしてデバッグ…
authorMyun2 <myun2@nwhite.info>
Thu, 13 Jan 2011 12:45:01 +0000 (21:45 +0900)
committerMyun2 <myun2@nwhite.info>
Thu, 13 Jan 2011 12:45:01 +0000 (21:45 +0900)
roast/include/roast/lexical/exception.hpp
roast/include/roast/xml/roast_xml/sax.hpp
roast/test/lexical_test/dom_test.cpp

index a61c740..afc9c77 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef __SFJP_ROAST__lexical__exception_HPP__
 #define __SFJP_ROAST__lexical__exception_HPP__
 
+#include <string>
+
 namespace roast
 {
        namespace lexical
index 5bc025c..b63cbc7 100644 (file)
@@ -6,7 +6,7 @@
 #define __SFJP_ROAST__xml__roast_xml__sax_HPP__
 
 #include "roast/xml/roast_xml/rule_xml.hpp"
-//#include "roast/lexical/string_parser_base.hpp"
+#include "roast/debug/console_monitor.hpp"
 #include <stack>
 
 namespace roast
index 36b66c2..ec4f046 100644 (file)
@@ -10,6 +10,9 @@ using namespace std;
 using namespace roast;
 using namespace roast::roast_xml;
 
+#pragma warning(disable:4996)
+#pragma warning(disable:4102)
+
 ///////////////////////////////////////////////////////////
 const bool g_detail = false;
 
@@ -115,7 +118,7 @@ int main()
 
                using namespace roast::roast_xml::rule;
 
-               goto POINT;
+               goto LABEL1;
 
                //      root_cant_have_text
                sax_error_test("<", illegal_term_exception().c_str() );
@@ -124,7 +127,7 @@ int main()
                sax_error_test("<?a", illegal_term_in_xmldecl_exception().c_str() );
                sax_error_test("<!", illegal_term_in_xmldecl_exception().c_str() );
                sax_error_test("<! ", illegal_term_in_xmldecl_exception().c_str() );
-POINT:
+LABEL1:
                sax_error_test("<!----><!", invalid_comment_start_exception().c_str() );
 
                sax_error_test("   a", root_cant_have_text_exception().c_str() );
@@ -133,7 +136,7 @@ POINT:
                sax_error_test("   <!-> ", invalid_comment_start_exception().c_str() );
                sax_error_test("   <!--> ", illegal_term_in_comment_exception().c_str() );
                sax_error_test("   <!-- ddd", illegal_term_in_comment_exception().c_str() );
-POINT2:
+LABEL2:
                sax_error_test("   <!-- ddddd --> ", no_root_element_exception().c_str() );// X
                //goto END;
                sax_error_test("   <!-- ddddd -->", no_root_element_exception().c_str() );// X