pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1811:    push_int(0);    }       /*! @decl Buffer sprintf(strict_sprintf_format format, sprintf_args ... args)    *!    *! Appends the output from @[sprintf] at the end of the buffer.    *!    *! This is somewhat faster than add(sprintf(...)) since no    *! intermediate string is created.    */ -  PIKEFUN int(0..) sprintf(mixed ... ignored) +  PIKEFUN Buffer sprintf(mixed ... ignored)    rawtype tFuncV(tAttr("strict_sprintf_format", tOr(tStr, tObj)), -  tAttr("sprintf_args", tMix), tStr); +  tAttr("sprintf_args", tMix), tObjIs_BUFFER);    {    ONERROR _e;    struct string_builder tmp;    init_string_builder(&tmp,0);    SET_ONERROR(_e, free_string_builder, &tmp);    low_f_sprintf(args, 0, &tmp );    if( tmp.s->size_shift )    Pike_error("Buffer only handles 8bit data\n");    io_append( THIS, tmp.s->str, tmp.s->len );    pop_n_elems(args);