mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +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:
		| @@ -1601,8 +1601,15 @@ compare_strings (gconstpointer a, | |||||||
| { | { | ||||||
|   gchar *one = *(gchar **) a; |   gchar *one = *(gchar **) a; | ||||||
|   gchar *two = *(gchar **) b; |   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 | int | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user