summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/out.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-04 10:06:07 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-04 10:06:07 +0000
commit805f95eac61ef17d7ec3f87dda1dfbc932951dee (patch)
tree62ab374454b87aa4d7d04bbee18ead8a4cbace37 /src/runtime/c/gu/out.c
parentae87c3d272104a933d148a544c9eab15865c1758 (diff)
remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script
Diffstat (limited to 'src/runtime/c/gu/out.c')
-rw-r--r--src/runtime/c/gu/out.c13
1 files changed, 7 insertions, 6 deletions
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;
}