To: vim-dev@vim.org Subject: Patch 6.1.388 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.388 (depends on 6.1.384) Problem: Compiler warning for pointer cast. Solution: Add (char *). Only include has_patch() when used. Files: src/eval.c, src/version.c *** ../vim61.387/src/eval.c Sun Mar 9 22:25:50 2003 --- src/eval.c Tue Mar 11 11:59:42 2003 *************** *** 4573,4579 **** if (n == FALSE) { if (STRNICMP(name, "patch", 5) == 0) ! n = has_patch(atoi(name + 5)); else if (STRICMP(name, "vim_starting") == 0) n = (starting != 0); #ifdef DYNAMIC_TCL --- 4580,4586 ---- if (n == FALSE) { if (STRNICMP(name, "patch", 5) == 0) ! n = has_patch(atoi((char *)name + 5)); else if (STRICMP(name, "vim_starting") == 0) n = (starting != 0); #ifdef DYNAMIC_TCL *** ../vim61.387/src/version.c Tue Mar 11 12:39:42 2003 --- src/version.c Tue Mar 11 12:41:34 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 388, /**/ *************** *** 1402,1405 **** --- 1404,1408 ---- } + #if defined(FEAT_EVAL) || defined(PROTO) /* * Return TRUE if patch "n" has been included. *************** *** 1416,1419 **** --- 1419,1423 ---- return FALSE; } + #endif void -- How To Keep A Healthy Level Of Insanity: 14. Put mosquito netting around your work area. Play a tape of jungle sounds all day. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///