mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Bug 623401 - schema compiler: process enums first
Process *.enum.xml before any *.gschema.xml files to ensure that all enums have been defined.
This commit is contained in:
parent
1ca6a4687a
commit
7a44a2d223
@ -1601,8 +1601,15 @@ compare_strings (gconstpointer a,
|
||||
{
|
||||
gchar *one = *(gchar **) a;
|
||||
gchar *two = *(gchar **) b;
|
||||
gint cmp;
|
||||
|
||||
return strcmp (one, two);
|
||||
cmp = g_str_has_suffix (two, ".enums.xml") -
|
||||
g_str_has_suffix (one, ".enums.xml");
|
||||
|
||||
if (!cmp)
|
||||
cmp = strcmp (one, two);
|
||||
|
||||
return cmp;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user