pike.git / src / modules / Image / match.h

version» Context lines:

pike.git/src/modules/Image/match.h:53:    else    Pike_error("Illegal argument 1 to image->"NAME"\n");       if ((sp[1-args].type!=T_OBJECT)    || !(needle=    (struct image*)get_storage(sp[1-args].u.object,image_program)))    Pike_error("Illegal argument 2 to image->"NAME"()\n");       if ((needle->xsize>haystack->xsize)||    (needle->ysize>haystack->ysize)) -  Pike_error("Haystack must be bigger than needle Pike_error in image->"NAME"()\n"); +  Pike_error("Haystack must be bigger than needle, error in image->"NAME"()\n");    needlei=needle->img;    haystacki=haystack->img;       if ((args==2)||(args==3))    type=1;    else    {    if ((sp[2-args].type!=T_OBJECT)||    !(haystack_cert=    (struct image*)get_storage(sp[2-args].u.object,image_program)))    Pike_error("Illegal argument 3 to image->"NAME"()\n");    else    if ((haystack->xsize!=haystack_cert->xsize)||    (haystack->ysize!=haystack_cert->ysize)) -  Pike_error("Argument 3 must be the same size as haystack Pike_error in image->"NAME"()\n"); +  Pike_error("Argument 3 must be the same size as haystack error in image->"NAME"()\n");       if ((sp[3-args].type==T_INT))    {    foo=sp[3-args].u.integer;    type=3;    haystack_avoid=haystack_cert;    haystack_cert=0;    }    else if ((sp[3-args].type!=T_OBJECT)||    !(needle_cert=    (struct image*)get_storage(sp[3-args].u.object,image_program)))    Pike_error("Illegal argument 4 to image->"NAME"()\n");    else    {    if ((needle_cert->xsize!=needle->xsize)||    (needle_cert->ysize!=needle->ysize)) -  Pike_error("Needle_cert must be the same size as needle Pike_error in image->"NAME"()\n"); +  Pike_error("Needle_cert must be the same size as needle error in image->"NAME"()\n");    type=2;    }    if (args>=6)    {    if (sp[5-args].type==T_INT)    {    foo=sp[5-args].u.integer;    type=4;    }    else    Pike_error("Illegal argument 6 to image->"NAME"()\n");    if ((sp[4-args].type!=T_OBJECT)||    !(haystack_avoid=    (struct image*)get_storage(sp[4-args].u.object,image_program)))    Pike_error("Illegal argument 5 to image->"NAME"()\n");    else    if ((haystack->xsize!=haystack_avoid->xsize)||    (haystack->ysize!=haystack_avoid->ysize)) -  Pike_error("Haystack_avoid must be the same size as haystack Pike_error in image->"NAME"()\n"); +  Pike_error("Haystack_avoid must be the same size as haystack error in image->"NAME"()\n");    }    }    push_int(this->xsize);    push_int(this->ysize);    o=clone_object(image_program,2);    img=(struct image*)get_storage(o,image_program);    imgi=img->img;          pop_n_elems(args);