Mercurial > vim
comparison src/charset.c @ 27018:268f6a3511df v8.2.4038
patch 8.2.4038: various code not used when features are disabled
Commit: https://github.com/vim/vim/commit/748b308eebe8d8860888eb27da08333f175d547d
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sat Jan 8 12:41:16 2022 +0000
patch 8.2.4038: various code not used when features are disabled
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pell?, closes https://github.com/vim/vim/issues/9491)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 08 Jan 2022 13:45:04 +0100 |
parents | 1e3c49c09260 |
children | fb4c30606b4a |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
1474 while (VIM_ISWHITE(*p)) | 1474 while (VIM_ISWHITE(*p)) |
1475 ++p; | 1475 ++p; |
1476 return p; | 1476 return p; |
1477 } | 1477 } |
1478 | 1478 |
1479 #if defined(FEAT_EVAL) || defined(PROTO) | |
1479 /* | 1480 /* |
1480 * skip over ' ', '\t' and '\n'. | 1481 * skip over ' ', '\t' and '\n'. |
1481 */ | 1482 */ |
1482 char_u * | 1483 char_u * |
1483 skipwhite_and_nl(char_u *q) | 1484 skipwhite_and_nl(char_u *q) |
1486 | 1487 |
1487 while (VIM_ISWHITE(*p) || *p == NL) | 1488 while (VIM_ISWHITE(*p) || *p == NL) |
1488 ++p; | 1489 ++p; |
1489 return p; | 1490 return p; |
1490 } | 1491 } |
1492 #endif | |
1491 | 1493 |
1492 /* | 1494 /* |
1493 * getwhitecols: return the number of whitespace | 1495 * getwhitecols: return the number of whitespace |
1494 * columns (bytes) at the start of a given line | 1496 * columns (bytes) at the start of a given line |
1495 */ | 1497 */ |