changeset 341:1040f51bf770

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 23 Feb 2016 21:59:45 +0200
parents cde5415c4201
children 09c2f6abf694
files th_string.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Tue Feb 23 17:39:14 2016 +0200
+++ b/th_string.c	Tue Feb 23 21:59:45 2016 +0200
@@ -185,8 +185,8 @@
 //#include "th_printf1.c"
 
 
-static int th_printf_vput_int(th_printf_ctx *ctx, th_printf_vputch vputch, va_list ap,
-    const int f_radix, int f_flags, int f_width, int f_prec,
+static int th_printf_vput_int(th_printf_ctx *ctx, th_printf_vputch vputch,
+    va_list ap, const int f_radix, int f_flags, int f_width, int f_prec,
     const BOOL f_unsig, char *(f_alt)(const int flags))
 {
     char buf[64];
@@ -194,7 +194,6 @@
     char f_sign, *f_altstr;
     BOOL f_neg = FALSE;
 
-
     if (f_flags & TH_PF_LONGLONG)
     {
         ret = th_printf_vbuf_int64(buf, sizeof(buf), &f_len, va_arg(ap, int64_t),
@@ -213,7 +212,9 @@
         return ret;
 
     // Are we using a sign prefix?
-    f_sign = f_unsig ? 0 : ((f_flags & TH_PF_SIGN) ? (f_neg ? '-' : '+') : (f_neg ? '-' : ((f_flags & TH_PF_SPACE) ? ' ' : 0)));
+    f_sign = f_unsig ? 0 : ((f_flags & TH_PF_SIGN) ?
+        (f_neg ? '-' : '+') :
+        (f_neg ? '-' : ((f_flags & TH_PF_SPACE) ? ' ' : 0)));
 
     // Calculate necessary padding, etc
     f_prec = (f_prec > f_len) ? f_prec - f_len : 0;