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: colors.c,v 1.34 2000/08/09 17:42:13 grubba Exp $ + **! $Id: colors.c,v 1.35 2000/08/10 09:51:53 per Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.34 2000/08/09 17:42:13 grubba Exp $"); + RCSID("$Id: colors.c,v 1.35 2000/08/10 09:51:53 per Exp $");      #include "image_machine.h"   
434:      static void image_color_greylevel(INT32 args)   { -  INT32 r,g,b; +  INT_TYPE r,g,b;    if (args==0)    {    r=87;
580:   static void image_color_hex(INT32 args)   {    char buf[80]; -  INT32 i=sizeof(COLORTYPE)*2; +  INT_TYPE i=sizeof(COLORTYPE)*2;       if (args)    get_all_args("Image.Color.Color->hex()",args,"%i",&i);
1084:      static void image_color_mult(INT32 args)   { -  float x=0.0; +  FLOAT_TYPE x=0.0;    get_all_args("Image.Color.Color->`*",args,"%f",&x);    pop_n_elems(args);    _image_make_rgb_color((int)(THIS->rgb.r*x),
1250:    if (sp[-1].type==T_ARRAY &&    sp[-1].u.array->size==3)    { -  float h,s,v; +  FLOAT_TYPE h,s,v;    stack_swap();    pop_stack();    sp--;
1459:      static void image_make_rgb_color(INT32 args)   { -  INT32 r=0,g=0,b=0; +  INT_TYPE r=0,g=0,b=0;       get_all_args("Image.Color.rgb()",args,"%i%i%i",&r,&g,&b);   
1468:      static void image_make_hsv_color(INT32 args)   { -  double h,s,v; -  double r=0,g=0,b=0; /* to avoid warning */ +  FLOAT_TYPE h,s,v; +  FLOAT_TYPE r=0,g=0,b=0; /* to avoid warning */       if (args && sp[-args].type==T_INT)    { -  INT32 hi,si,vi; +  INT_TYPE hi,si,vi;    get_all_args("Image.Color.hsv()",args,"%i%i%i",    &hi,&si,&vi);    pop_n_elems(args);
1530:      static void image_make_cmyk_color(INT32 args)   { -  float c,m,y,k,r,g,b; +  FLOAT_TYPE c,m,y,k,r,g,b;    get_all_args("Image.Color.cmyk()",args,"%F%F%F%F",&c,&m,&y,&k);    pop_n_elems(args);   
1543:      static void image_make_greylevel_color(INT32 args)   { -  INT32 i; +  INT_TYPE i;       get_all_args("Image.Color.greylevel()",args,"%i",&i);    pop_n_elems(args);