public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Tom Tromey <tromey@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove separator comments from TUI Date: Fri, 20 Sep 2019 20:07:00 -0000 [thread overview] Message-ID: <20190920200713.70764.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63c4bf1922d5553edb213606270b0e2782bbe4c8 commit 63c4bf1922d5553edb213606270b0e2782bbe4c8 Author: Tom Tromey <tom@tromey.com> Date: Tue Sep 10 12:41:29 2019 -0600 Remove separator comments from TUI This removes various separator comments from the TUI. These aren't used elsewhere in gdb, and they were incorrect in some cases as well. gdb/ChangeLog 2019-09-20 Tom Tromey <tom@tromey.com> * tui/tui-data.c: Remove separator comments. * tui/tui-layout.c: Remove separator comments. * tui/tui-win.c: Remove separator comments. * tui/tui-wingeneral.c: Remove separator comments. Diff: --- gdb/ChangeLog | 7 +++++++ gdb/tui/tui-data.c | 20 -------------------- gdb/tui/tui-layout.c | 11 ----------- gdb/tui/tui-win.c | 15 --------------- gdb/tui/tui-wingeneral.c | 9 --------- 5 files changed, 7 insertions(+), 55 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ba434dd..8f69dc5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2019-09-20 Tom Tromey <tom@tromey.com> + * tui/tui-data.c: Remove separator comments. + * tui/tui-layout.c: Remove separator comments. + * tui/tui-win.c: Remove separator comments. + * tui/tui-wingeneral.c: Remove separator comments. + +2019-09-20 Tom Tromey <tom@tromey.com> + * tui/tui.h (strcat_to_buf): Don't declare. * tui/tui.c (strcat_to_buf): Remove. diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index c14b171..748d897 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -27,34 +27,19 @@ #include "tui/tui-winsource.h" #include "gdb_curses.h" -/**************************** -** GLOBAL DECLARATIONS -****************************/ struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; -/*************************** -** Private data -****************************/ static int term_height, term_width; static struct tui_win_info *win_with_focus = NULL; static bool win_resized = false; - -/********************************* -** PUBLIC FUNCTIONS -**********************************/ - int tui_win_is_auxiliary (enum tui_win_type win_type) { return (win_type > MAX_MAJOR_WINDOWS); } -/****************************************** -** ACCESSORS & MUTATORS FOR PRIVATE DATA -******************************************/ - /* Answer a whether the terminal window has been resized or not. */ bool tui_win_resized () @@ -119,11 +104,6 @@ tui_set_term_width_to (int w) } -/***************************** -** OTHER PUBLIC FUNCTIONS -*****************************/ - - /* Answer the next window in the list, cycling back to the top if necessary. */ struct tui_win_info * diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 03115a7..0f3e8d9 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -40,9 +40,6 @@ #include "tui/tui-source.h" #include "gdb_curses.h" -/******************************* -** Static Local Decls -********************************/ static void show_layout (enum tui_layout_type); static void show_source_or_disasm_and_command (enum tui_layout_type); static void show_source_command (void); @@ -64,9 +61,6 @@ tui_current_layout (void) return current_layout; } -/*************************************** -** DEFINITIONS -***************************************/ /* Show the screen layout defined. */ static void @@ -338,11 +332,6 @@ Layout names are:\n\ } -/************************* -** STATIC LOCAL FUNCTIONS -**************************/ - - /* Function to set the layout to SRC, ASM, SPLIT, NEXT, PREV, DATA, or REGS. */ static void diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 8963da2..aecb779 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -53,9 +53,6 @@ #include <signal.h> -/******************************* -** Static Local Decls -********************************/ static enum tui_status tui_adjust_win_heights (struct tui_win_info *, int); static int new_height_ok (struct tui_win_info *, int); @@ -71,16 +68,9 @@ static void parse_scrolling_args (const char *, int *); -/*************************************** -** DEFINITIONS -***************************************/ #define WIN_HEIGHT_USAGE "Usage: winheight WINDOW-NAME [+ | -] NUM-LINES\n" #define FOCUS_USAGE "Usage: focus [WINDOW-NAME | next | prev]\n" -/*************************************** -** PUBLIC FUNCTIONS -***************************************/ - #ifndef ACS_LRCORNER # define ACS_LRCORNER '+' #endif @@ -720,11 +710,6 @@ tui_initialize_win (void) } -/************************* -** STATIC LOCAL FUNCTIONS -**************************/ - - static void tui_scroll_forward_command (const char *arg, int from_tty) { diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 235c17c..713059d 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -28,10 +28,6 @@ #include "gdb_curses.h" -/*********************** -** PUBLIC FUNCTIONS -***********************/ - /* See tui-data.h. */ void @@ -191,8 +187,3 @@ tui_refresh_all () if (locator->is_visible ()) locator->refresh_window (); } - - -/********************************* -** Local Static Functions -*********************************/
reply other threads:[~2019-09-20 20:07 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190920200713.70764.qmail@sourceware.org \ --to=tromey@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).