mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +01:00
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:
commit
90b2185c56
@ -91,6 +91,12 @@ your code if integer type warnings are enabled.
|
||||
| `g-ir-generate` | `gi-decompile-typelib` |
|
||||
| `g-ir-inspect` | `gi-inspect-typelib` |
|
||||
|
||||
In addition, the `--version` option for `g-ir-inspect` has been renamed to
|
||||
In addition, some command-line options have been changed.
|
||||
|
||||
The `--version` option for `g-ir-inspect` has been renamed to
|
||||
`--typelib-version` in `gi-inspect-typelib`.
|
||||
|
||||
The `--includedir` option to `gi-decompile-typelib` treats the
|
||||
given directories as most-important-first, consistent with
|
||||
`gi-compile-repository --includedir` and `gcc -I`.
|
||||
`g-ir-generate` treated `--includedir` options as least-important-first.
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user