Revert "Apply coding style"

This reverts commit 9b55f2dec0.

Sorting the includes creates some problems.
This commit is contained in:
Michael Vetter
2020-07-07 13:53:30 +02:00
parent 28fde3cd01
commit a4cadf78fa
214 changed files with 17576 additions and 19566 deletions

View File

@@ -44,8 +44,7 @@
#include "config/preferences.h"
int
_screen_line_row(int win_pos, int mainwin_pos)
{
_screen_line_row(int win_pos, int mainwin_pos) {
int wrows = getmaxy(stdscr);
if (win_pos == 1) {
@@ -55,7 +54,7 @@ _screen_line_row(int win_pos, int mainwin_pos)
if (win_pos == 2) {
int row = 1;
if (mainwin_pos == 1) {
row = wrows - 3;
row = wrows-3;
}
return row;
@@ -64,19 +63,19 @@ _screen_line_row(int win_pos, int mainwin_pos)
if (win_pos == 3) {
int row = 2;
if (mainwin_pos == 1 || mainwin_pos == 2) {
row = wrows - 2;
row = wrows-2;
}
return row;
}
return wrows - 1;
return wrows-1;
}
int
screen_titlebar_row(void)
{
ProfWinPlacement* placement = prefs_get_win_placement();
ProfWinPlacement *placement = prefs_get_win_placement();
int row = _screen_line_row(placement->titlebar_pos, placement->mainwin_pos);
prefs_free_win_placement(placement);
@@ -86,7 +85,7 @@ screen_titlebar_row(void)
int
screen_statusbar_row(void)
{
ProfWinPlacement* placement = prefs_get_win_placement();
ProfWinPlacement *placement = prefs_get_win_placement();
int row = _screen_line_row(placement->statusbar_pos, placement->mainwin_pos);
prefs_free_win_placement(placement);
@@ -96,7 +95,7 @@ screen_statusbar_row(void)
int
screen_inputwin_row(void)
{
ProfWinPlacement* placement = prefs_get_win_placement();
ProfWinPlacement *placement = prefs_get_win_placement();
int row = _screen_line_row(placement->inputwin_pos, placement->mainwin_pos);
prefs_free_win_placement(placement);
@@ -106,8 +105,8 @@ screen_inputwin_row(void)
int
screen_mainwin_row_start(void)
{
ProfWinPlacement* placement = prefs_get_win_placement();
int row = placement->mainwin_pos - 1;
ProfWinPlacement *placement = prefs_get_win_placement();
int row = placement->mainwin_pos-1;
prefs_free_win_placement(placement);
return row;
@@ -116,7 +115,7 @@ screen_mainwin_row_start(void)
int
screen_mainwin_row_end(void)
{
ProfWinPlacement* placement = prefs_get_win_placement();
ProfWinPlacement *placement = prefs_get_win_placement();
int wrows = getmaxy(stdscr);
int row = wrows - (5 - placement->mainwin_pos);
prefs_free_win_placement(placement);