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

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1:   #include "global.h" - RCSID("$Id: xcf.c,v 1.10 1999/06/24 23:15:21 hubbe Exp $"); + RCSID("$Id: xcf.c,v 1.11 1999/08/16 18:10:23 grubba Exp $");      #include "image_machine.h"      #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "module_support.h"   #include "interpret.h"   #include "object.h"   #include "svalue.h"
pike.git/src/modules/Image/encodings/xcf.c:1128:   /* } */       x=y=0;    for(l=0; l<(unsigned)tiles->size; l++)    {    struct pike_string *tile = tiles->item[l].u.string;    unsigned int eheight, ewidth;    unsigned char *s;    ewidth = MINIMUM(TILE_WIDTH, i->xsize-x);    eheight = MINIMUM(TILE_HEIGHT, i->ysize-y); -  tile->refs++; +  add_ref(tile);      /* fprintf(stderr, " tile %d/%d [%dx%d] %dbpp \n", */   /* l+1, tiles->size, ewidth, eheight,bpp); */       if(rle)    {    push_string( tile );    push_int( bpp );    push_int( ewidth );    push_int( eheight );    image_xcf_f__rle_decode( 4 ); -  tile = sp[-1].u.string; +  tile = (struct pike_string *)debug_malloc_pass(sp[-1].u.string);    if(sp[-1].type != T_STRING)    fatal("Internal disaster in XCF module\n");    sp--;    }       if( (unsigned)(tile->len) < (unsigned)(eheight * ewidth * bpp ))    error("Too small tile, was %d bytes, I really need %d\n",    tile->len, eheight*ewidth * bpp);       s = tile->str;