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/terminal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/nvim/terminal.h') diff --git a/src/nvim/terminal.h b/src/nvim/terminal.h index a83929e224..0704423f1f 100644 --- a/src/nvim/terminal.h +++ b/src/nvim/terminal.h @@ -1,5 +1,4 @@ -#ifndef NVIM_TERMINAL_H -#define NVIM_TERMINAL_H +#pragma once #include #include @@ -23,4 +22,3 @@ typedef struct { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "terminal.h.generated.h" #endif -#endif // NVIM_TERMINAL_H -- cgit From 574d25642fc9ca65b396633aeab6e2d32778b642 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 27 Nov 2023 17:21:58 +0800 Subject: refactor: move Arena and ArenaMem to memory_defs.h (#26240) --- src/nvim/terminal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/terminal.h') diff --git a/src/nvim/terminal.h b/src/nvim/terminal.h index 0704423f1f..66cad7ee7a 100644 --- a/src/nvim/terminal.h +++ b/src/nvim/terminal.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include @@ -9,7 +8,7 @@ typedef void (*terminal_write_cb)(char *buffer, size_t size, void *data); typedef void (*terminal_resize_cb)(uint16_t width, uint16_t height, void *data); typedef void (*terminal_close_cb)(void *data); -#include "nvim/buffer_defs.h" +#include "nvim/buffer_defs.h" // IWYU pragma: keep typedef struct { void *data; // PTY process channel -- cgit