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.9 1999/05/30 20:12:21 mirar Exp $"); + RCSID("$Id: xcf.c,v 1.10 1999/06/24 23:15:21 hubbe 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:29:      /*   **! module Image   **! submodule XCF   **!   */      #define TILE_WIDTH 64   #define TILE_HEIGHT 64    - #define MIN(X,Y) ((X)<(Y)?(X):(Y)) +    #define STRING(X) static struct pike_string *s_##X;   #include "xcf_constant_strings.h"   #undef STRING         struct buffer   {    unsigned int len;    unsigned char *str;   };
pike.git/src/modules/Image/encodings/xcf.c:380:    if(offset2)    all_tiles_eq = offset2-offset;    }    if(all_tiles_eq && offset2 && offset2-offset != all_tiles_eq)    all_tiles_eq = 0;    if(all_tiles_eq)    ob.len = all_tiles_eq;    else if(offset2)    ob.len = offset2-offset;    else -  ob.len = MIN((TILE_WIDTH*TILE_HEIGHT*5),ob.len); +  ob.len = MINIMUM((TILE_WIDTH*TILE_HEIGHT*5),ob.len);    tile->data = ob;    tile->next = NULL;   /* fprintf(stderr, "tile, o=%d; o2=%d; l=%d\n", offset, offset2,ob.len); */    offset = offset2;    }    UNSET_ONERROR( err );    return res;   }      static struct hierarchy read_hierarchy( struct buffer *buff,
pike.git/src/modules/Image/encodings/xcf.c:1127:   /* } */   /* break; */   /* } */       x=y=0;    for(l=0; l<(unsigned)tiles->size; l++)    {    struct pike_string *tile = tiles->item[l].u.string;    unsigned int eheight, ewidth;    unsigned char *s; -  ewidth = MIN(TILE_WIDTH, i->xsize-x); -  eheight = MIN(TILE_HEIGHT, i->ysize-y); +  ewidth = MINIMUM(TILE_WIDTH, i->xsize-x); +  eheight = MINIMUM(TILE_HEIGHT, i->ysize-y);    tile->refs++;      /* fprintf(stderr, " tile %d/%d [%dx%d] %dbpp \n", */   /* l+1, tiles->size, ewidth, eheight,bpp); */       if(rle)    {    push_string( tile );    push_int( bpp );    push_int( ewidth );