Rev 6460 | Rev 7520 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6460 | Rev 6574 | ||
---|---|---|---|
Line 775... | Line 775... | ||
775 | 775 | ||
776 | if (!s1->error_func) { |
776 | if (!s1->error_func) { |
777 | /* default case: stderr */ |
777 | /* default case: stderr */ |
778 | if (s1->ppfp) /* print a newline during tcc -E */ |
778 | if (s1->ppfp) /* print a newline during tcc -E */ |
- | 779 | fprintf(s1->ppfp, "\n"), fflush(s1->ppfp); |
|
779 | fprintf(s1->ppfp, "\n"), fflush(s1->ppfp); |
780 | #ifndef TCC_TARGET_MEOS |
780 | fprintf(stderr, "%s\n", buf); |
781 | fprintf(stderr, "%s\n", buf); |
- | 782 | fflush(stderr); /* print error/warning now (win32) */ |
|
- | 783 | #else |
|
- | 784 | fprintf(stdout, "%s\n", buf); |
|
- | 785 | fflush(stdout); /* print error/warning now (win32) */ |
|
781 | fflush(stderr); /* print error/warning now (win32) */ |
786 | #endif |
782 | } else { |
787 | } else { |
783 | s1->error_func(s1->error_opaque, buf); |
788 | s1->error_func(s1->error_opaque, buf); |
784 | } |
789 | } |
785 | if (!is_warning || s1->warn_error) |
790 | if (!is_warning || s1->warn_error) |
Line 2481... | Line 2486... | ||
2481 | tt = (double)total_time / 1000000.0; |
2486 | tt = (double)total_time / 1000000.0; |
2482 | if (tt < 0.001) |
2487 | if (tt < 0.001) |
2483 | tt = 0.001; |
2488 | tt = 0.001; |
2484 | if (total_bytes < 1) |
2489 | if (total_bytes < 1) |
2485 | total_bytes = 1; |
2490 | total_bytes = 1; |
2486 | fprintf(stderr, "%d idents, %d lines, %d bytes, %0.3f s, %d lines/s, %0.1f MB/s\n", |
2491 | fprintf(stdout, "%d idents, %d lines, %d bytes, %0.3f s, %d lines/s, %0.1f MB/s\n", |
2487 | tok_ident - TOK_IDENT, total_lines, total_bytes, |
2492 | tok_ident - TOK_IDENT, total_lines, total_bytes, |
2488 | tt, (int)(total_lines / tt), |
2493 | tt, (int)(total_lines / tt), |
2489 | total_bytes / tt / 1000000.0); |
2494 | total_bytes / tt / 1000000.0); |
2490 | } |
2495 | } |