forked from GitHub/gf-core
small fix for compiling the robust parser on MacOS
This commit is contained in:
@@ -300,11 +300,11 @@ gu_buf_outbuf_end(GuOutStream* stream, size_t sz, GuExn* err)
|
|||||||
GuOut*
|
GuOut*
|
||||||
gu_buf_out(GuBuf* buf, GuPool* pool)
|
gu_buf_out(GuBuf* buf, GuPool* pool)
|
||||||
{
|
{
|
||||||
GuBufOut* bout = gu_new_i(pool, GuBufOut,
|
GuBufOut* bout = gu_new(GuBufOut, pool);
|
||||||
.stream.output = gu_buf_out_output,
|
bout->stream.output = gu_buf_out_output;
|
||||||
.stream.begin_buf = gu_buf_outbuf_begin,
|
bout->stream.begin_buf = gu_buf_outbuf_begin;
|
||||||
.stream.end_buf = gu_buf_outbuf_end,
|
bout->stream.end_buf = gu_buf_outbuf_end;
|
||||||
.buf = buf);
|
bout->buf = buf;
|
||||||
return gu_new_out(&bout->stream, pool);
|
return gu_new_out(&bout->stream, pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user