diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-12-15 12:24:26 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-12-15 13:20:49 +0000 |
commit | 7d2e100058790e3407ae02b6db4a276957deaa4f (patch) | |
tree | 2313061f4499c2480e5256d64e4081d1161b960d /gcc | |
parent | 8a5cac92e7c20e13f01ca0cfa5dc00d014caf0d3 (diff) | |
download | gcc-7d2e100058790e3407ae02b6db4a276957deaa4f.zip gcc-7d2e100058790e3407ae02b6db4a276957deaa4f.tar.gz gcc-7d2e100058790e3407ae02b6db4a276957deaa4f.tar.bz2 |
libstdc++: Simplify std::vprint_unicode for non-Windows targets
Since we don't need to do anything special to print Unicode on
non-Windows targets, we might as well just use std::vprint_nonunicode to
implement std::vprint_unicode. Removing the duplicated code should
reduce code size in cases where those calls aren't inlined.
Also use an RAII type for the unused case where a non-Windows target
calls __open_terminal(streambuf*) and needs to fclose the result. This
makes the code futureproof in case we ever start using the
__write_terminal function for non-Windows targets.
libstdc++-v3/ChangeLog:
* include/std/ostream (vprint_unicode) [_WIN32]: Use RAII guard.
(vprint_unicode) [!_WIN32]: Just call vprint_nonunicode.
* include/std/print (vprint_unicode) [!_WIN32]: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions