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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.78 2002/08/13 17:09:17 grubba Exp $ + **! $Id: layers.c,v 1.79 2002/08/15 14:50:26 marcus Exp $   **! class Layer   **! see also: layers   **!      **!   **!   **! appendix Image.Layer modes   **!   **! <dl compact>   **! <dt><i>The variables in the expression:</i></dt>
pike.git/src/modules/Image/layers.c:189:   **! return 0;   **! }   **!   **! </execute>   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.78 2002/08/13 17:09:17 grubba Exp $"); + RCSID("$Id: layers.c,v 1.79 2002/08/15 14:50:26 marcus Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"
pike.git/src/modules/Image/layers.c:710:    switch(DOUBLE_TO_INT(i))    {    case 6:    case 0: colorp->r = V; colorp->g = t; colorp->b = p; break;    case 7:    case 1: colorp->r = q; colorp->g = V; colorp->b = p; break;    case 2: colorp->r = p; colorp->g = V; colorp->b = t; break;    case 3: colorp->r = p; colorp->g = q; colorp->b = V; break;    case 4: colorp->r = t; colorp->g = p; colorp->b = V; break;    case 5: colorp->r = V; colorp->g = p; colorp->b = q; break; -  default: fatal("unhandled case\n"); +  default: Pike_fatal("unhandled case\n");    }   #undef V   #undef i   #undef f   #undef p   #undef q   #undef t   }      static INLINE int hls_value(double n1, double n2, double hue)
pike.git/src/modules/Image/layers.c:1130:    int i;    pop_n_elems(args);       for (i=0; i<LAYER_MODES; i++)    if (THIS->row_func==layer_mode[i].func)    {    ref_push_string(layer_mode[i].ps);    return;    }    -  fatal("illegal mode: %p\n", (void *)layer_mode[i].func); +  Pike_fatal("illegal mode: %p\n", (void *)layer_mode[i].func);   }      static void image_layer_available_modes(INT32 args)   {    int i;    pop_n_elems(args);       for (i=0; i<LAYER_MODES; i++)    ref_push_string(layer_mode[i].ps);