mirror of
https://github.com/neovim/neovim.git
synced 2026-02-05 03:51:21 +10: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.
31 lines
861 B
C
31 lines
861 B
C
#ifndef NVIM_FOLD_H
|
|
#define NVIM_FOLD_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "nvim/buffer_defs.h"
|
|
#include "nvim/garray.h"
|
|
#include "nvim/macros.h"
|
|
#include "nvim/pos.h"
|
|
#include "nvim/types.h"
|
|
|
|
// Info used to pass info about a fold from the fold-detection code to the
|
|
// code that displays the foldcolumn.
|
|
typedef struct foldinfo {
|
|
linenr_T fi_lnum; // line number where fold starts
|
|
int fi_level; // level of the fold; when this is zero the
|
|
// other fields are invalid
|
|
int fi_low_level; // lowest fold level that starts in the same
|
|
// line
|
|
linenr_T fi_lines;
|
|
} foldinfo_T;
|
|
|
|
#define FOLDINFO_INIT { 0, 0, 0, 0 }
|
|
|
|
EXTERN int disable_fold_update INIT(= 0);
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "fold.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_FOLD_H
|