From 805f95eac61ef17d7ec3f87dda1dfbc932951dee Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 4 Sep 2013 10:06:07 +0000 Subject: remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script --- src/runtime/c/gu/out.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/runtime/c/gu/out.c') diff --git a/src/runtime/c/gu/out.c b/src/runtime/c/gu/out.c index 61df2c184..ab937c4a7 100644 --- a/src/runtime/c/gu/out.c +++ b/src/runtime/c/gu/out.c @@ -236,12 +236,13 @@ gu_proxy_out_flush(GuOutStream* self, GuExn* err) GuOutStream* gu_out_proxy_stream(GuOut* out, GuPool* pool) { - return &gu_new_s(pool, GuProxyOutStream, - .stream.begin_buf = gu_proxy_out_buf_begin, - .stream.end_buf = gu_proxy_out_buf_end, - .stream.output = gu_proxy_out_output, - .stream.flush = gu_proxy_out_flush, - .real_out = out)->stream; + GuProxyOutStream* pos = gu_new(GuProxyOutStream, pool); + pos->stream.begin_buf = gu_proxy_out_buf_begin; + pos->stream.end_buf = gu_proxy_out_buf_end; + pos->stream.output = gu_proxy_out_output; + pos->stream.flush = gu_proxy_out_flush; + pos->real_out = out; + return &pos->stream; } -- cgit v1.2.3