diff options
author | Tom Tromey <tom@tromey.com> | 2016-09-22 21:16:53 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-10-12 19:43:16 -0600 |
commit | cda6c55bd399a8892d62178d4daeb074def909e0 (patch) | |
tree | d83fa6dba674729cc8cf978824995f03bbf8ca5e /gdb/ChangeLog | |
parent | 816d7b53047bca81c226990bc9248d59d80d4b8b (diff) | |
download | fsf-binutils-gdb-cda6c55bd399a8892d62178d4daeb074def909e0.zip fsf-binutils-gdb-cda6c55bd399a8892d62178d4daeb074def909e0.tar.gz fsf-binutils-gdb-cda6c55bd399a8892d62178d4daeb074def909e0.tar.bz2 |
Turn wchar iterator into a class
This changes wchar_iterator from charset.c into a real C++ class, then
updates the users to use the class. This lets us remove some cleanups
in favor of the class' destructor.
2016-10-12 Tom Tromey <tom@tromey.com>
* valprint.c (generic_emit_char, count_next_character)
(generic_printstr): Update.
* charset.c (struct wchar_iterator): Move to charset.h.
(wchar_iterator::wchar_iterator): Rename from
make_wchar_iterator, turn into a constructor.
(wchar_iterator::~wchar_iterator): Rename from
do_cleanup_iterator, turn into a destructor.
(make_cleanup_wchar_iterator): Remove.
(wchar_iterator::iterate): Rename from wchar_iterate. Remove
"iter" argument. Update.
* charset.h: Include <vector>.
(class wchar_iterator): New class, from old struct
wchar_iterator.
(make_wchar_iterator, make_cleanup_wchar_iterator): Don't
declare.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7507648..5d83d59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,23 @@ 2016-10-12 Tom Tromey <tom@tromey.com> + * valprint.c (generic_emit_char, count_next_character) + (generic_printstr): Update. + * charset.c (struct wchar_iterator): Move to charset.h. + (wchar_iterator::wchar_iterator): Rename from + make_wchar_iterator, turn into a constructor. + (wchar_iterator::~wchar_iterator): Rename from + do_cleanup_iterator, turn into a destructor. + (make_cleanup_wchar_iterator): Remove. + (wchar_iterator::iterate): Rename from wchar_iterate. Remove + "iter" argument. Update. + * charset.h: Include <vector>. + (class wchar_iterator): New class, from old struct + wchar_iterator. + (make_wchar_iterator, make_cleanup_wchar_iterator): Don't + declare. + +2016-10-12 Tom Tromey <tom@tromey.com> + * selftest.c: Include <vector>, not "vec.h". (self_test_function_ptr): Remove. (tests): Now a std::vector. |