2008-11-11 Owen Taylor <otaylor@redhat.com>
+ * girepository/girparser.c: Search provided include dirs before
+ the default directories.
+
+2008-11-11 Owen Taylor <otaylor@redhat.com>
+
* girepository/giroffsets.c: Include fully-qualified names in
all error messages.
girname = g_strdup_printf ("%s-%s.gir", name, version);
- for (dir = datadirs; *dir; dir++)
- {
- path = g_build_filename (*dir, "gir", girname, NULL);
- if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
- return path;
- g_free (path);
- path = NULL;
- }
if (extra_paths != NULL)
{
for (dir = extra_paths; *dir; dir++)
path = NULL;
}
}
+ for (dir = datadirs; *dir; dir++)
+ {
+ path = g_build_filename (*dir, "gir", girname, NULL);
+ if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
+ return path;
+ g_free (path);
+ path = NULL;
+ }
g_free (girname);
return path;
}