refactor: eliminate cyclic includes

This commit is contained in:
dundargoc
2023-12-20 14:32:22 +01:00
committed by dundargoc
parent cc6a257c8c
commit 0c120307ca
61 changed files with 107 additions and 70 deletions

View File

@@ -1,13 +1,14 @@
#pragma once
#include "auto/config.h"
#include "nvim/os/os_defs.h" // IWYU pragma: keep
// Some defines from the old feature.h
#define SESSION_FILE "Session.vim"
#define MAX_MSG_HIST_LEN 200
#define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim"
#define RUNTIME_DIRNAME "runtime"
#include "auto/config.h"
enum {
/// length of a buffer to store a number in ASCII (64 bits binary + NUL)
NUMBUFLEN = 65,
@@ -56,8 +57,6 @@ typedef enum {
kCdCauseAuto, ///< On 'autochdir'.
} CdCause;
#include "nvim/os/os_defs.h" // IWYU pragma: keep
// return values for functions
#if !(defined(OK) && (OK == 1))
// OK already defined to 1 in MacOS X curses, skip this