Introduce ui_file_style
authorTom Tromey <tom@tromey.com>
Sat, 10 Nov 2018 00:29:50 +0000 (17:29 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 28 Dec 2018 19:49:48 +0000 (12:49 -0700)
commiteedeedd2a50d121af466ddfa9e897212defbf079
treea202f17d1f388d672526f05cbb6a274622101200
parent7170dadf5950e1444ab09cdfc4e07dd2698fc275
Introduce ui_file_style

This introduces the new ui_file_style class and various helpers.  This
class represents a terminal style and provides methods for parsing and
emitting the corresponding ANSI terminal escape sequences.

gdb/ChangeLog
2018-12-28  Tom Tromey  <tom@tromey.com>

* unittests/style-selftests.c: New file.
* ui-style.c: New file.
* ui-style.h: New file.
* ui-file.h: Include ui-style.h.
* Makefile.in (COMMON_SFILES): Add ui-style.c.
(HFILES_NO_SRCDIR): Add ui-style.h.
(SUBDIR_UNITTESTS_SRCS): Add style-selftests.c.
gdb/ChangeLog
gdb/Makefile.in
gdb/ui-file.h
gdb/ui-style.c [new file with mode: 0644]
gdb/ui-style.h [new file with mode: 0644]
gdb/unittests/style-selftests.c [new file with mode: 0644]