diff options
author | Tom Tromey <tromey@adacore.com> | 2022-08-11 11:13:00 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-08-31 11:03:40 -0600 |
commit | d9f95811860d9b99d539deb80bc6f48f0cee10e8 (patch) | |
tree | db37f7eebe6820f5bd67ac7260ea0a73d803495c /gdb/top.c | |
parent | 5a09f120568d433872267887ff844b2278b9c09b (diff) | |
download | gdb-d9f95811860d9b99d539deb80bc6f48f0cee10e8.zip gdb-d9f95811860d9b99d539deb80bc6f48f0cee10e8.tar.gz gdb-d9f95811860d9b99d539deb80bc6f48f0cee10e8.tar.bz2 |
Use member initialization in 'struct ui'
This changes 'struct ui' to use member initialization. This is
simpler to understand.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -295,26 +295,17 @@ unbuffer_stream (FILE *stream) /* See top.h. */ ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_) - : next (nullptr), - num (++highest_ui_num), - call_readline (nullptr), - input_handler (nullptr), - command_editing (0), - interp_info (nullptr), - async (0), - secondary_prompt_depth (0), + : num (++highest_ui_num), stdin_stream (instream_), instream (instream_), outstream (outstream_), errstream (errstream_), input_fd (fileno (instream)), m_input_interactive_p (ISATTY (instream)), - prompt_state (PROMPT_NEEDED), m_gdb_stdout (new pager_file (new stdio_file (outstream))), m_gdb_stdin (new stdio_file (instream)), m_gdb_stderr (new stderr_file (errstream)), - m_gdb_stdlog (m_gdb_stderr), - m_current_uiout (nullptr) + m_gdb_stdlog (m_gdb_stderr) { buffer_init (&line_buffer); |