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

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:93:   }      static void f_substring__sprintf( INT32 args )   {    int x;    struct substring *s = SS(fp->current_object);       if (args != 2 )    SIMPLE_TOO_FEW_ARGS_ERROR("_sprintf",2);    if (TYPEOF(sp[-2]) != T_INT) -  SIMPLE_BAD_ARG_ERROR("_sprintf",0,"int"); +  SIMPLE_ARG_TYPE_ERROR("_sprintf",0,"int");    if (TYPEOF(sp[-1]) != T_MAPPING) -  SIMPLE_BAD_ARG_ERROR("_sprintf",1,"mapping"); +  SIMPLE_ARG_TYPE_ERROR("_sprintf",1,"mapping");    x = sp[-2].u.integer;    pop_n_elems( args );       switch( x )    {    case 't':    push_static_text("SubString");    return;    case 'O':    push_static_text("SubString( %O /* [+%d .. %d] */ )" );