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.23 2000/10/08 22:39:54 per Exp $"); + RCSID("$Id: xcf.c,v 1.24 2000/10/10 20:50:54 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:43:   #define TILE_HEIGHT 64      #define STRING(X) static struct pike_string *s_##X   #include "xcf_constant_strings.h"   #undef STRING         struct buffer   {    struct pike_string *s; -  int base_offset; -  int base_len; -  +  ptrdiff_t base_offset; +  ptrdiff_t base_len;    size_t len;    unsigned char *str;   };      struct substring   {    struct pike_string *s;    int offset;    int len;   };
pike.git/src/modules/Image/encodings/xcf.c:172:    int x = sp[-1].u.integer;    if( x > s->len>>1 )    error("Index %d out of range", x );       p = s->s->str + s->offset + x*2;    res = (p[2]<<8) | p[3];    push_int( res );   }      static void push_substring( struct pike_string *s, -  int offset, -  int len ) +  ptrdiff_t offset, +  ptrdiff_t len )   {    struct object *o = clone_object( substring_program, 0 );    struct substring *ss = SS(o);    ss->s = s;    s->refs++;    ss->offset = offset;    ss->len = len;    push_object( o );   }    - static void free_substring( ) + static void free_substring(struct object *o)   {    if( SS(fp->current_object)->s )    {    free_string( SS(fp->current_object)->s );    SS(fp->current_object)->s = 0;    }   }         typedef enum