Mercurial > vim
comparison src/evalfunc.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 | aa613a3084b9 |
children | c9474ae175f4 |
comparison
equal
deleted
inserted
replaced
27017:da790d50f73d | 27018:268f6a3511df |
---|---|
3527 + redir_execute_ga.ga_len, value, len); | 3527 + redir_execute_ga.ga_len, value, len); |
3528 redir_execute_ga.ga_len += len; | 3528 redir_execute_ga.ga_len += len; |
3529 } | 3529 } |
3530 } | 3530 } |
3531 | 3531 |
3532 #if defined(FEAT_LUA) || defined(PROTO) | |
3532 /* | 3533 /* |
3533 * Get next line from a string containing NL separated lines. | 3534 * Get next line from a string containing NL separated lines. |
3534 * Called by do_cmdline() to get the next line. | 3535 * Called by do_cmdline() to get the next line. |
3535 * Returns an allocated string, or NULL when at the end of the string. | 3536 * Returns an allocated string, or NULL when at the end of the string. |
3536 */ | 3537 */ |
3568 execute_cmds_from_string(char_u *str) | 3569 execute_cmds_from_string(char_u *str) |
3569 { | 3570 { |
3570 do_cmdline(NULL, get_str_line, (void *)&str, | 3571 do_cmdline(NULL, get_str_line, (void *)&str, |
3571 DOCMD_NOWAIT|DOCMD_VERBOSE|DOCMD_REPEAT|DOCMD_KEYTYPED); | 3572 DOCMD_NOWAIT|DOCMD_VERBOSE|DOCMD_REPEAT|DOCMD_KEYTYPED); |
3572 } | 3573 } |
3574 #endif | |
3573 | 3575 |
3574 /* | 3576 /* |
3575 * Get next line from a list. | 3577 * Get next line from a list. |
3576 * Called by do_cmdline() to get the next line. | 3578 * Called by do_cmdline() to get the next line. |
3577 * Returns allocated string, or NULL for end of function. | 3579 * Returns allocated string, or NULL for end of function. |