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.16 2000/08/03 21:25:32 grubba Exp $"); + RCSID("$Id: xcf.c,v 1.17 2000/08/08 10:57:17 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:157:    from->str += 4;    from->len -= 4;    return res;   }      static int xcf_read_int( struct buffer *from )   {    return (int)read_uint( from );   }    - static char *read_data( struct buffer * from, unsigned int len ) + static char *read_data( struct buffer * from, size_t len )   {    char *res;    if( from->len < len ) -  error("Not enough space for %ud bytes\n", len); +  error("Not enough space for %uld bytes\n", len);    res = (char *)from->str;    from->str += len;    from->len -= len;    return res;   }      static struct buffer read_string( struct buffer *data )   {    struct buffer res;    res.len = xcf_read_int( data );
pike.git/src/modules/Image/encodings/xcf.c:627:   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( sp-osp ); +  f_aggregate(DO_NOT_WARN(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:654:    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( sp-tsp ); -  f_aggregate_mapping( sp-osp ); +  f_aggregate(DO_NOT_WARN(sp - tsp)); +  f_aggregate_mapping(DO_NOT_WARN(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( sp-osp ); +  f_aggregate_mapping(DO_NOT_WARN(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( sp-osp ); +  f_aggregate_mapping(DO_NOT_WARN(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( sp-osp ); +  f_aggregate_mapping(DO_NOT_WARN(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:735:    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( sp-osp ); +  f_aggregate_mapping(DO_NOT_WARN(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 );