Mercurial > vim
comparison src/memline.c @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | 501f46f7644c |
children | e311187347c1 |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
2542 if (curbuf->b_ml.ml_line_lnum != 0) | 2542 if (curbuf->b_ml.ml_line_lnum != 0) |
2543 ml_flush_line(curbuf); | 2543 ml_flush_line(curbuf); |
2544 return ml_append_int(curbuf, lnum, line, len, newfile, FALSE); | 2544 return ml_append_int(curbuf, lnum, line, len, newfile, FALSE); |
2545 } | 2545 } |
2546 | 2546 |
2547 #if defined(FEAT_SPELL) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \ | 2547 #if defined(FEAT_SPELL) || defined(FEAT_QUICKFIX) || defined(PROTO) |
2548 || defined(PROTO) | |
2549 /* | 2548 /* |
2550 * Like ml_append() but for an arbitrary buffer. The buffer must already have | 2549 * Like ml_append() but for an arbitrary buffer. The buffer must already have |
2551 * a memline. | 2550 * a memline. |
2552 */ | 2551 */ |
2553 int | 2552 int |
3110 | 3109 |
3111 return OK; | 3110 return OK; |
3112 } | 3111 } |
3113 | 3112 |
3114 /* | 3113 /* |
3115 * Delete line 'lnum' in the current buffer. | 3114 * Delete line "lnum" in the current buffer. |
3115 * When "message" is TRUE may give a "No lines in buffer" message. | |
3116 * | 3116 * |
3117 * Check: The caller of this function should probably also call | 3117 * Check: The caller of this function should probably also call |
3118 * deleted_lines() after this. | 3118 * deleted_lines() after this. |
3119 * | 3119 * |
3120 * return FAIL for failure, OK otherwise | 3120 * return FAIL for failure, OK otherwise |