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

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:80:   }      static void f_substring_index( INT32 args )   {    ptrdiff_t 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 ) { -  Pike_error("Index out of bounds, %ld > %ld\n", i, -  DO_NOT_WARN((long)s->len-1) ); +  Pike_error("Index out of bounds, %ld > %ld\n", i, (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);       if (args != 2 )
pike.git/src/modules/Image/encodings/xcf.c:314:      static int xcf_read_int( struct buffer *from )   {    return (int)read_uint( from );   }      static char *read_data( struct buffer *from, size_t len )   {    char *res;    if( from->len < len ) -  Pike_error("Not enough space for %lu bytes\n", -  DO_NOT_WARN((unsigned long)len)); +  Pike_error("Not enough space for %lu bytes\n", (unsigned long)len);    res = (char *)from->str;    from->str += len;    from->len -= len;    return res;   }      static struct buffer read_string( struct buffer *data )   {    struct buffer res = *data;    res.len = xcf_read_int( data );
pike.git/src/modules/Image/encodings/xcf.c:768:   static void push_properties( struct property *p )   {    struct svalue *osp = sp;    while(p)    {    ref_push_string( s_type ); push_int( p->type );    ref_push_string( s_data ); push_buffer( &p->data );    f_aggregate_mapping( 4 );    p = p->next;    } -  f_aggregate(DO_NOT_WARN((INT32)(sp - osp))); +  f_aggregate((INT32)(sp - osp));   }      static void push_tile( struct tile *t )   {    push_buffer( &t->data );   }      static void push_hierarchy( struct hierarchy * h )   {    struct tile *t = h->level.first_tile;
pike.git/src/modules/Image/encodings/xcf.c:795:    ref_push_string( s_height ); push_int( h->height );    ref_push_string( s_bpp ); push_int( h->bpp );       ref_push_string( s_tiles );    tsp = sp;    while(t)    {    push_tile( t );    t=t->next;    } -  f_aggregate(DO_NOT_WARN((INT32)(sp - tsp))); -  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp - osp))); +  f_aggregate((INT32)(sp - tsp)); +  f_aggregate_mapping((INT32)(sp - osp));   }      static void push_layer_mask(struct layer_mask *i)   {    struct svalue *osp = sp;    ref_push_string( s_width ); push_int( i->width );    ref_push_string( s_height ); push_int( i->height );    ref_push_string( s_properties );    push_properties( i->first_property );    ref_push_string( s_name ); push_buffer( &i->name );    ref_push_string( s_image_data );    push_hierarchy( &i->image_data ); -  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp))); +  f_aggregate_mapping((INT32)(sp-osp));   }      static void push_channel(struct channel *i)   {    struct svalue *osp = sp;    ref_push_string( s_width ); push_int( i->width );    ref_push_string( s_height ); push_int( i->height );    ref_push_string( s_properties );    push_properties( i->first_property );    ref_push_string( s_name ); push_buffer( &i->name );    ref_push_string( s_image_data );    push_hierarchy( &i->image_data ); -  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp))); +  f_aggregate_mapping((INT32)(sp-osp));   }      static void push_layer(struct layer *i)   {    struct svalue *osp = sp;    ref_push_string( s_width ); push_int( i->width );    ref_push_string( s_height ); push_int( i->height );    ref_push_string( s_type ); push_int( i->type );    ref_push_string( s_properties );    push_properties( i->first_property );    ref_push_string( s_name ); push_buffer( &i->name );    ref_push_string( s_image_data );    push_hierarchy( &i->image_data );    if( i->mask )    {    ref_push_string( s_mask );    push_layer_mask( i->mask );    } -  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp - osp))); +  f_aggregate_mapping((INT32)(sp - osp));   }         static void push_image( struct gimp_image *i )   {    struct layer *l;    struct channel *c;    int nitems = 0;    struct svalue *osp = sp;    ref_push_string( s_width ); push_int( i->width );
pike.git/src/modules/Image/encodings/xcf.c:876:    ref_push_string( s_channels );    nitems=0;    c = i->first_channel;    while(c)    {    nitems++;    push_channel( c );    c = c->next;    }    f_aggregate( nitems ); -  f_aggregate_mapping(DO_NOT_WARN((INT32)(sp-osp))); +  f_aggregate_mapping((INT32)(sp-osp));   }         static void image_xcf____decode( INT32 args )   {    struct pike_string *s;    struct buffer b;    struct gimp_image res;    ONERROR err;    get_all_args( "___decode", args, "%S", &s );