remove pchar from macros.h

This commit is contained in:
aph 2014-04-02 20:20:33 +01:00 committed by Thiago de Arruda
parent 4c4880b69f
commit 0954e608ce
2 changed files with 8 additions and 5 deletions

View File

@ -10,11 +10,6 @@
* macros.h: macro definitions for often used code
*/
/*
* pchar(lp, c) - put character 'c' at position 'lp'
*/
#define pchar(lp, c) (*(ml_get_buf(curbuf, (lp).lnum, TRUE) + (lp).col) = (c))
/*
* Position comparisons
*/

View File

@ -1698,6 +1698,14 @@ static void mb_adjust_opend(oparg_T *oap)
}
}
/*
* Put character 'c' at position 'lp'
*/
static inline void pchar(pos_T lp, int c)
{
*(ml_get_buf(curbuf, lp.lnum, TRUE) + lp.col) = c;;
}
/*
* Replace a whole area with one character.
*/