minor improvements to cmake's datatoc usage, now changes to datatoc.c re-make generated files.

This commit is contained in:
2012-08-11 18:39:38 +00:00
parent ca7c07cda9
commit df1dd658c9
2 changed files with 12 additions and 13 deletions

View File

@@ -104,9 +104,11 @@ int main(int argc, char **argv)
fprintf(fpout, "int datatoc_%s_size = %s;\n", argv[1], sizest);
fprintf(fpout, "char datatoc_%s[] = {\n", argv[1]);
while (size--) {
#ifdef VERBOSE
if (size % 32 == 31) {
fprintf(fpout, "\n");
}
#endif
/* fprintf (fpout, "\\x%02x", getc(fpin)); */
fprintf(fpout, "%3d,", getc(fpin));