This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]