pike.git / src / post_modules / GTK2 / source / support.c

version» Context lines:

pike.git/src/post_modules/GTK2/source/support.c:1437:    }    g_string_append(str,"\n");    }    g_free(signal_ids);    g_string_append(str,"\n");    }    if (class)    g_type_class_unref(class);   }    - struct svalue *pgtk2_get_doc(GObject *o, int pushv) { + void pgtk2_get_doc(GObject *o, struct svalue *dest) {    GType type=0;    GString *str; -  struct svalue *sv; +       /*    if (o)    type=G_OBJECT_TYPE(G_OBJECT(o)->obj);    else -  return NULL; +  return;   */    type=G_OBJECT_TYPE(o);    str=g_string_new_len(NULL,512);       if (g_type_is_a(type,G_TYPE_INTERFACE))    g_string_append_printf(str,"Interface %s\n\n",g_type_name(type));    else if (g_type_is_a(type,G_TYPE_OBJECT))    g_string_append_printf(str,"Object %s\n\n",g_type_name(type));       if (g_type_is_a(type,G_TYPE_OBJECT)) {
pike.git/src/post_modules/GTK2/source/support.c:1482:       interfaces=g_type_interfaces(parent,&n);    for (i=0; i<n; i++)    add_signal_docs(interfaces[i],str);    g_free(interfaces);    }    g_array_free(parents,TRUE);    }    push_string(make_shared_binary_string(str->str,str->len));    g_string_free(str,TRUE); -  if (!pushv) { -  sv=g_new0(struct svalue,1); -  assign_svalue_no_free(sv,&Pike_sp[-1]); +  if (dest) { +  assign_svalue_no_free(dest, &Pike_sp[-1]);    pop_stack(); -  return sv; +     } -  return sv; +    }