diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-22 11:51:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-06-22 11:51:14 +0200 |
commit | 26899a31d9a85e6ec6cfb782b0977af05e3330c1 (patch) | |
tree | 2e22074dad490a2195ef22bf2f7f6ca4ed67aa88 /tests | |
parent | 90801c5afeb37e4297076bdd5354ba41a7009a3f (diff) |
Get rid of dependency on libcult
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dump/driver.cxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/tests/dump/driver.cxx b/tests/dump/driver.cxx index 0d98e10..f17579f 100644 --- a/tests/dump/driver.cxx +++ b/tests/dump/driver.cxx @@ -3,8 +3,7 @@ // copyright : Copyright (c) 2006-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file -#include <cult/types.hxx> - +#include <xsd-frontend/types.hxx> #include <xsd-frontend/parser.hxx> #include <xsd-frontend/transformations/anonymous.hxx> #include <xsd-frontend/transformations/enum-synthesis.hxx> @@ -14,10 +13,8 @@ #include <iostream> -using namespace Cult::Types; -using namespace XSDFrontend; - using namespace std; +using namespace XSDFrontend; static unsigned long indent; @@ -32,8 +29,6 @@ ind (std::wostream& os) namespace { - typedef Cult::Types::WideString String; - // Nameable which is named in the namespace scope. // String @@ -543,11 +538,11 @@ namespace struct AnonymousNameTranslator: Transformations::AnonymousNameTranslator { - virtual WideString - translate (WideString const& /*file*/, - WideString const& ns, - WideString const& name, - WideString const& xpath) + virtual String + translate (String const& /*file*/, + String const& ns, + String const& name, + String const& xpath) { wcout << "anonymous: " << ns << " " << name << " " << xpath << endl; return name; @@ -555,7 +550,7 @@ struct AnonymousNameTranslator: Transformations::AnonymousNameTranslator }; int -main (int argc, Char* argv[]) +main (int argc, char* argv[]) { try { @@ -567,7 +562,7 @@ main (int argc, Char* argv[]) // Parse options. // - Int i (1); + int i (1); bool anon (false); bool enum_synth (false); |