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

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:1867:    }    fail:    ; /* NB: Some C-compilers require a statement after a label. */    } while ( UNLIKELY(io_range_error(io, 0)) );    }       push_undefined();    }       /*! @decl protected int(-1..) _search(int(8bit) character, int|void start, @ -  *! int|void end) +  *! int(0..)|void end)    *!    *! Search forward from the indicated @[start] position for the specified    *! @[character].    *!    *! @param character    *! Character to search for.    *!    *! @param start    *! Start position relative to the current read position of the buffer.    *!
pike.git/src/modules/_Stdio/buffer.cmod:1892:    *! Don't search past this position of the buffer.    *!    *! @returns    *! Returns the first found position of @[character] relative to the    *! current read position of the buffer on success, and @[UNDEFINED]    *! on not found. The read position is not advanced.    *!    *! @seealso    *! @[read_cstring()], @[search()], @[lfun::_search()]    */ -  PIKEFUN int _search(int(8bit) character, int|void start, int|void end) +  PIKEFUN int(-1..) _search(int character, int|void start, int|void end)    flags ID_PROTECTED; -  +  rawtype tFunc(tInt8bit tOr(tInt, tVoid) tOr(tIntPos, tVoid), +  tOr(tInt_10, tIntPos));    {    Buffer *io = THIS;    unsigned char *buf = io_read_pointer(io);    unsigned char *buf_end = buf + io_len(io);       if (end) {    INT_TYPE bytes = end->u.integer;       if (bytes < 0) {    push_int(-1);