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] Move some defines to tui-stack.c Date: Tue, 20 Aug 2019 22:50:00 -0000 [thread overview] Message-ID: <20190820225015.61724.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2 commit 973961bda3cdf79e4c0768a5a5fd4eb6ab4acad2 Author: Tom Tromey <tom@tromey.com> Date: Sat Jul 13 18:29:57 2019 -0600 Move some defines to tui-stack.c Some #defines in tui-data.h are only used in tui-stack.c, so move them there. 2019-08-20 Tom Tromey <tom@tromey.com> * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) (MAX_PID_WIDTH): Move to tui-stack.c. * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) (MAX_PID_WIDTH): Move from tui-data.h. Diff: --- gdb/ChangeLog | 9 +++++++++ gdb/tui/tui-data.h | 11 ----------- gdb/tui/tui-stack.c | 12 ++++++++++++ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e65b84d..ea22847 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 2019-08-20 Tom Tromey <tom@tromey.com> + * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) + (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) + (MAX_PID_WIDTH): Move to tui-stack.c. + * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX) + (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH) + (MAX_PID_WIDTH): Move from tui-data.h. + +2019-08-20 Tom Tromey <tom@tromey.com> + * tui/tui-wingeneral.h (tui_make_window): Don't declare. * tui/tui-wingeneral.c (box_win): Change type of win_info. (box_win): Update. diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index a5ff5e2..dda15d1 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -108,19 +108,8 @@ public: #define MIN_CMD_WIN_HEIGHT 3 /* Strings to display in the TUI status line. */ -#define PROC_PREFIX "In: " -#define LINE_PREFIX "L" -#define PC_PREFIX "PC: " #define SINGLE_KEY "(SingleKey)" -/* Minimum/Maximum length of some fields displayed in the TUI status - line. */ -#define MIN_LINE_WIDTH 4 /* Use at least 4 digits for line - numbers. */ -#define MIN_PROC_WIDTH 12 -#define MAX_TARGET_WIDTH 10 -#define MAX_PID_WIDTH 19 - /* The kinds of layouts available. */ enum tui_layout_type { diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 001133c..0d41133 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -39,6 +39,18 @@ #include "gdb_curses.h" +#define PROC_PREFIX "In: " +#define LINE_PREFIX "L" +#define PC_PREFIX "PC: " + +/* Minimum/Maximum length of some fields displayed in the TUI status + line. */ +#define MIN_LINE_WIDTH 4 /* Use at least 4 digits for line + numbers. */ +#define MIN_PROC_WIDTH 12 +#define MAX_TARGET_WIDTH 10 +#define MAX_PID_WIDTH 19 + static struct tui_locator_window _locator; /* Get a printable name for the function at the address.
reply other threads:[~2019-08-20 22:50 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=20190820225015.61724.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).