From 6a273af10517d1f7e4ea85635f1d25a9158adeb5 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 13 May 2023 10:40:53 +0800 Subject: refactor: remove typval.h from most header files (#23601) Because typval_defs.h is enough for most of them. --- src/nvim/viml/parser/expressions.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/nvim/viml/parser/expressions.h') diff --git a/src/nvim/viml/parser/expressions.h b/src/nvim/viml/parser/expressions.h index 6fe6a784a0..245f4c500c 100644 --- a/src/nvim/viml/parser/expressions.h +++ b/src/nvim/viml/parser/expressions.h @@ -5,7 +5,6 @@ #include #include -#include "nvim/eval/typval.h" #include "nvim/eval/typval_defs.h" #include "nvim/types.h" #include "nvim/viml/parser/parser.h" -- 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/viml/parser/expressions.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/nvim/viml/parser/expressions.h') diff --git a/src/nvim/viml/parser/expressions.h b/src/nvim/viml/parser/expressions.h index 245f4c500c..cc0aeff322 100644 --- a/src/nvim/viml/parser/expressions.h +++ b/src/nvim/viml/parser/expressions.h @@ -1,5 +1,4 @@ -#ifndef NVIM_VIML_PARSER_EXPRESSIONS_H -#define NVIM_VIML_PARSER_EXPRESSIONS_H +#pragma once #include #include @@ -387,5 +386,3 @@ extern const char *const expr_asgn_type_tab[]; #ifdef INCLUDE_GENERATED_DECLARATIONS # include "viml/parser/expressions.h.generated.h" #endif - -#endif // NVIM_VIML_PARSER_EXPRESSIONS_H -- cgit From 6c14ae6bfaf51415b555e9a6b85d1d280976358d Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 27 Nov 2023 20:27:32 +0100 Subject: refactor: rename types.h to types_defs.h --- src/nvim/viml/parser/expressions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/viml/parser/expressions.h') diff --git a/src/nvim/viml/parser/expressions.h b/src/nvim/viml/parser/expressions.h index cc0aeff322..94287ea4e1 100644 --- a/src/nvim/viml/parser/expressions.h +++ b/src/nvim/viml/parser/expressions.h @@ -5,7 +5,7 @@ #include #include "nvim/eval/typval_defs.h" -#include "nvim/types.h" +#include "nvim/types_defs.h" #include "nvim/viml/parser/parser.h" struct expr_ast_node; -- cgit