1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 01:35:06 +01:00

Binpack function arguments together

Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
This commit is contained in:
clang-format
2018-07-21 13:51:54 +02:00
committed by Hielke Morsink
parent 95ce592579
commit b02dfdbc93
240 changed files with 20249 additions and 140534 deletions

View File

@@ -95,13 +95,8 @@ static int32_t calling_widget = 0;
static int32_t _maxInputLength;
void window_text_input_open(
rct_window* call_w,
rct_widgetindex call_widget,
rct_string_id title,
rct_string_id description,
rct_string_id existing_text,
uintptr_t existing_args,
int32_t maxLength)
rct_window* call_w, rct_widgetindex call_widget, rct_string_id title, rct_string_id description,
rct_string_id existing_text, uintptr_t existing_args, int32_t maxLength)
{
// Get the raw string
utf8 buffer[Util::CountOf(text_input)]{};
@@ -113,12 +108,8 @@ void window_text_input_open(
}
void window_text_input_raw_open(
rct_window* call_w,
rct_widgetindex call_widget,
rct_string_id title,
rct_string_id description,
const_utf8string existing_text,
int32_t maxLength)
rct_window* call_w, rct_widgetindex call_widget, rct_string_id title, rct_string_id description,
const_utf8string existing_text, int32_t maxLength)
{
_maxInputLength = maxLength;