-- remove support for LIBT2N_EXPORT_GROUP(group) (this will simplify the generator a lot)
- add option similar to gccs -MD (at the moment it is a fixed set of files generated and
they are handled in the makefile snippet [codegen.make])
- it would really be much nicer if the client lib includes would not depend upon boost serialization
return element->get_attribute("name")->get_value();
}
-//! extract group from attributes
-std::string
-extract_group(const std::string &attrs)
+//! procedure marked for export?
+bool
+is_marked(const std::string &attrs)
{
// todo: improve this
- std::string error;
std::string to_match("gccxml(libt2n-");
std::string::size_type p(attrs.find(to_match));
- if (p==std::string::npos) return error;
- std::string group(attrs, p+to_match.length(), attrs.length());
- p=group.find_first_of(')');
- assert(p!=std::string::npos);
- return std::string(group,0,p);
+ return (p!=std::string::npos);
}
struct type_info
// attributes are speparated by spaces?
t2n_procedure f;
- if (extract_group(attributes->get_value()).empty()) return;
+ if (!is_marked(attributes->get_value())) return;
// we need the return type
f.ret_type=get_type(root, returns->get_value());