Mercurial > hg > dmlib
diff tools/data2inc.c @ 2286:e771185db600
Add extra formatting to C and ASM outputs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 20 Jun 2019 14:46:09 +0300 |
parents | d736ff74663b |
children | b7cd5dd0b82e |
line wrap: on
line diff
--- a/tools/data2inc.c Tue Jun 18 14:23:02 2019 +0300 +++ b/tools/data2inc.c Thu Jun 20 14:46:09 2019 +0300 @@ -243,7 +243,7 @@ } if (i + 1 < len) - fprintf(fh, ","); + fprintf(fh, optFormatting ? ", " : ","); } } @@ -301,7 +301,7 @@ fprintf(fh, "%d", buf[i]); } - fprintf(fh, ","); + fprintf(fh, optFormatting ? ", " : ","); } }