* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/fastbuf.h"
-#include "ucw/mempool.h"
-#include "ucw/bbuf.h"
+#include <ucw/lib.h>
+#include <ucw/fastbuf.h>
+#include <ucw/mempool.h>
+#include <ucw/bbuf.h>
char * /* Non-standard */
bgets(struct fastbuf *f, char *b, uns l)
*b++ = v;
}
if (unlikely(cnt == l))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
l -= cnt;
bdirect_read_commit(f, src);
src_len = bdirect_read_prepare(f, &src);
if (cnt == buf_len)
{
if (unlikely(len == limit))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
bb_do_grow(bb, len + 1);
buf = bb->ptr + len;
buf_len = MIN(bb->len, limit) - len;
b++;
}
if (unlikely(cnt == l))
- die("%s: Line too long", f->name);
+ bthrow(f, "toolong", "%s: Line too long", f->name);
l -= cnt;
bdirect_read_commit(f, src);
src_len = bdirect_read_prepare(f, &src);