pike.git / src / modules / Image / colors.c

version» Context lines:

pike.git/src/modules/Image/colors.c:320:    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)    + #ifdef PIKE_NULL_IS_SPECIAL   static void init_color_struct(struct object *UNUSED(dummy))   { -  THIS->rgb.r=THIS->rgb.g=THIS->rgb.b=0; +     THIS->name=NULL;   } -  + #endif      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,    int n,    struct neo_colortable *nct,    struct nct_dither *dith,    int rowlen);      static void try_find_name(struct color_struct *this)   {
pike.git/src/modules/Image/colors.c:1723:    str_s=make_shared_string("s");    str_v=make_shared_string("v");       no_name=make_shared_string("");       /* make color object program */       start_new_program();       ADD_STORAGE(struct color_struct); + #ifdef PIKE_NULL_IS_SPECIAL    set_init_callback(init_color_struct); -  + #endif    set_exit_callback(exit_color_struct);       /* color info methods */       ADD_FUNCTION("cast",image_color_cast,tFunc(tStr,tOr(tArray,tStr)),ID_PROTECTED);    ADD_FUNCTION("_sprintf",image_color__sprintf,    tFunc(tInt tMap(tStr,tMix),tStr),0);    ADD_FUNCTION("`[]",image_color_index,tFunc(tOr(tStr,tInt),tOr(tInt,tFunction)),0);    ADD_FUNCTION("`->",image_color_index,tFunc(tOr(tStr,tInt),tOr(tInt,tFunction)),0);    ADD_FUNCTION("`==",image_color_equal,tFunc(tOr(tObjImpl_IMAGE_COLOR_COLOR,tInt),