comparison src/ex_docmd.c @ 18849:b77ef4b8af7c v8.1.2411

patch 8.1.2411: function argument copied unnecessarily Commit: https://github.com/vim/vim/commit/1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 8 17:08:29 2019 +0100 patch 8.1.2411: function argument copied unnecessarily Problem: Function argument copied unnecessarily. Solution: Use the argument directly.
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Dec 2019 17:15:04 +0100
parents 8f05b3cf8557
children 2bdc2e1f6e1f
comparison
equal deleted inserted replaced
18848:a0e0f0256d0b 18849:b77ef4b8af7c
3410 */ 3410 */
3411 static linenr_T 3411 static linenr_T
3412 get_address( 3412 get_address(
3413 exarg_T *eap UNUSED, 3413 exarg_T *eap UNUSED,
3414 char_u **ptr, 3414 char_u **ptr,
3415 cmd_addr_T addr_type_arg, 3415 cmd_addr_T addr_type,
3416 int skip, // only skip the address, don't use it 3416 int skip, // only skip the address, don't use it
3417 int silent, // no errors or side effects 3417 int silent, // no errors or side effects
3418 int to_other_file, // flag: may jump to other file 3418 int to_other_file, // flag: may jump to other file
3419 int address_count UNUSED) // 1 for first address, >1 after comma 3419 int address_count UNUSED) // 1 for first address, >1 after comma
3420 { 3420 {
3421 cmd_addr_T addr_type = addr_type_arg;
3422 int c; 3421 int c;
3423 int i; 3422 int i;
3424 long n; 3423 long n;
3425 char_u *cmd; 3424 char_u *cmd;
3426 pos_T pos; 3425 pos_T pos;