Branch: Tag:

2000-08-10

2000-08-10 09:51:57 by Per Hedbor <ph@opera.com>

int-> INT_TYPE and float-> FLOAT_TYPE for (I hope) all get_all_args calls.

Rev: src/builtin_functions.c:1.295
Rev: src/encode.c:1.64
Rev: src/error.c:1.57
Rev: src/modules/Gettext/gettext.c:1.5
Rev: src/modules/Gmp/mpz_glue.c:1.81
Rev: src/modules/HTTPLoop/accept_and_parse.c:1.16
Rev: src/modules/HTTPLoop/requestobject.c:1.12
Rev: src/modules/Image/blit.c:1.45
Rev: src/modules/Image/colors.c:1.35
Rev: src/modules/Image/colortable.c:1.86
Rev: src/modules/Image/encodings/_xpm.c:1.14
Rev: src/modules/Image/encodings/psd.c:1.21
Rev: src/modules/Image/encodings/xcf.c:1.19
Rev: src/modules/Image/font.c:1.61
Rev: src/modules/Image/image.c:1.173
Rev: src/modules/Image/layers.c:1.53
Rev: src/modules/Math/math_matrix.c:1.16
Rev: src/modules/SANE/sane.c:1.7
Rev: src/modules/_Crypto/nt.c:1.6
Rev: src/modules/_Crypto/rsa.c:1.23
Rev: src/modules/_Image_JPEG/image_jpeg.c:1.32
Rev: src/modules/files/termios.c:1.9
Rev: src/modules/spider/spider.c:1.97
Rev: src/modules/system/nt.c:1.21
Rev: src/modules/system/passwords.c:1.30
Rev: src/modules/system/syslog.c:1.9
Rev: src/modules/system/system.c:1.86
Rev: src/opcodes.c:1.82
Rev: src/operators.c:1.97
Rev: src/post_modules/GTK/build_pgtk.pike:1.32
Rev: src/post_modules/GTK/source/gdkatom.pre:1.6
Rev: src/post_modules/GTK/source/gdkbitmap.pre:1.7
Rev: src/post_modules/GTK/source/gdkcolor.pre:1.6
Rev: src/post_modules/GTK/source/gdkdragcontext.pre:1.6
Rev: src/post_modules/GTK/source/gdkdrawable.pre:1.6
Rev: src/post_modules/GTK/source/gdkgc.pre:1.6
Rev: src/post_modules/GTK/source/gdkimage.pre:1.7
Rev: src/post_modules/GTK/source/gdkrectangle.pre:1.6
Rev: src/post_modules/GTK/source/gdkregion.pre:1.6
Rev: src/post_modules/GTK/source/gdkwindow.pre:1.10
Rev: src/post_modules/GTK/source/global.pre:1.13
Rev: src/post_modules/GTK/source/gnomeapp.pre:1.6
Rev: src/post_modules/GTK/source/gnomecanvas.pre:1.3
Rev: src/post_modules/GTK/source/gnomecanvasgroup.pre:1.4
Rev: src/post_modules/GTK/source/gnomeiconlist.pre:1.4
Rev: src/post_modules/GTK/source/gtkaccelgroup.pre:1.5
Rev: src/post_modules/GTK/source/gtkadjustment.pre:1.5
Rev: src/post_modules/GTK/source/gtkcalendar.pre:1.3
Rev: src/post_modules/GTK/source/gtkclist.pre:1.6
Rev: src/post_modules/GTK/source/gtkctree.pre:1.5
Rev: src/post_modules/GTK/source/gtkcurve.pre:1.5
Rev: src/post_modules/GTK/source/gtkdrawingarea.pre:1.3
Rev: src/post_modules/GTK/source/gtklist.pre:1.5
Rev: src/post_modules/GTK/source/gtkmenu.pre:1.3
Rev: src/post_modules/GTK/source/gtkobject.pre:1.4
Rev: src/post_modules/GTK/source/gtkwidget.pre:1.7
Rev: src/post_modules/GTK/source/support.c:1.16
Rev: src/program.c:1.254
Rev: src/signal_handler.c:1.174
Rev: src/threads.c:1.134

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.52 2000/08/07 09:49:45 grubba Exp $ + **! $Id: layers.c,v 1.53 2000/08/10 09:51:54 per Exp $   **! class Layer   **! see also: layers   **!
215:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.52 2000/08/07 09:49:45 grubba Exp $"); + RCSID("$Id: layers.c,v 1.53 2000/08/10 09:51:54 per Exp $");      #include "image_machine.h"   
268:      struct layer   { -  int xsize; /* underlaying image size */ -  int ysize; +  INT_TYPE xsize; /* underlaying image size */ +  INT_TYPE ysize;    -  int xoffs,yoffs; /* clip offset */ +  INT_TYPE xoffs,yoffs; /* clip offset */       struct object *image; /* image object */    struct object *alpha; /* alpha object or null */
279:    struct image *img; /* image object storage */    struct image *alp; /* alpha object storage */    -  double alpha_value; /* overall alpha value (1.0=opaque) */ +  FLOAT_TYPE alpha_value; /* overall alpha value (1.0=opaque) */       rgb_group fill; /* fill color ("outside" the layer) */    rgb_group fill_alpha; /* fill alpha */
287:    rgb_group sfill[SNUMPIXS]; /* pre-calculated rows */    rgb_group sfill_alpha[SNUMPIXS];    -  int tiled; /* true if tiled */ +  INT_TYPE tiled; /* true if tiled */       lm_row_func *row_func;/* layer mode */ -  int optimize_alpha; -  int really_optimize_alpha; +  INT_TYPE optimize_alpha; +  INT_TYPE really_optimize_alpha;       struct mapping *misc; /* Misc associated data. Added by per,    rather useful for some things... */
856:      static void image_layer_set_alpha_value(INT32 args)   { -  float f; +  FLOAT_TYPE f;    get_all_args("Image.Layer->set_alpha_value",args,"%F",&f);    if (f<0.0 || f>1.0)    SIMPLE_BAD_ARG_ERROR("Image.Layer->set_alpha_value",1,"float(0..1)");
2559:    struct object *o;    struct layer *dest;    struct array *a; -  int gotoffs; -  int xoffset=0,yoffset=0,xsize=0,ysize=0; +  INT_TYPE xoffset=0,yoffset=0,xsize=0,ysize=0;       if (!args)    SIMPLE_TOO_FEW_ARGS_ERROR("Image.lay",1);
2731:   static void image_layer_crop(INT32 args)   {    struct layer *l; -  int x,y,xz,yz,xi,yi; +  INT_TYPE x,y,xz,yz,xi,yi;    int zot=0;    struct image *img;   
2837:      static void image_layer_find_autocrop(INT32 args)   { -  int x1=0,y1=0,x2=THIS->xsize-1,y2=THIS->ysize-1; -  int l=1,r=1,t=1,b=1; +  INT_TYPE x1=0,y1=0,x2=THIS->xsize-1,y2=THIS->ysize-1; +  INT_TYPE l=1,r=1,t=1,b=1;       if (args>3)    get_all_args("find_autocrop",args,"%d%d%d%d",&l,&r,&t,&b);