aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fold.h
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2015-03-21 20:34:35 +0100
committerEliseo Martínez <eliseomarmol@gmail.com>2015-04-07 12:56:28 +0200
commitfa2fcf13aaf67919fdcfb9c736b883aba73c3cc2 (patch)
tree5d0b585e88afc41294a7d41032071098b2a1965b /src/nvim/fold.h
parentc5d7fa615d5c091345ebe2e3472404ef04feda2e (diff)
downloadrneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.tar.gz
rneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.tar.bz2
rneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.zip
Enable -Wconversion: fold.c.
Refactor summary: - foldinfo_T.fi_lnum: int --> linenr_T Reorder field for optimal packing. - foldAddMarker(..., markerlen): int --> size_t * foldstartmarkerlen: int --> size_t - foldDelMarker(..., markerlen): int --> size_t * foldendmarkerlen: int --> size_t Helped-by: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'src/nvim/fold.h')
-rw-r--r--src/nvim/fold.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/fold.h b/src/nvim/fold.h
index 1cbd7af5da..2ff10c0e91 100644
--- a/src/nvim/fold.h
+++ b/src/nvim/fold.h
@@ -1,14 +1,16 @@
#ifndef NVIM_FOLD_H
#define NVIM_FOLD_H
+#include "nvim/pos.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_lnum; /* line number where fold starts */
int fi_low_level; /* lowest fold level that starts in the same
line */
} foldinfo_T;