|
Karsten Hopp |
8e8e33 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
8e8e33 |
Subject: patch 7.1.080 (extra)
|
|
Karsten Hopp |
8e8e33 |
Fcc: outbox
|
|
Karsten Hopp |
8e8e33 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8e8e33 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8e8e33 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
8e8e33 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8e8e33 |
------------
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
Patch 7.1.080 (extra)
|
|
Karsten Hopp |
8e8e33 |
Problem: Compiler warnings for using "const char *" for "char *".
|
|
Karsten Hopp |
8e8e33 |
Solution: Add type casts. (Chris Sutcliffe)
|
|
Karsten Hopp |
8e8e33 |
Files: src/GvimExt/gvimext.cpp
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
*** ../vim-7.1.079/src/GvimExt/gvimext.cpp Thu May 10 21:09:38 2007
|
|
Karsten Hopp |
8e8e33 |
--- src/GvimExt/gvimext.cpp Thu Aug 16 21:25:56 2007
|
|
Karsten Hopp |
8e8e33 |
***************
|
|
Karsten Hopp |
8e8e33 |
*** 69,82 ****
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
// Registry didn't work, use the search path.
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
! strcpy(name, searchpath("gvim.exe"));
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
if (!runtime)
|
|
Karsten Hopp |
8e8e33 |
{
|
|
Karsten Hopp |
8e8e33 |
// Only when looking for the executable, not the runtime dir, we can
|
|
Karsten Hopp |
8e8e33 |
// search for the batch file or a name without a path.
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
! strcpy(name, searchpath("gvim.bat"));
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
strcpy(name, "gvim"); // finds gvim.bat or gvim.exe
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
--- 69,82 ----
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
// Registry didn't work, use the search path.
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
! strcpy(name, searchpath((char *)"gvim.exe"));
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
if (!runtime)
|
|
Karsten Hopp |
8e8e33 |
{
|
|
Karsten Hopp |
8e8e33 |
// Only when looking for the executable, not the runtime dir, we can
|
|
Karsten Hopp |
8e8e33 |
// search for the batch file or a name without a path.
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
! strcpy(name, searchpath((char *)"gvim.bat"));
|
|
Karsten Hopp |
8e8e33 |
if (name[0] == 0)
|
|
Karsten Hopp |
8e8e33 |
strcpy(name, "gvim"); // finds gvim.bat or gvim.exe
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
***************
|
|
Karsten Hopp |
8e8e33 |
*** 152,160 ****
|
|
Karsten Hopp |
8e8e33 |
FARPROC *ptr;
|
|
Karsten Hopp |
8e8e33 |
} libintl_entry[] =
|
|
Karsten Hopp |
8e8e33 |
{
|
|
Karsten Hopp |
8e8e33 |
! {"gettext", (FARPROC*)&dyn_libintl_gettext},
|
|
Karsten Hopp |
8e8e33 |
! {"textdomain", (FARPROC*)&dyn_libintl_textdomain},
|
|
Karsten Hopp |
8e8e33 |
! {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
|
|
Karsten Hopp |
8e8e33 |
{NULL, NULL}
|
|
Karsten Hopp |
8e8e33 |
};
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
--- 152,160 ----
|
|
Karsten Hopp |
8e8e33 |
FARPROC *ptr;
|
|
Karsten Hopp |
8e8e33 |
} libintl_entry[] =
|
|
Karsten Hopp |
8e8e33 |
{
|
|
Karsten Hopp |
8e8e33 |
! {(char *)"gettext", (FARPROC*)&dyn_libintl_gettext},
|
|
Karsten Hopp |
8e8e33 |
! {(char *)"textdomain", (FARPROC*)&dyn_libintl_textdomain},
|
|
Karsten Hopp |
8e8e33 |
! {(char *)"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
|
|
Karsten Hopp |
8e8e33 |
{NULL, NULL}
|
|
Karsten Hopp |
8e8e33 |
};
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
***************
|
|
Karsten Hopp |
8e8e33 |
*** 835,841 ****
|
|
Karsten Hopp |
8e8e33 |
(LPTSTR)location) > (HINSTANCE)32)
|
|
Karsten Hopp |
8e8e33 |
return location;
|
|
Karsten Hopp |
8e8e33 |
}
|
|
Karsten Hopp |
8e8e33 |
! return "";
|
|
Karsten Hopp |
8e8e33 |
}
|
|
Karsten Hopp |
8e8e33 |
# endif
|
|
Karsten Hopp |
8e8e33 |
#endif
|
|
Karsten Hopp |
8e8e33 |
--- 835,841 ----
|
|
Karsten Hopp |
8e8e33 |
(LPTSTR)location) > (HINSTANCE)32)
|
|
Karsten Hopp |
8e8e33 |
return location;
|
|
Karsten Hopp |
8e8e33 |
}
|
|
Karsten Hopp |
8e8e33 |
! return (char *)"";
|
|
Karsten Hopp |
8e8e33 |
}
|
|
Karsten Hopp |
8e8e33 |
# endif
|
|
Karsten Hopp |
8e8e33 |
#endif
|
|
Karsten Hopp |
8e8e33 |
*** ../vim-7.1.079/src/version.c Wed Aug 15 20:40:45 2007
|
|
Karsten Hopp |
8e8e33 |
--- src/version.c Sat Aug 18 16:58:36 2007
|
|
Karsten Hopp |
8e8e33 |
***************
|
|
Karsten Hopp |
8e8e33 |
*** 668,669 ****
|
|
Karsten Hopp |
8e8e33 |
--- 668,671 ----
|
|
Karsten Hopp |
8e8e33 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8e8e33 |
+ /**/
|
|
Karsten Hopp |
8e8e33 |
+ 80,
|
|
Karsten Hopp |
8e8e33 |
/**/
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
--
|
|
Karsten Hopp |
8e8e33 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
8e8e33 |
192. Your boss asks you to "go fer" coffee and you come up with 235 FTP sites.
|
|
Karsten Hopp |
8e8e33 |
|
|
Karsten Hopp |
8e8e33 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8e8e33 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8e8e33 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
8e8e33 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|