Commit 31e59248 authored by Mathias Hasselmann's avatar Mathias Hasselmann Committed by Mathias Hasselmann
Browse files

Handle markup errors in GIDL files.

2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>

	* vapigen/valavapicheck.vala: Handle markup errors in GIDL files.

svn path=/trunk/; revision=577
parent a189bf3b
......@@ -7,6 +7,10 @@
* vapi/curses.vala: improve Screen class, patch by Ed Schouten
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapigen/valavapicheck.vala: Handle markup errors in GIDL files.
2007-09-02 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala, tests/Makefile.am: handle null
......
......@@ -39,10 +39,13 @@ class Vala.VAPICheck : Object {
_scope = new Gee.ArrayList<string> ();
_symbols = new Gee.HashSet<string> (str_hash, str_equal);
foreach (weak IdlModule module in Idl.parse_file (gidl.filename)) {
parse_members (module.name, module.entries);
}
try {
foreach (weak IdlModule module in Idl.parse_file (gidl.filename)) {
parse_members (module.name, module.entries);
}
} catch (MarkupError e) {
stderr.printf ("%s: %s\n", gidl.filename, e.message);
}
}
private void add_symbol (string! name, string separator = null) {
......
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