diff options
Diffstat (limited to 'src/nvim/api')
-rw-r--r-- | src/nvim/api/autocmd.h | 4 | ||||
-rw-r--r-- | src/nvim/api/buffer.h | 4 | ||||
-rw-r--r-- | src/nvim/api/command.h | 4 | ||||
-rw-r--r-- | src/nvim/api/deprecated.h | 4 | ||||
-rw-r--r-- | src/nvim/api/extmark.h | 4 | ||||
-rw-r--r-- | src/nvim/api/keysets.h | 5 | ||||
-rw-r--r-- | src/nvim/api/options.h | 5 | ||||
-rw-r--r-- | src/nvim/api/private/converter.h | 5 | ||||
-rw-r--r-- | src/nvim/api/private/defs.h | 5 | ||||
-rw-r--r-- | src/nvim/api/private/dispatch.h | 5 | ||||
-rw-r--r-- | src/nvim/api/private/helpers.h | 5 | ||||
-rw-r--r-- | src/nvim/api/private/validate.h | 5 | ||||
-rw-r--r-- | src/nvim/api/tabpage.h | 4 | ||||
-rw-r--r-- | src/nvim/api/ui.h | 4 | ||||
-rw-r--r-- | src/nvim/api/ui_events.in.h | 4 | ||||
-rw-r--r-- | src/nvim/api/vim.h | 4 | ||||
-rw-r--r-- | src/nvim/api/vimscript.h | 4 | ||||
-rw-r--r-- | src/nvim/api/win_config.h | 4 | ||||
-rw-r--r-- | src/nvim/api/window.h | 4 |
19 files changed, 19 insertions, 64 deletions
diff --git a/src/nvim/api/autocmd.h b/src/nvim/api/autocmd.h index 3273ca5759..8aefd45793 100644 --- a/src/nvim/api/autocmd.h +++ b/src/nvim/api/autocmd.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_AUTOCMD_H -#define NVIM_API_AUTOCMD_H +#pragma once #include <stdint.h> @@ -9,4 +8,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/autocmd.h.generated.h" #endif -#endif // NVIM_API_AUTOCMD_H diff --git a/src/nvim/api/buffer.h b/src/nvim/api/buffer.h index db58239af8..0f18f5368e 100644 --- a/src/nvim/api/buffer.h +++ b/src/nvim/api/buffer.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_BUFFER_H -#define NVIM_API_BUFFER_H +#pragma once #include <lauxlib.h> @@ -10,4 +9,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/buffer.h.generated.h" #endif -#endif // NVIM_API_BUFFER_H diff --git a/src/nvim/api/command.h b/src/nvim/api/command.h index f16bd0acde..78af5cbf64 100644 --- a/src/nvim/api/command.h +++ b/src/nvim/api/command.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_COMMAND_H -#define NVIM_API_COMMAND_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -9,4 +8,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/command.h.generated.h" #endif -#endif // NVIM_API_COMMAND_H diff --git a/src/nvim/api/deprecated.h b/src/nvim/api/deprecated.h index 79095167e1..5541a4dac3 100644 --- a/src/nvim/api/deprecated.h +++ b/src/nvim/api/deprecated.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_DEPRECATED_H -#define NVIM_API_DEPRECATED_H +#pragma once #include <stdint.h> @@ -8,4 +7,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/deprecated.h.generated.h" #endif -#endif // NVIM_API_DEPRECATED_H diff --git a/src/nvim/api/extmark.h b/src/nvim/api/extmark.h index 7c300350e1..88f1e9e8ad 100644 --- a/src/nvim/api/extmark.h +++ b/src/nvim/api/extmark.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_EXTMARK_H -#define NVIM_API_EXTMARK_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -14,4 +13,3 @@ EXTERN handle_T next_namespace_id INIT( = 1); #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/extmark.h.generated.h" #endif -#endif // NVIM_API_EXTMARK_H diff --git a/src/nvim/api/keysets.h b/src/nvim/api/keysets.h index 0da2239847..e59eda5686 100644 --- a/src/nvim/api/keysets.h +++ b/src/nvim/api/keysets.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_KEYSETS_H -#define NVIM_API_KEYSETS_H +#pragma once #include "nvim/api/private/defs.h" @@ -314,5 +313,3 @@ typedef struct { typedef struct { Boolean output; } Dict(exec_opts); - -#endif // NVIM_API_KEYSETS_H diff --git a/src/nvim/api/options.h b/src/nvim/api/options.h index 7be72d3708..79aeead205 100644 --- a/src/nvim/api/options.h +++ b/src/nvim/api/options.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_OPTIONS_H -#define NVIM_API_OPTIONS_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -8,5 +7,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/options.h.generated.h" #endif - -#endif // NVIM_API_OPTIONS_H diff --git a/src/nvim/api/private/converter.h b/src/nvim/api/private/converter.h index 28ae71983b..47e1d5a6bb 100644 --- a/src/nvim/api/private/converter.h +++ b/src/nvim/api/private/converter.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_PRIVATE_CONVERTER_H -#define NVIM_API_PRIVATE_CONVERTER_H +#pragma once #include "nvim/api/private/defs.h" #include "nvim/eval/typval_defs.h" @@ -7,5 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/private/converter.h.generated.h" #endif - -#endif // NVIM_API_PRIVATE_CONVERTER_H diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index b467ce75a9..067592ed4e 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_PRIVATE_DEFS_H -#define NVIM_API_PRIVATE_DEFS_H +#pragma once #include <stdbool.h> #include <stdint.h> @@ -139,5 +138,3 @@ typedef struct { } KeySetLink; typedef KeySetLink *(*FieldHashfn)(const char *str, size_t len); - -#endif // NVIM_API_PRIVATE_DEFS_H diff --git a/src/nvim/api/private/dispatch.h b/src/nvim/api/private/dispatch.h index 78fcf88d7b..49332bfecc 100644 --- a/src/nvim/api/private/dispatch.h +++ b/src/nvim/api/private/dispatch.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_PRIVATE_DISPATCH_H -#define NVIM_API_PRIVATE_DISPATCH_H +#pragma once #include <stdbool.h> #include <stdint.h> @@ -30,5 +29,3 @@ extern const MsgpackRpcRequestHandler method_handlers[]; # include "api/private/dispatch_wrappers.h.generated.h" # include "keysets_defs.generated.h" #endif - -#endif // NVIM_API_PRIVATE_DISPATCH_H diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 8911e145e7..82c24b7c65 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_PRIVATE_HELPERS_H -#define NVIM_API_PRIVATE_HELPERS_H +#pragma once #include <stdbool.h> #include <stddef.h> @@ -199,5 +198,3 @@ typedef struct { current_channel_id = save_channel_id; \ current_sctx = save_current_sctx; \ } while (0); - -#endif // NVIM_API_PRIVATE_HELPERS_H diff --git a/src/nvim/api/private/validate.h b/src/nvim/api/private/validate.h index 089b8d2f9c..29ca6242f3 100644 --- a/src/nvim/api/private/validate.h +++ b/src/nvim/api/private/validate.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_PRIVATE_VALIDATE_H -#define NVIM_API_PRIVATE_VALIDATE_H +#pragma once #include <stdbool.h> #include <stddef.h> @@ -95,5 +94,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/private/validate.h.generated.h" #endif - -#endif // NVIM_API_PRIVATE_VALIDATE_H diff --git a/src/nvim/api/tabpage.h b/src/nvim/api/tabpage.h index 2689cf6ae6..b9357df10a 100644 --- a/src/nvim/api/tabpage.h +++ b/src/nvim/api/tabpage.h @@ -1,9 +1,7 @@ -#ifndef NVIM_API_TABPAGE_H -#define NVIM_API_TABPAGE_H +#pragma once #include "nvim/api/private/defs.h" #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/tabpage.h.generated.h" #endif -#endif // NVIM_API_TABPAGE_H diff --git a/src/nvim/api/ui.h b/src/nvim/api/ui.h index b3fe0fa2bb..0101e5d31b 100644 --- a/src/nvim/api/ui.h +++ b/src/nvim/api/ui.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_UI_H -#define NVIM_API_UI_H +#pragma once #include <stdint.h> @@ -11,4 +10,3 @@ # include "api/ui.h.generated.h" # include "ui_events_remote.h.generated.h" #endif -#endif // NVIM_API_UI_H diff --git a/src/nvim/api/ui_events.in.h b/src/nvim/api/ui_events.in.h index 6ca5024a04..bda0c72423 100644 --- a/src/nvim/api/ui_events.in.h +++ b/src/nvim/api/ui_events.in.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_UI_EVENTS_IN_H -#define NVIM_API_UI_EVENTS_IN_H +#pragma once // This file is not compiled, just parsed for definitions #ifdef INCLUDE_GENERATED_DECLARATIONS @@ -170,4 +169,3 @@ void msg_history_clear(void) void error_exit(Integer status) FUNC_API_SINCE(12); -#endif // NVIM_API_UI_EVENTS_IN_H diff --git a/src/nvim/api/vim.h b/src/nvim/api/vim.h index c305749ba0..81cb563aaf 100644 --- a/src/nvim/api/vim.h +++ b/src/nvim/api/vim.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_VIM_H -#define NVIM_API_VIM_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -7,4 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/vim.h.generated.h" #endif -#endif // NVIM_API_VIM_H diff --git a/src/nvim/api/vimscript.h b/src/nvim/api/vimscript.h index 99ef43454b..ee056999ed 100644 --- a/src/nvim/api/vimscript.h +++ b/src/nvim/api/vimscript.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_VIMSCRIPT_H -#define NVIM_API_VIMSCRIPT_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -7,4 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/vimscript.h.generated.h" #endif -#endif // NVIM_API_VIMSCRIPT_H diff --git a/src/nvim/api/win_config.h b/src/nvim/api/win_config.h index 426a74fb3e..f9befa6806 100644 --- a/src/nvim/api/win_config.h +++ b/src/nvim/api/win_config.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_WIN_CONFIG_H -#define NVIM_API_WIN_CONFIG_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -8,4 +7,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/win_config.h.generated.h" #endif -#endif // NVIM_API_WIN_CONFIG_H diff --git a/src/nvim/api/window.h b/src/nvim/api/window.h index 046d64c1a4..1a3da7be75 100644 --- a/src/nvim/api/window.h +++ b/src/nvim/api/window.h @@ -1,5 +1,4 @@ -#ifndef NVIM_API_WINDOW_H -#define NVIM_API_WINDOW_H +#pragma once #include "nvim/api/keysets.h" #include "nvim/api/private/defs.h" @@ -7,4 +6,3 @@ #ifdef INCLUDE_GENERATED_DECLARATIONS # include "api/window.h.generated.h" #endif -#endif // NVIM_API_WINDOW_H |