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

version» Context lines:

pike.git/src/modules/Image/orient.c:28:      #define sp Pike_sp      extern struct program *image_program;   #ifdef THIS   #undef THIS /* Needed for NT */   #endif   #define THIS ((struct image *)(Pike_fp->current_storage))   #define THISOBJ (Pike_fp->current_object)    - #define testrange(x) MAXIMUM(MINIMUM((x),255),0) -  +    static const double c0=0.70710678118654752440;   static const double my_PI=3.14159265358979323846;      #if 0   #include <sys/resource.h>   #define CHRONO(X) chrono(X);      static void chrono(char *x)   {    struct rusage r;
pike.git/src/modules/Image/orient.c:147:      void image_orient(INT32 args)   {    struct object *o[5];    struct image *img[5],*this,*img1;    int n;    rgb_group *d,*s1,*s2,*s3,*s0;    double mag;    int i, w, h;    -  if (!THIS->img) { Pike_error("Called Image.Image object is not initialized\n");; return; } +  CHECK_INIT();       this=THIS;       if (args)    {    if (TYPEOF(sp[-args]) == T_INT)    mag=sp[-args].u.integer;    else if (TYPEOF(sp[-args]) == T_FLOAT)    mag=sp[-args].u.float_number;    else {
pike.git/src/modules/Image/orient.c:266:    push_object(o[4]);    }   }         void image_orient4(INT32 args)   {    struct object *o[5];    struct image *img[5];    -  if (!THIS->img) { Pike_error("Called Image.Image object is not initialized\n");; return; } +  CHECK_INIT();       pop_n_elems(args);    _image_orient(THIS,o,img);       pop_n_elems(1);    f_aggregate(4);   }