pike.git
/
src
/
modules
/
Image
/
colors.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/colors.c:779:
} static void image_color__sprintf(INT32 args) { int prec,x; if (args<2) SIMPLE_TOO_FEW_ARGS_ERROR("_sprintf",2); if (TYPEOF(sp[-args]) != T_INT)
-
SIMPLE_
BAD_
ARG_ERROR("_sprintf",0,"int");
+
SIMPLE_ARG_
TYPE_
ERROR("_sprintf",0,"int");
if (TYPEOF(sp[1-args]) != T_MAPPING)
-
SIMPLE_
BAD_
ARG_ERROR("_sprintf",1,"mapping");
+
SIMPLE_ARG_
TYPE_
ERROR("_sprintf",1,"mapping");
pop_n_elems(args-2); push_static_text("precision"); f_index(2); if (TYPEOF(sp[-1]) != T_INT)
-
SIMPLE_
BAD_
ARG_ERROR("_sprintf",1,"mapping(\"precision\":int)");
+
SIMPLE_ARG_
TYPE_
ERROR("_sprintf",1,"mapping(\"precision\":int)");
prec=sp[-1].u.integer; x=sp[-2].u.integer; pop_n_elems(2); switch (x) { /* case 'c': */ /* case 'd': */ case 't': push_static_text("Image.Color.Color");
pike.git/src/modules/Image/colors.c:1214:
if (args>=0) return 0; return image_color_svalue(sp+args,rgb); } static void image_color_add(INT32 args) { rgb_group rgb; if (!image_color_arg(-args,&rgb))
-
SIMPLE_
BAD_
ARG_ERROR("`+",1,"Image.Color");
+
SIMPLE_ARG_
TYPE_
ERROR("`+",1,"Image.Color");
pop_n_elems(args); _image_make_rgb_color((int)(THIS->rgb.r+rgb.r), (int)(THIS->rgb.g+rgb.g), (int)(THIS->rgb.b+rgb.b)); } #define HEXTONUM(C) \