From c8a57e4f46e9a3ba452f396bf562ec797e043bdd Mon Sep 17 00:00:00 2001 From: 0scar Date: Sat, 28 Dec 2024 21:23:11 +0100 Subject: Align array of structures --- .clang-format | 8 +------- status.c | 7 ++++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.clang-format b/.clang-format index bd2d85f..d936fc3 100644 --- a/.clang-format +++ b/.clang-format @@ -3,7 +3,7 @@ Language: Cpp # BasedOnStyle: LLVM AccessModifierOffset: -2 AlignAfterOpenBracket: Align -AlignArrayOfStructures: None +AlignArrayOfStructures: Right AlignConsecutiveAssignments: Enabled: true AcrossEmptyLines: true @@ -156,11 +156,6 @@ MacroBlockBegin: '' MacroBlockEnd: '' MaxEmptyLinesToKeep: 1 NamespaceIndentation: None -ObjCBinPackProtocolList: Auto -ObjCBlockIndentWidth: 2 -ObjCBreakBeforeNestedBlockParam: true -ObjCSpaceAfterProperty: false -ObjCSpaceBeforeProtocolList: true PackConstructorInitializers: BinPack PenaltyBreakAssignment: 2 PenaltyBreakBeforeFirstCallParameter: 19 @@ -235,7 +230,6 @@ StatementMacros: - QT_REQUIRE_VERSION TabWidth: 8 UseTab: Never -VerilogBreakBetweenInstancePorts: true WhitespaceSensitiveMacros: - BOOST_PP_STRINGIZE - CF_SWIFT_NAME diff --git a/status.c b/status.c index 90ec3d3..aadc632 100644 --- a/status.c +++ b/status.c @@ -227,10 +227,11 @@ get_net_link_status(char* buf) { } static struct element statusbar[] = { + /* Add status elements here */ - {.f = get_net_link_status, .fire_interval = {5, 0}, .fire_previous = {0}, .buf = {0}}, - {.f = get_all_bat_status, .fire_interval = {60, 0}, .fire_previous = {0}, .buf = {0}}, - {.f = date, .fire_interval = {2, 500000}, .fire_previous = {0}, .buf = {0}}, + {get_net_link_status, {5, 0}, {0}, {0}}, + { get_all_bat_status, {60, 0}, {0}, {0}}, + { date, {2, 500000}, {0}, {0}}, }; -- cgit v1.3