refactor(IWYU): fix includes for cmdhist.h (#26324)

This commit is contained in:
zeertzjq
2023-11-30 22:48:15 +08:00
committed by GitHub
parent 884a83049b
commit a6f26c86cb
16 changed files with 53 additions and 63 deletions

View File

@@ -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,8 +17,7 @@ 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 {