fix iterating over fundamental types.

Tue Sep  2 14:53:41 2003  Tim Janik  <timj@gtk.org>

        * gobject-query.c (main): fix iterating over fundamental types.

        * gtype.c: applied patch from owen which keeps internal
        class initialization state to maintain class and interface
        initialization happen in the order of:
        1. class' base_init
        2. interface' base_init
        =  interfaces added after here are immediately base_init-ialized
        3. class_init
        4. Interface_init
        =  interfaces added here are immediately Interface_init-ialized
This commit is contained in:
Tim Janik
2003-09-02 12:58:23 +00:00
committed by Tim Janik
parent 056041aab9
commit de059b53bc
3 changed files with 198 additions and 29 deletions

View File

@@ -217,7 +217,7 @@ main (gint argc,
if (gen_froots)
{
root = ~0;
for (i = 0; i < 256; i++)
for (i = 0; i <= G_TYPE_FUNDAMENTAL_MAX; i += G_TYPE_MAKE_FUNDAMENTAL (1))
{
const gchar *name = g_type_name (i);