diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-03 21:35:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-03 21:35:43 +0200 |
commit | bbc39ffe31c67506b4c03fc56fa3adcb925b6325 (patch) | |
tree | cdc3e2bb6f66edab684ee184a28c35727246f448 /odb/generator.cxx | |
parent | f0bbc17aeed1b636782a4b92e8191d90f310d0a2 (diff) |
Remove gratuitous classes
In the process also get rid of global class processor which conflicts
with enum processor on MIPS.
Diffstat (limited to 'odb/generator.cxx')
-rw-r--r-- | odb/generator.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/odb/generator.cxx b/odb/generator.cxx index e165faf..6aa5151 100644 --- a/odb/generator.cxx +++ b/odb/generator.cxx @@ -58,7 +58,7 @@ namespace if (!ifs.is_open ()) { cerr << "error: unable to open '" << p << "' in read mode" << endl; - throw generator::failed (); + throw generator_failed (); } } @@ -70,7 +70,7 @@ namespace if (!ofs.is_open ()) { cerr << "error: unable to open '" << p << "' in write mode" << endl; - throw generator::failed (); + throw generator_failed (); } } @@ -118,7 +118,7 @@ namespace } } -void generator:: +void generate (options const& ops, features& fts, semantics::unit& unit, @@ -259,7 +259,7 @@ generate (options const& ops, cerr << in_log_path << ": error: wrong database '" << old_changelog->database () << "', expected '" << db << "'" << endl; - throw generator::failed (); + throw generator_failed (); } string sn (ops.schema_name ()[db]); @@ -268,18 +268,18 @@ generate (options const& ops, cerr << in_log_path << ": error: wrong schema name '" << old_changelog->schema_name () << "', expected '" << sn << "'" << endl; - throw generator::failed (); + throw generator_failed (); } } catch (const ios_base::failure& e) { cerr << in_log_path << ": read failure" << endl; - throw failed (); + throw generator_failed (); } catch (const xml::parsing& e) { cerr << e.what () << endl; - throw failed (); + throw generator_failed (); } } @@ -976,12 +976,12 @@ generate (options const& ops, catch (const ios_base::failure& e) { cerr << out_log_path << ": write failure" << endl; - throw failed (); + throw generator_failed (); } catch (const xml::serialization& e) { cerr << e.what () << endl; - throw failed (); + throw generator_failed (); } } @@ -998,18 +998,18 @@ generate (options const& ops, { // Code generation failed. Diagnostics has already been issued. // - throw failed (); + throw generator_failed (); } catch (semantics::invalid_path const& e) { cerr << "error: '" << e.path () << "' is not a valid filesystem path" << endl; - throw failed (); + throw generator_failed (); } catch (fs::error const&) { // Auto-removal of generated files failed. Ignore it. // - throw failed (); + throw generator_failed (); } } |