aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cmdhist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/cmdhist.h')
-rw-r--r--src/nvim/cmdhist.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/cmdhist.h b/src/nvim/cmdhist.h
index cce0f92898..43be397cee 100644
--- a/src/nvim/cmdhist.h
+++ b/src/nvim/cmdhist.h
@@ -1,10 +1,10 @@
#pragma once
-#include "nvim/cmdexpand_defs.h" // IWYU pragma: export
+#include "nvim/cmdexpand_defs.h" // IWYU pragma: keep
#include "nvim/eval/typval_defs.h"
-#include "nvim/ex_cmds_defs.h" // IWYU pragma: export
-#include "nvim/os/time.h"
-#include "nvim/types_defs.h"
+#include "nvim/ex_cmds_defs.h" // IWYU pragma: keep
+#include "nvim/os/time_defs.h"
+#include "nvim/types_defs.h" // IWYU pragma: keep
/// Present history tables
typedef enum {
@@ -17,11 +17,10 @@ typedef enum {
HIST_DEBUG, ///< Debug commands.
} HistoryType;
-/// Number of history tables
-#define HIST_COUNT (HIST_DEBUG + 1)
+enum { HIST_COUNT = HIST_DEBUG + 1, }; ///< Number of history tables
/// History entry definition
-typedef struct hist_entry {
+typedef struct {
int hisnum; ///< Entry identifier number.
char *hisstr; ///< Actual entry, separator char after the NUL.
Timestamp timestamp; ///< Time when entry was added.