pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:87:    push_int( ((unsigned char *)s->s->str)[s->offset+i] );   }      static void f_substring__sprintf( INT32 args )   {    int x;    struct substring *s = SS(fp->current_object);       if (args != 2 )    SIMPLE_TOO_FEW_ARGS_ERROR("_sprintf",2); -  if (sp[-2].type!=T_INT) +  if (TYPEOF(sp[-2]) != T_INT)    SIMPLE_BAD_ARG_ERROR("_sprintf",0,"integer"); -  if (sp[-1].type!=T_MAPPING) +  if (TYPEOF(sp[-1]) != T_MAPPING)    SIMPLE_BAD_ARG_ERROR("_sprintf",1,"mapping");    x = sp[-2].u.integer;    pop_n_elems( args );       switch( x )    {    case 't':    push_constant_text("SubString");    return;    case 'O':
pike.git/src/modules/Image/encodings/xcf.c:1190:       if(ao && !(a = (struct image *)get_storage( ao, image_program )))    Pike_error("Wrong type object argument 2 (image)\n");       if( cmapo &&    !(cmap=(struct neo_colortable *)get_storage(cmapo,    image_colortable_program)))    Pike_error("Wrong type object argument 4 (colortable)\n");       for(l=0; l<(unsigned int)tiles->size; l++) -  if(tiles->item[l].type != T_OBJECT) +  if(TYPEOF(tiles->item[l]) != T_OBJECT)    Pike_error("Wrong type array argument 3 (tiles)\n");       if(a && ((i->xsize != a->xsize) || (i->ysize != a->ysize)))    Pike_error("Image and alpha objects are not identically sized.\n");       if(cmap)    {    colortable = xalloc(sizeof(rgb_group)*image_colortable_size( cmap ) + RGB_VEC_PAD);    SET_ONERROR(err, free, colortable);    image_colortable_write_rgb( cmap, (unsigned char *)colortable );