Date: Mon, 18 Aug 2014 10:53:15 GMT From: zkorchev@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r272603 - soc2014/zkorchev/freebsd_head/lib/libsol Message-ID: <201408181053.s7IArFQt074045@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zkorchev Date: Mon Aug 18 10:53:15 2014 New Revision: 272603 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=272603 Log: fixed configuration format special value that got messed up because of optimizations Modified: soc2014/zkorchev/freebsd_head/lib/libsol/sol.c Modified: soc2014/zkorchev/freebsd_head/lib/libsol/sol.c ============================================================================== --- soc2014/zkorchev/freebsd_head/lib/libsol/sol.c Mon Aug 18 10:38:51 2014 (r272602) +++ soc2014/zkorchev/freebsd_head/lib/libsol/sol.c Mon Aug 18 10:53:15 2014 (r272603) @@ -60,18 +60,23 @@ case ' ': putchar('_'); break; + case '(': case ')': break; + case '%': fputs(" percent", stdout); break; + case '|': fputs(" or ", stdout); break; + case '/': putchar('.'); break; + default: putchar(*tag); break; @@ -275,7 +280,7 @@ padding(stream); printf("{"); } - stream->ctx.c.stack[stream->ctx.c.depth++] = (void *)1; // TODO fix this + stream->ctx.c.stack[stream->ctx.c.depth++] = (void *)""; /* just set a non-NULL address */ break; case SOL_XML: @@ -504,7 +509,7 @@ int sol_float(struct sol_stream *restrict stream, double value) { - // todo round mantissa? + // TODO round mantissa? switch (stream->f) { case SOL_JSON:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408181053.s7IArFQt074045>
