pike.git / src / post_modules / GTK2 / source / gtkaboutdialog.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:130:    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       auth=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, auth);       for (i=j=0; i<a->size; i++) { -  if (ITEM(a)[i].type == PIKE_T_STRING) { +  if (TYPEOF(ITEM(a)[i]) == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG -  if ((Pike_sp[-1].type != PIKE_T_STRING) || +  if ((TYPEOF(Pike_sp[-1]) != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].type)); +  get_name_of_type(TYPEOF(Pike_sp[-1])));    }   #endif /* PIKE_DEBUG */    auth[j++] = Pike_sp[-1].u.string->str;    }    }    auth[j]=NULL;       gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(THIS->obj),auth);       pop_n_elems(j);
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:193:    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       art=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, art);       for (i=j=0; i<a->size; i++) { -  if (ITEM(a)[i].type == PIKE_T_STRING) { +  if (TYPEOF(ITEM(a)[i]) == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG -  if ((Pike_sp[-1].type != PIKE_T_STRING) || +  if ((TYPEOF(Pike_sp[-1]) != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].type)); +  get_name_of_type(TYPEOF(Pike_sp[-1])));    }   #endif /* PIKE_DEBUG */    art[j++] = Pike_sp[-1].u.string->str;    }    }    art[j]=NULL;       gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),art);       pop_n_elems(j);
pike.git/src/post_modules/GTK2/source/gtkaboutdialog.pre:256:    if (a==NULL)    Pike_error("Invalid array.\n");       /* Make sure we have space for the strings on the stack. */    check_stack(a->size+2);       doc=xalloc(sizeof(gchar *)*(a->size+1));    SET_ONERROR(err, free, doc);       for (i=j=0; i<a->size; i++) { -  if (ITEM(a)[i].type == PIKE_T_STRING) { +  if (TYPEOF(ITEM(a)[i]) == PIKE_T_STRING) {    ref_push_string(ITEM(a)[i].u.string);    f_string_to_utf8(1);   #ifdef PIKE_DEBUG -  if ((Pike_sp[-1].type != PIKE_T_STRING) || +  if ((TYPEOF(Pike_sp[-1]) != PIKE_T_STRING) ||    (Pike_sp[-1].u.string->size_shift)) {    Pike_fatal("Unexpected result from string_to_utf8: %s\n", -  get_name_of_type(Pike_sp[-1].type)); +  get_name_of_type(TYPEOF(Pike_sp[-1])));    }   #endif /* PIKE_DEBUG */    doc[j++] = Pike_sp[-1].u.string->str;    }    }    doc[j]=NULL;       gtk_about_dialog_set_artists(GTK_ABOUT_DIALOG(THIS->obj),doc);       pop_n_elems(j);