diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-09-04 10:06:07 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-09-04 10:06:07 +0000 |
| commit | 805f95eac61ef17d7ec3f87dda1dfbc932951dee (patch) | |
| tree | 62ab374454b87aa4d7d04bbee18ead8a4cbace37 /src/runtime/c/gu/string.c | |
| parent | ae87c3d272104a933d148a544c9eab15865c1758 (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/string.c')
| -rw-r--r-- | src/runtime/c/gu/string.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 6f91e0a27..1a53c3a28 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -20,9 +20,10 @@ gu_string_buf(GuPool* pool) GuBuf* buf = gu_new_buf(uint8_t, pool); GuOut* out = gu_buf_out(buf, pool); GuWriter* wtr = gu_new_utf8_writer(out, pool); - return gu_new_s(pool, GuStringBuf, - .bbuf = buf, - .wtr = wtr); + GuStringBuf* sbuf = gu_new(GuStringBuf, pool); + sbuf->bbuf = buf; + sbuf->wtr = wtr; + return sbuf; } GuWriter* |
