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.30 2000/10/19 20:34:33 grubba Exp $"); + RCSID("$Id: xcf.c,v 1.31 2000/10/20 09:08:38 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:75:    s->len ) );   }      static void f_substring_index( INT32 args )   {    int i = sp[-1].u.integer;    struct substring *s = SS(fp->current_object);    pop_n_elems( args );       if( i < 0 ) i = s->len + i; -  if( i >= s->len ) error("Index out of bounds, %d > %d\n", i, s->len-1 ); +  if( i >= s->len ) { +  error("Index out of bounds, %d > %ld\n", i, +  DO_NOT_WARN((long)s->len-1) ); +  }    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);    extern void f_sprintf( INT32 args );       if (args != 2 )
pike.git/src/modules/Image/encodings/xcf.c:1295:    if( df ) free( df ); df=0;    continue;    }    s = (unsigned char *)tile.str;         #define LOOP_INIT() {\    int ix, iy=y/shrink; \    for(cy=0; cy<eheight; cy+=shrink,iy=((cy+y)/shrink)) \    { \ -  rgb_group *ip, *ap; \ +  rgb_group *ip, *ap = NULL; \    int ind=cy*ewidth; \    int ds = 0; \    if(iy >= i->ysize) continue; \    ix = x/shrink; \    ip = i->img + (i->xsize*iy); \    if( a ) ap = a->img + (i->xsize*iy); \    for(cx=0; cx<ewidth; cx+=shrink,ind+=shrink,ix++) \    { \    if(ix >= i->xsize) continue