Merge branch 'wip/smcv/decompiler-order' into 'main'

gi-decompile-typelib: Interpret --includedir as most-important-first

See merge request GNOME/glib!3928
This commit is contained in:
Philip Withnall
2024-02-15 19:02:24 +00:00
2 changed files with 14 additions and 3 deletions

View File

@@ -85,8 +85,13 @@ main (int argc, char *argv[])
repository = gi_repository_new ();
if (includedirs != NULL)
for (i = 0; includedirs[i]; i++)
gi_repository_prepend_search_path (repository, includedirs[i]);
{
guint n = g_strv_length (includedirs);
guint j;
for (j = 1; j <= n; j++)
gi_repository_prepend_search_path (repository, includedirs[n - j]);
}
for (i = 0; input[i]; i++)
{