Mercurial > vim
comparison src/fold.c @ 7807:1a5d34492798 v7.4.1200
commit https://github.com/vim/vim/commit/d99df423c559d85c17779b3685426c489554908c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 23:20:40 2016 +0100
patch 7.4.1200
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 23:30:06 +0100 |
parents | a1e71a01dbd6 |
children | 81794242a275 |
comparison
equal
deleted
inserted
replaced
7806:eb2af74e899a | 7807:1a5d34492798 |
---|---|
2140 | 2140 |
2141 /* Flag is set when redrawing is needed. */ | 2141 /* Flag is set when redrawing is needed. */ |
2142 static int fold_changed; | 2142 static int fold_changed; |
2143 | 2143 |
2144 /* Function declarations. {{{2 */ | 2144 /* Function declarations. {{{2 */ |
2145 static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)__ARGS((fline_T *)), linenr_T bot, int topflags); | 2145 static linenr_T foldUpdateIEMSRecurse(garray_T *gap, int level, linenr_T startlnum, fline_T *flp, void (*getlevel)(fline_T *), linenr_T bot, int topflags); |
2146 static int foldInsert(garray_T *gap, int i); | 2146 static int foldInsert(garray_T *gap, int i); |
2147 static void foldSplit(garray_T *gap, int i, linenr_T top, linenr_T bot); | 2147 static void foldSplit(garray_T *gap, int i, linenr_T top, linenr_T bot); |
2148 static void foldRemove(garray_T *gap, linenr_T top, linenr_T bot); | 2148 static void foldRemove(garray_T *gap, linenr_T top, linenr_T bot); |
2149 static void foldMerge(fold_T *fp1, garray_T *gap, fold_T *fp2); | 2149 static void foldMerge(fold_T *fp1, garray_T *gap, fold_T *fp2); |
2150 static void foldlevelIndent(fline_T *flp); | 2150 static void foldlevelIndent(fline_T *flp); |
2167 linenr_T bot; | 2167 linenr_T bot; |
2168 { | 2168 { |
2169 linenr_T start; | 2169 linenr_T start; |
2170 linenr_T end; | 2170 linenr_T end; |
2171 fline_T fline; | 2171 fline_T fline; |
2172 void (*getlevel)__ARGS((fline_T *)); | 2172 void (*getlevel)(fline_T *); |
2173 int level; | 2173 int level; |
2174 fold_T *fp; | 2174 fold_T *fp; |
2175 | 2175 |
2176 /* Avoid problems when being called recursively. */ | 2176 /* Avoid problems when being called recursively. */ |
2177 if (invalid_top != (linenr_T)0) | 2177 if (invalid_top != (linenr_T)0) |
2420 foldUpdateIEMSRecurse(gap, level, startlnum, flp, getlevel, bot, topflags) | 2420 foldUpdateIEMSRecurse(gap, level, startlnum, flp, getlevel, bot, topflags) |
2421 garray_T *gap; | 2421 garray_T *gap; |
2422 int level; | 2422 int level; |
2423 linenr_T startlnum; | 2423 linenr_T startlnum; |
2424 fline_T *flp; | 2424 fline_T *flp; |
2425 void (*getlevel)__ARGS((fline_T *)); | 2425 void (*getlevel)(fline_T *); |
2426 linenr_T bot; | 2426 linenr_T bot; |
2427 int topflags; /* flags used by containing fold */ | 2427 int topflags; /* flags used by containing fold */ |
2428 { | 2428 { |
2429 linenr_T ll; | 2429 linenr_T ll; |
2430 fold_T *fp = NULL; | 2430 fold_T *fp = NULL; |