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

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:112:    push_int64( s->len );    push_int64( s->offset );    f_sprintf( 4 );    return;    default:    push_int(0);    return;    }   }    - static void f_substring_get_int( INT32 args ) + static void f_substring_get_int( INT32 UNUSED(args) )   {    struct substring *s = SS(fp->current_object);    int res;    unsigned char *p;    int x = sp[-1].u.integer;    if( x > s->len>>2 )    Pike_error("Index %d out of range.\n", x );       p = ((unsigned char *)s->s->str) + s->offset + x*4;    res = (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3];    push_int( res );   }       - static void f_substring_get_uint( INT32 args ) + static void f_substring_get_uint( INT32 UNUSED(args) )   {    struct substring *s = SS(fp->current_object);    unsigned int res;    unsigned char *p;    int x = sp[-1].u.integer;    if( x > s->len>>2 )    Pike_error("Index %d out of range.\n", x );       p = ((unsigned char *)s->s->str) + s->offset + x*4;    res = (p[0]<<24) | (p[1]<<16) | (p[2]<<8) | p[3];    push_int64( res );   }    - static void f_substring_get_ushort( INT32 args ) + static void f_substring_get_ushort( INT32 UNUSED(args) )   {    struct substring *s = SS(fp->current_object);    unsigned short res;    unsigned char *p;    int x = sp[-1].u.integer;    if( x > s->len>>1 )    Pike_error("Index %d out of range.\n", x );       p = ((unsigned char *)s->s->str) + s->offset + x*2;    res = (p[2]<<8) | p[3];    push_int( res );   }    - static void f_substring_get_short( INT32 args ) + static void f_substring_get_short( INT32 UNUSED(args) )   {    struct substring *s = SS(fp->current_object);    short res;    unsigned char *p;    int x = sp[-1].u.integer;    if( x > s->len>>1 )    Pike_error("Index %d out of range.\n", x );       p = ((unsigned char *)s->s->str) + s->offset + x*2;    res = (p[2]<<8) | p[3];
pike.git/src/modules/Image/encodings/xcf.c:182:   {    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(struct object *o) + static void free_substring(struct object *UNUSED(o))   {    if( SS(fp->current_object)->s )    {    free_string( SS(fp->current_object)->s );    SS(fp->current_object)->s = 0;    }   }         typedef enum