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

version» Context lines:

pike.git/src/modules/Image/layers.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: layers.c,v 1.97 2004/04/18 03:30:02 nilsson Exp $ + || $Id: layers.c,v 1.98 2006/03/08 01:21:35 peter Exp $   */      /*   **! module Image   **! class Layer   **! see also: layers   */      #include "global.h"      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.97 2004/04/18 03:30:02 nilsson Exp $"); + RCSID("$Id: layers.c,v 1.98 2006/03/08 01:21:35 peter Exp $");      #include "image_machine.h"      #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "interpret.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"
pike.git/src/modules/Image/layers.c:1096:    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;    }    -  Pike_fatal("illegal mode: %p\n", (void *)layer_mode[i].func); +  Pike_fatal("illegal mode: %p\n", (void *)layer_mode[i-1].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);