format: update .clang-format

This commit is contained in:
beriff
2026-03-05 17:55:11 +07:00
parent eefd95e4d2
commit f001b90745
12 changed files with 93 additions and 91 deletions

View File

@@ -2,4 +2,7 @@ BasedOnStyle: LLVM
ColumnLimit: 80 ColumnLimit: 80
BreakBeforeBraces: Attach BreakBeforeBraces: Attach
IndentWidth: 4 IndentWidth: 4
TabWidth: 4
ContinuationIndentWidth: 4 ContinuationIndentWidth: 4
DerivePointerAlignment: false
PointerAlignment: Left

View File

@@ -19,8 +19,7 @@ static void activate(GtkApplication *app, gpointer user_data) {
VektorWidgetState* widget_state = VektorWidgetState* widget_state =
(VektorWidgetState*)malloc(sizeof(VektorWidgetState)); (VektorWidgetState*)malloc(sizeof(VektorWidgetState));
vektor_uictrl_init(app, widget_state); vektor_uictrl_init(app, widget_state);
VektorAppState *app_state = VektorAppState* app_state = (VektorAppState*)malloc(sizeof(VektorAppState));
(VektorAppState *)malloc(sizeof(VektorAppState));
vektor_appstate_new(widget_state, app_state); vektor_appstate_new(widget_state, app_state);
g_signal_connect(widget_state->window, "map", G_CALLBACK(on_map), g_signal_connect(widget_state->window, "map", G_CALLBACK(on_map),