-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update
.clang-format
, format C files
- Loading branch information
Showing
3 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
ColumnLimit: 100 | ||
BasedOnStyle: LLVM | ||
ColumnLimit: 120 | ||
UseTab: ForIndentation | ||
# Not actually 8, but makes clangd use tabs. | ||
# The indent width adapts to the configured tab width. | ||
IndentWidth: 8 | ||
UseTab: Always | ||
IndentWrappedFunctionNames: true | ||
AccessModifierOffset: 0 | ||
AlignAfterOpenBracket: BlockIndent | ||
PointerAlignment: Left | ||
AlignConsecutiveMacros: | ||
Enabled: true | ||
AcrossEmptyLines: true | ||
AcrossComments: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#pragma once | ||
|
||
#ifdef _WIN32 | ||
#include <windows.h> | ||
#include <wchar.h> | ||
#include <stdlib.h> | ||
#include <wchar.h> | ||
#include <windows.h> | ||
#elif __linux__ | ||
#include <gtk/gtk.h> | ||
#endif | ||
|
||
enum SetIconErrorCode { | ||
OK = 0, | ||
WINDOW_NOT_FOUND, | ||
ICON_NOT_FOUND, | ||
OS_UNSUPPORTED, | ||
OK = 0, | ||
WINDOW_NOT_FOUND, | ||
ICON_NOT_FOUND, | ||
OS_UNSUPPORTED, | ||
}; | ||
|
||
enum SetIconErrorCode set_icon(const void *ptr, const char *iconFilePath); | ||
enum SetIconErrorCode set_icon(const void* ptr, const char* iconFilePath); |