pike.git/src/modules/Image/colors.c:1:
/*
**! module Image
**! note
- **! $Id: colors.c,v 1.60 2002/06/05 07:33:03 jhs Exp $
+ **! $Id: colors.c,v 1.61 2002/08/15 14:50:25 marcus Exp $
**! submodule Color
**!
**! This module keeps names and easy handling
**! for easy color support. It gives you an easy
**! way to get colors from names.
**!
**! A color is here an object, containing color
**! information and methods for conversion, see below.
**!
**! <ref>Image.Color</ref> can be called to make a color object.
pike.git/src/modules/Image/colors.c:180:
**! class Color
**! This is the color object. It has six readable variables,
**! <tt>r</tt>, <tt>g</tt>, <tt>b</tt>, for the <i>red</i>,
**! <i>green</i> and <i>blue</i> values,
**! and <tt>h</tt>, <tt>s</tt>, <tt>v</tt>, for
**! the <i>hue</i>, <i>saturation</i> anv <i>value</i> values.
*/
#include "global.h"
- RCSID("$Id: colors.c,v 1.60 2002/06/05 07:33:03 jhs Exp $");
+ RCSID("$Id: colors.c,v 1.61 2002/08/15 14:50:25 marcus Exp $");
#include "image_machine.h"
#include <math.h>
#include "stralloc.h"
#include "pike_macros.h"
#include "object.h"
#include "constants.h"
#include "interpret.h"
pike.git/src/modules/Image/colors.c:300:
for (i=0;i<n;i++)
{
push_int(c[i].r);
push_int(c[i].g);
push_int(c[i].b);
f_aggregate(3);
}
f_aggregate(n);
colortable=clone_object(image_colortable_program,1);
if (!colortable)
- fatal("couldn't create colortable\n");
+ Pike_fatal("couldn't create colortable\n");
push_int(12);
push_int(12);
push_int(12);
push_int(1);
safe_apply(colortable,"cubicles",4);
pop_stack();
for (i=0;i<n;i++)
push_string(c[i].pname);
pike.git/src/modules/Image/colors.c:360: Inside #if defined(HAVE_UNION_INIT)
NCTD_NONE,NULL,NULL,NULL,NULL,-1,
#ifdef HAVE_UNION_INIT
{{NULL,NULL,0.0,0.0,0.0,0.0,0,0}}, /* Only to avoid warnings. */
#endif
};
if (!colors)
make_colors();
if (this->name)
- fatal("try_find_name called twice\n");
+ Pike_fatal("try_find_name called twice\n");
if (this->rgbl.r!=COLOR_TO_COLORL(this->rgb.r) ||
this->rgbl.g!=COLOR_TO_COLORL(this->rgb.g) ||
this->rgbl.b!=COLOR_TO_COLORL(this->rgb.b))
{
copy_shared_string(this->name,no_name);
return;
}
_img_nct_map_to_flat_cubicles(&(this->rgb),&d,1,