comparison src/GvimExt/gvimext.cpp @ 1366:7e7da11555d2 v7.1.080

updated for version 7.1-080
author vimboss
date Sat, 18 Aug 2007 15:00:42 +0000
parents a49d06539452
children c7c53db66b55
comparison
equal deleted inserted replaced
1365:79a23c19108a 1366:7e7da11555d2
67 RegCloseKey(keyhandle); 67 RegCloseKey(keyhandle);
68 } 68 }
69 69
70 // Registry didn't work, use the search path. 70 // Registry didn't work, use the search path.
71 if (name[0] == 0) 71 if (name[0] == 0)
72 strcpy(name, searchpath("gvim.exe")); 72 strcpy(name, searchpath((char *)"gvim.exe"));
73 73
74 if (!runtime) 74 if (!runtime)
75 { 75 {
76 // Only when looking for the executable, not the runtime dir, we can 76 // Only when looking for the executable, not the runtime dir, we can
77 // search for the batch file or a name without a path. 77 // search for the batch file or a name without a path.
78 if (name[0] == 0) 78 if (name[0] == 0)
79 strcpy(name, searchpath("gvim.bat")); 79 strcpy(name, searchpath((char *)"gvim.bat"));
80 if (name[0] == 0) 80 if (name[0] == 0)
81 strcpy(name, "gvim"); // finds gvim.bat or gvim.exe 81 strcpy(name, "gvim"); // finds gvim.bat or gvim.exe
82 82
83 // avoid that Vim tries to expand wildcards in the file names 83 // avoid that Vim tries to expand wildcards in the file names
84 strcat(name, " --literal"); 84 strcat(name, " --literal");
150 { 150 {
151 char *name; 151 char *name;
152 FARPROC *ptr; 152 FARPROC *ptr;
153 } libintl_entry[] = 153 } libintl_entry[] =
154 { 154 {
155 {"gettext", (FARPROC*)&dyn_libintl_gettext}, 155 {(char *)"gettext", (FARPROC*)&dyn_libintl_gettext},
156 {"textdomain", (FARPROC*)&dyn_libintl_textdomain}, 156 {(char *)"textdomain", (FARPROC*)&dyn_libintl_textdomain},
157 {"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain}, 157 {(char *)"bindtextdomain", (FARPROC*)&dyn_libintl_bindtextdomain},
158 {NULL, NULL} 158 {NULL, NULL}
159 }; 159 };
160 160
161 // No need to initialize twice. 161 // No need to initialize twice.
162 if (hLibintlDLL) 162 if (hLibintlDLL)
833 { 833 {
834 if (FindExecutableA((LPCTSTR)name, (LPCTSTR)"", 834 if (FindExecutableA((LPCTSTR)name, (LPCTSTR)"",
835 (LPTSTR)location) > (HINSTANCE)32) 835 (LPTSTR)location) > (HINSTANCE)32)
836 return location; 836 return location;
837 } 837 }
838 return ""; 838 return (char *)"";
839 } 839 }
840 # endif 840 # endif
841 #endif 841 #endif
842 842
843 STDMETHODIMP CShellExt::InvokeGvim(HWND hParent, 843 STDMETHODIMP CShellExt::InvokeGvim(HWND hParent,