diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-15 00:19:44 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-15 00:19:44 +0000 |
commit | e5908723e599e3788a3fbceeef35804024a03af7 (patch) | |
tree | 430eb9a83e3edec1f52b027b8edbc092c1e1ec46 /gdb/tui/tui-data.c | |
parent | 8676c0493c4cd9793b684402ecf8775cc4f6b763 (diff) | |
download | gdb-e5908723e599e3788a3fbceeef35804024a03af7.zip gdb-e5908723e599e3788a3fbceeef35804024a03af7.tar.gz gdb-e5908723e599e3788a3fbceeef35804024a03af7.tar.bz2 |
2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
go at beginning of new line.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r-- | gdb/tui/tui-data.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 93fb1f2..e5268db 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -342,7 +342,8 @@ tui_next_win (struct tui_win_info *cur_win) type = cur_win->generic.type + 1; while (type != cur_win->generic.type && (next_win == NULL)) { - if (tui_win_list[type] && tui_win_list[type]->generic.is_visible) + if (tui_win_list[type] + && tui_win_list[type]->generic.is_visible) next_win = tui_win_list[type]; else { @@ -401,8 +402,8 @@ tui_partial_win_by_name (char *name) if (tui_win_list[i] != 0) { char *cur_name = tui_win_name (&tui_win_list[i]->generic); - if (strlen (name) <= strlen (cur_name) && - strncmp (name, cur_name, strlen (name)) == 0) + if (strlen (name) <= strlen (cur_name) + && strncmp (name, cur_name, strlen (name)) == 0) win_info = tui_win_list[i]; } i++; |