pike.git / src / modules / Image / encodings / wbf.c

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:390:   {    struct object *o;    struct image *i;    struct mapping *options = NULL;    int num_strings = 0;       if( !args )    Pike_error("No image given to encode.\n");    if( args > 2 )    Pike_error("Too many arguments to encode.\n"); -  if( sp[-args].type != T_OBJECT ) +  if( TYPEOF(sp[-args]) != T_OBJECT )    Pike_error("No image given to encode.\n");       o = sp[-args].u.object;    i = (struct image*)get_storage(o,image_program);    if(!i)    Pike_error("Wrong type object argument\n");    if( args == 2 )    { -  if( sp[-args+1].type != T_MAPPING ) +  if( TYPEOF(sp[-args+1]) != T_MAPPING )    Pike_error("Wrong type for argument 2.\n");    options = sp[-args+1].u.mapping;    }    sp-=args;       num_strings=0;    push_wap_integer( 0 ); num_strings++; /* type */    push_wap_integer( 0 ); num_strings++; /* extra header */    push_wap_integer( i->xsize ); num_strings++;    push_wap_integer( i->ysize ); num_strings++;