Branch: Tag:

2018-08-05

2018-08-05 12:44:17 by Martin Nilsson <nilsson@fastmail.com>

Avoid sending function name to get_all_args

837:   static void image_layer_set_alpha_value(INT32 args)   {    FLOAT_TYPE f; -  get_all_args("set_alpha_value",args,"%F",&f); +  get_all_args(NULL,args,"%F",&f);    if (f<0.0 || f>1.0)    SIMPLE_ARG_TYPE_ERROR("set_alpha_value",1,"float(0..1)");    THIS->alpha_value=f;
1192:      static void image_layer_set_offset(INT32 args)   { -  get_all_args("set_offset",args,"%d%d", /* INT32! */ +  get_all_args(NULL,args,"%d%d", /* INT32! */    &(THIS->xoffs),&(THIS->yoffs));    pop_n_elems(args);    ref_push_object(THISOBJ);
1233:   static void image_layer_set_tiled(INT32 args)   {    INT_TYPE tiled; -  get_all_args("set_tiled",args,"%i",&tiled); +  get_all_args(NULL,args,"%i",&tiled);    THIS->tiled=!!tiled;    THIS->really_optimize_alpha=really_optimize_p(THIS);    pop_n_elems(args);
1354:    {    rgb_group col=black,alpha=white;    -  get_all_args("create",args,"%d%d", /* watch the type: INT32 */ +  get_all_args(NULL,args,"%d%d", /* watch the type: INT32 */    &(THIS->xsize),&(THIS->ysize));    if (args>2)    if (!image_color_arg(2-args,&col))
2874:       if (args>1)    { -  get_all_args("lay",args-1,"%i%i%i%i", +  get_all_args(NULL,args-1,"%i%i%i%i",    &xoffset,&yoffset,&xsize,&ysize);    if (xsize<1)    SIMPLE_ARG_TYPE_ERROR("lay",4,"int(1..)");
3051:    int zot=0;    struct image *img = NULL;    -  get_all_args("crop",args,"%i%i%i%i",&x,&y,&xz,&yz); +  get_all_args(NULL,args,"%i%i%i%i",&x,&y,&xz,&yz);       l=clone_this_layer();    if (x<=l->xoffs) x=l->xoffs; else zot++;
3159:    INT_TYPE l=1,r=1,t=1,b=1;       if (args>3) -  get_all_args("find_autocrop",args,"%i%i%i%i",&l,&r,&t,&b); +  get_all_args(NULL,args,"%i%i%i%i",&l,&r,&t,&b);       if (!THIS->tiled) {    if (THIS->alpha)