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.76 2001/11/19 16:22:58 nilsson Exp $ + **! $Id: layers.c,v 1.77 2002/05/11 00:19:57 nilsson 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.76 2001/11/19 16:22:58 nilsson Exp $"); + RCSID("$Id: layers.c,v 1.77 2002/05/11 00:19:57 nilsson 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"   #include "mapping.h"   #include "threads.h"   #include "builtin_functions.h"   #include "dmalloc.h"   #include "operators.h"   #include "module_support.h"   #include "opcodes.h"      #include "image.h"    - /* This must be included last! */ - #include "module_magic.h" -  +    #ifdef TRY_USE_MMX   #include <mmx.h>   #endif    -  + /* This must be included last! */ + #include "module_magic.h" +    extern struct program *image_program;   extern struct program *image_layer_program;   extern struct program *image_colortable_program;      static struct mapping *colors=NULL;   static struct object *colortable=NULL;   static struct array *colornames=NULL;      static const rgb_group black={0,0,0};   static const rgb_group white={COLORMAX,COLORMAX,COLORMAX};
pike.git/src/modules/Image/layers.c:3230:    push_array_items(Pike_sp->u.array); /* frees */    image_layer_crop(4);   }         static void image_layer__sprintf( INT32 args )   {    int x;    if (args != 2 )    SIMPLE_TOO_FEW_ARGS_ERROR("_sprintf",2); -  if (sp[-args].type!=T_INT) +  if (Pike_sp[-args].type!=T_INT)    SIMPLE_BAD_ARG_ERROR("_sprintf",0,"integer"); -  if (sp[1-args].type!=T_MAPPING) +  if (Pike_sp[1-args].type!=T_MAPPING)    SIMPLE_BAD_ARG_ERROR("_sprintf",1,"mapping");    -  x = sp[-2].u.integer; +  x = Pike_sp[-2].u.integer;       pop_n_elems( 2 );    switch( x )    {    case 't':    push_constant_text("Image.Layer");    return;    case 'O':    push_constant_text( "Image.Layer(%O i=%O a=%O)" );    image_layer_mode(0);