Browse Source

Add to debug-out.txt an output without source file information.

Thus cluttering the view is reduced.
pre-master-46
Holger Vogt 1 year ago
parent
commit
e5d4d7d63f
  1. 17
      src/frontend/inpcom.c

17
src/frontend/inpcom.c

@ -1222,7 +1222,20 @@ struct card *inp_readall(FILE *fp, const char *dir_name, const char* file_name,
/*debug: print into file*/
struct card *t;
fprintf(fd,
"**************** uncommented deck "
"\n\n**************** uncommented deck without source file info "
"**************\n\n");
/* always print first line */
fprintf(fd, "%6d %s\n", cc->linenum,
cc->line);
/* here without out-commented lines */
for (t = cc->nextcard; t; t = t->nextcard) {
if (*(t->line) == '*')
continue;
fprintf(fd, "%6d %s\n",
t->linenum, t->line);
}
fprintf(fd,
"\n\n**************** uncommented deck "
"**************\n\n");
/* always print first line */
fprintf(fd, "%6s %6d %6d %s\n", cc->linesource, cc->linenum_orig, cc->linenum,
@ -1235,7 +1248,7 @@ struct card *inp_readall(FILE *fp, const char *dir_name, const char* file_name,
t->linesource, t->linenum_orig, t->linenum, t->line);
}
fprintf(fd,
"\n****************** complete deck "
"\n\n****************** complete deck "
"***************\n\n");
/* now completely */
for (t = cc; t; t = t->nextcard)

Loading…
Cancel
Save