Skip to content

Commit

Permalink
Tiny formatting corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
stianhoiland committed Feb 29, 2024
1 parent 27dd7cb commit b5ac332
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cmdtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ typedef struct config config_t;
typedef unsigned long vkcode;

struct title {
wchar_t text[(MAX_PATH*2)+1];
wchar_t text[(MAX_PATH * 2) + 1];
int length;
bool ok;
};

struct path {
wchar_t text[(MAX_PATH*1)+1];
wchar_t text[(MAX_PATH * 1) + 1];
unsigned long length; // QueryFullProcessImageNameW() wants 'unsigned long'
bool ok;
};
Expand Down Expand Up @@ -162,7 +162,7 @@ static void SetForegroundWindow_ALTHACK(void *hwnd) {
static title_t title(void *hwnd) {
title_t title = {
.text = {0},
.length = countof(((title_t*)0)->text), // BUG / TODO Wait, does size need -1 here or bellow?
.length = countof(((title_t *)0)->text), // BUG / TODO Wait, does size need -1 here or bellow?
.ok = {0}
};
title.length = GetWindowTextLengthW(hwnd); // Size [in characters!]
Expand Down Expand Up @@ -554,7 +554,7 @@ static bool filter(void *hwnd) {
}


static void add(windows_t* windows, void *hwnd) {
static void add(windows_t *windows, void *hwnd) {
path_t exe_path = path(hwnd);

if (!exe_path.ok) {
Expand Down Expand Up @@ -1089,7 +1089,7 @@ static bool get_key(keyboard_t *keyboard, vkcode key) {
return BITTEST(keyboard->keys, key);
}

static bool set_key(keyboard_t* keyboard, vkcode key, bool down) {
static bool set_key(keyboard_t *keyboard, vkcode key, bool down) {
bool already_down = get_key(keyboard, key);
if (down) {
BITSET(keyboard->keys, key);
Expand Down

0 comments on commit b5ac332

Please sign in to comment.