mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 20:08:17 +00:00

Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
21 lines
521 B
C
21 lines
521 B
C
#ifndef NVIM_DIFF_H
|
|
#define NVIM_DIFF_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/ex_cmds_defs.h"
|
|
#include "nvim/macros.h"
|
|
#include "nvim/pos.h"
|
|
|
|
// Value set from 'diffopt'.
|
|
EXTERN int diff_context INIT(= 6); // context for folds
|
|
EXTERN int diff_foldcolumn INIT(= 2); // 'foldcolumn' for diff mode
|
|
EXTERN bool diff_need_scrollbind INIT(= false);
|
|
|
|
EXTERN bool need_diff_redraw INIT(= false); // need to call diff_redraw()
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "diff.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_DIFF_H
|