pike.git
/
src
/
modules
/
Image
/
colors.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/colors.c:324:
sp--; dmalloc_touch_svalue(sp); } #ifdef THIS #undef THIS /* Needed for NT */ #endif #define THIS ((struct color_struct*)(Pike_fp->current_storage)) #define THISOBJ (Pike_fp->current_object)
-
static void init_color_struct(struct object *dummy)
+
static void init_color_struct(struct object *
UNUSED(
dummy)
)
{ THIS->rgb.r=THIS->rgb.g=THIS->rgb.b=0; THIS->name=NULL; }
-
static void exit_color_struct(struct object *dummy)
+
static void exit_color_struct(struct object *
UNUSED(
dummy)
)
{ if (THIS->name) { free_string(THIS->name); THIS->name=NULL; } } void _img_nct_map_to_flat_cubicles(rgb_group *s, rgb_group *d,
pike.git/src/modules/Image/colors.c:1507:
cs=(struct color_struct*) get_storage(sp[-1].u.object,image_color_program); cs->rgbl.r=(INT32)r; cs->rgbl.g=(INT32)g; cs->rgbl.b=(INT32)b; RGBL_TO_RGB(cs->rgb,cs->rgbl); }
-
static void image_color__encode( INT32 args )
+
static void image_color__encode( INT32
UNUSED(
args
)
)
{ push_int( THIS->rgbl.r ); push_int( THIS->rgbl.g ); push_int( THIS->rgbl.b ); f_aggregate( 3 ); }
-
static void image_color__decode( INT32 args )
+
static void image_color__decode( INT32
UNUSED(
args
)
)
{ struct svalue *a; if( TYPEOF(Pike_sp[-1]) != PIKE_T_ARRAY || Pike_sp[-1].u.array->size != 3 ) Pike_error("Illegal argument to _decode\n"); a=Pike_sp[-1].u.array->item; THIS->rgbl.r = a[0].u.integer; THIS->rgbl.g = a[1].u.integer; THIS->rgbl.b = a[2].u.integer; RGBL_TO_RGB(THIS->rgb,THIS->rgbl); pop_stack();