To: vim-dev@vim.org Subject: Patch 6.1b.010 (extra) Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1b.010 (extra) Problem: When compiling gvimext.cpp with MSVC 4.2 get a number of warnings. Solution: Change "true" to "TRUE". (Walter Briscoe) Files: GvimExt/gvimext.cpp *** ../vim61b.009/GvimExt/gvimext.cpp Sun Sep 16 15:41:46 2001 --- GvimExt/gvimext.cpp Thu Mar 14 19:26:04 2002 *************** *** 760,782 **** // First do a bunch of check // No invisible window ! if (!IsWindowVisible(hWnd)) return true; // No child window ??? ! // if (GetParent(hWnd)) return true; // Class name should be Vim, if failed to get class name, return if (GetClassName(hWnd, temp, sizeof(temp)) == 0) ! return true; // Compare class name to that of vim, if not, return if (_strnicmp(temp, "vim", sizeof("vim")) != 0) ! return true; // First check if the number of vim instance exceeds MAX_HWND CShellExt *cs = (CShellExt*) lParam; ! if (cs->m_cntOfHWnd >= MAX_HWND) return true; // Now we get the vim window, put it into some kind of array cs->m_hWnd[cs->m_cntOfHWnd] = hWnd; cs->m_cntOfHWnd ++; ! return true; // continue enumeration (otherwise this would be false) } #ifdef WIN32 --- 760,782 ---- // First do a bunch of check // No invisible window ! if (!IsWindowVisible(hWnd)) return TRUE; // No child window ??? ! // if (GetParent(hWnd)) return TRUE; // Class name should be Vim, if failed to get class name, return if (GetClassName(hWnd, temp, sizeof(temp)) == 0) ! return TRUE; // Compare class name to that of vim, if not, return if (_strnicmp(temp, "vim", sizeof("vim")) != 0) ! return TRUE; // First check if the number of vim instance exceeds MAX_HWND CShellExt *cs = (CShellExt*) lParam; ! if (cs->m_cntOfHWnd >= MAX_HWND) return TRUE; // Now we get the vim window, put it into some kind of array cs->m_hWnd[cs->m_cntOfHWnd] = hWnd; cs->m_cntOfHWnd ++; ! return TRUE; // continue enumeration (otherwise this would be false) } #ifdef WIN32 *** ../vim61b.009/src/version.c Fri Mar 15 21:16:56 2002 --- src/version.c Fri Mar 15 21:19:13 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 10, /**/ -- A poem: read aloud: <> !*''# Waka waka bang splat tick tick hash, ^"`$$- Caret quote back-tick dollar dollar dash, !*=@$_ Bang splat equal at dollar under-score, %*<> ~#4 Percent splat waka waka tilde number four, &[]../ Ampersand bracket bracket dot dot slash, |{,,SYSTEM HALTED Vertical-bar curly-bracket comma comma CRASH. Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand Rapids, MI.) /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///