Branch: Tag:

2011-10-28

2011-10-28 13:04:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Atomic megapatch: Use svalue accessor macros everywhere.

25:    pgtk2_verify_setup();    {    GtkToolItem *gt; -  if (Pike_sp[-args].type==PIKE_T_STRING) { +  if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *icon;    get_all_args("create",args,"%s",&icon);    gt=gtk_tool_button_new_from_stock(icon);    THIS->obj=G_OBJECT(gt); -  } else if (Pike_sp[-args].type==PIKE_T_OBJECT) { +  } else if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct pike_string *t;    struct object *o1;    get_all_args("create",args,"%o%T",&o1,&t);