From 5f03a1eaabfc8de2b3a9c666fcd604763f41e152 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 20 Oct 2023 15:10:33 +0200 Subject: build(lint): remove unnecessary clint.py rules Uncrustify is the source of truth where possible. Remove any redundant checks from clint.py. --- src/nvim/os/pty_conpty_win.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/os/pty_conpty_win.h') diff --git a/src/nvim/os/pty_conpty_win.h b/src/nvim/os/pty_conpty_win.h index 0c25a5970e..c47857bdd9 100644 --- a/src/nvim/os/pty_conpty_win.h +++ b/src/nvim/os/pty_conpty_win.h @@ -8,10 +8,10 @@ # define HPCON VOID * #endif -extern HRESULT (WINAPI *pCreatePseudoConsole) // NOLINT(whitespace/parens) +extern HRESULT(WINAPI *pCreatePseudoConsole) // NOLINT(whitespace/parens) (COORD, HANDLE, HANDLE, DWORD, HPCON *); -extern HRESULT (WINAPI *pResizePseudoConsole)(HPCON, COORD); -extern void (WINAPI *pClosePseudoConsole)(HPCON); +extern HRESULT(WINAPI *pResizePseudoConsole)(HPCON, COORD); +extern void(WINAPI *pClosePseudoConsole)(HPCON); typedef struct conpty { HPCON pty; -- cgit From 4f8941c1a5f1ef6caa410feeb52e343db22763ce Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 10 Nov 2023 12:23:42 +0100 Subject: refactor: replace manual header guards with #pragma once It is less error-prone than manually defining header guards. Pretty much all compilers support it even if it's not part of the C standard. --- src/nvim/os/pty_conpty_win.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/os/pty_conpty_win.h') diff --git a/src/nvim/os/pty_conpty_win.h b/src/nvim/os/pty_conpty_win.h index c47857bdd9..aa04cd1e84 100644 --- a/src/nvim/os/pty_conpty_win.h +++ b/src/nvim/os/pty_conpty_win.h @@ -1,5 +1,4 @@ -#ifndef NVIM_OS_PTY_CONPTY_WIN_H -#define NVIM_OS_PTY_CONPTY_WIN_H +#pragma once #include "klib/kvec.h" #include "nvim/os/input.h" @@ -21,5 +20,3 @@ typedef struct conpty { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "os/pty_conpty_win.h.generated.h" #endif - -#endif // NVIM_OS_PTY_CONPTY_WIN_H -- cgit