Commit fe18c65b authored by Didier 'Ptitjes's avatar Didier 'Ptitjes Committed by Jürg Billeter

GIR parser: Add c:prefix parsing

Signed-off-by: default avatarMark Lee <marklee@svn.gnome.org>
Signed-off-by: default avatarDidier 'Ptitjes <ptitjes@free.fr>
parent 859b3872
......@@ -189,6 +189,12 @@ public class Vala.GirParser : CodeVisitor {
}
}
string? cprefix = reader.get_attribute ("c:prefix");
if (cprefix != null) {
ns.add_cprefix (cprefix.up ());
ns.set_lower_case_cprefix (cprefix + "_");
}
foreach (string c_header in cheader_filenames) {
ns.add_cheader_filename (c_header);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment