comparison tools/gentab.c @ 2248:2e656da1b10b

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 20:20:47 +0300
parents e3f0eaf23f4f
children b7cd5dd0b82e
comparison
equal deleted inserted replaced
2247:bb7255792dd6 2248:2e656da1b10b
247 if (n == 0) 247 if (n == 0)
248 fprintf(outFile, "\t.byte "); 248 fprintf(outFile, "\t.byte ");
249 249
250 fprintf(outFile, "%ld%s", 250 fprintf(outFile, "%ld%s",
251 lrint(value), 251 lrint(value),
252 (n < optPerLine - 1) ? "," : ""); 252 (n + 1 < optPerLine) ? "," : "");
253 253
254 if (++n >= optPerLine) 254 if (++n >= optPerLine)
255 { 255 {
256 fprintf(outFile, "\n"); 256 fprintf(outFile, "\n");
257 n = 0; 257 n = 0;