From e286f8e078a29dec70e4c515d6afa5b000638980 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Feb 2012 12:34:08 +0200 Subject: Add support for specifying table prefix on namespace --- odb/pragma.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'odb/pragma.cxx') diff --git a/odb/pragma.cxx b/odb/pragma.cxx index 6c92f0f..010706e 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -472,13 +472,13 @@ check_spec_decl_type (tree d, } else if (p == "table") { - // Table can be used for both members (container) and types (container, - // object, or view). + // Table can be used for namespaces, members (container), and types + // (container, object, or view). // - if (tc != FIELD_DECL && !TYPE_P (d)) + if (tc != NAMESPACE_DECL && tc != FIELD_DECL && !TYPE_P (d)) { error (l) << "name '" << name << "' in db pragma " << p << " does " - << "not refer to a type or data member" << endl; + << "not refer to a namespace, type, or data member" << endl; return false; } } @@ -612,7 +612,7 @@ handle_pragma (cpp_reader* reader, string const& qualifier, tree decl, string const& decl_name, - bool ns) // True is this is a position namespace pragma. + bool ns) // True if this is a position namespace pragma. { tree t; cpp_ttype tt; -- cgit v1.1