This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r254258 - in /trunk/gcc: ChangeLog color-macros...
- From: marxin at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 31 Oct 2017 11:57:10 -0000
- Subject: r254258 - in /trunk/gcc: ChangeLog color-macros...
Author: marxin
Date: Tue Oct 31 11:57:10 2017
New Revision: 254258
URL: https://gcc.gnu.org/viewcvs?rev=254258&root=gcc&view=rev
Log:
GCOV: introduce usage of terminal colors.
2017-10-31 Martin Liska <mliska@suse.cz>
* color-macros.h: New file.
* diagnostic-color.c: Factor out color related to macros to
color-macros.h.
* doc/gcov.texi: Document -k option.
* gcov.c (INCLUDE_STRING): Include string.h.
(print_usage): Add -k option.
(process_args): Parse it.
(pad_count_string): New function.
(output_line_beginning): Likewise.
(DEFAULT_LINE_START): New macro.
(output_lines): Support color output.
Added:
trunk/gcc/color-macros.h
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic-color.c
trunk/gcc/doc/gcov.texi
trunk/gcc/gcov.c