380
380
if (last_hyphen == null || !gir.has_suffix (".gir")) {
381
381
Report.error (null, "GIR file name `%s' is not well-formed, expected NAME-VERSION.gir".printf (gir));
384
384
string gir_namespace = gir.substring (0, offset);
385
385
string gir_version = gir.substring (offset + 1, gir_len - offset - 5);
386
386
gir_version.canon ("0123456789.", '?');