To: vim_dev@googlegroups.com Subject: Patch 8.2.2118 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2118 Problem: Dead code in the job support. (Dominique Pellé) Solution: Define USE_ARGV before checking for it. Files: src/job.c *** ../vim-8.2.2117/src/job.c 2020-11-19 18:46:19.549796579 +0100 --- src/job.c 2020-12-09 13:13:18.811459739 +0100 *************** *** 887,892 **** --- 887,897 ---- } #endif + // Unix uses argv[] for the command, other systems use a string. + #if defined(UNIX) + # define USE_ARGV + #endif + #if !defined(USE_ARGV) || defined(PROTO) /* * Escape one argument for an external command. *************** *** 1269,1277 **** char **argv = NULL; int argc = 0; int i; ! #if defined(UNIX) ! # define USE_ARGV ! #else garray_T ga; #endif jobopt_T opt; --- 1274,1280 ---- char **argv = NULL; int argc = 0; int i; ! #ifndef USE_ARGV garray_T ga; #endif jobopt_T opt; *** ../vim-8.2.2117/src/version.c 2020-12-09 12:41:44.934219841 +0100 --- src/version.c 2020-12-09 13:14:16.911248387 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2118, /**/ -- A programmer's wife asks him: "Please run to the store and pick up a loaf of bread. If they have eggs, get a dozen". The programmer comes home with 12 loafs of bread. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///