socsvn commit: r272603 - soc2014/zkorchev/freebsd_head/lib/libsol

zkorchev at FreeBSD.org zkorchev at FreeBSD.org
Mon Aug 18 10:53:16 UTC 2014


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:


More information about the svn-soc-all mailing list