From: Bram Moolenaar Date: Tue, 20 Nov 2012 15:53:39 +0000 (+0100) Subject: updated for version 7.3.719 X-Git-Tag: v7.3.719 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=82881498663eb692e90dcfb9da0a7f573f228e35;p=thirdparty%2Fvim.git updated for version 7.3.719 Problem: Cannot run new version of cproto, it fails on missing include files. Solution: Add lots of #ifndef PROTO --- diff --git a/src/gui_photon.c b/src/gui_photon.c index 06c8a6baa7..5db0484c9f 100644 --- a/src/gui_photon.c +++ b/src/gui_photon.c @@ -13,8 +13,11 @@ #include "vim.h" -#ifdef FEAT_TOOLBAR -# include +/* cproto fails on missing include files */ +#ifndef PROTO +# ifdef FEAT_TOOLBAR +# include +# endif #endif #if !defined(__QNX__) diff --git a/src/gui_w16.c b/src/gui_w16.c index aa287d9d7c..ffb6b89df0 100644 --- a/src/gui_w16.c +++ b/src/gui_w16.c @@ -1521,7 +1521,12 @@ get_dialog_font_metrics(void) #if defined(FEAT_TOOLBAR) || defined(PROTO) -#include "gui_w3~1.h" + +/* cproto fails on missing include files */ +#ifndef PROTO +# include "gui_w3~1.h" +#endif + /* * Create the toolbar, initially unpopulated. * (just like the menu, there are no defaults, it's all diff --git a/src/gui_w32.c b/src/gui_w32.c index 3d8d6c7780..04658d6824 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -198,11 +198,17 @@ static BalloonEval *cur_beval = NULL; static UINT_PTR BevalTimerId = 0; static DWORD LastActivity = 0; + +/* cproto fails on missing include files */ +#ifndef PROTO + /* * excerpts from headers since this may not be presented * in the extremely old compilers */ -#include +# include + +#endif typedef struct _DllVersionInfo { @@ -213,7 +219,9 @@ typedef struct _DllVersionInfo DWORD dwPlatformID; } DLLVERSIONINFO; -#include +#ifndef PROTO +# include +#endif typedef struct tagTOOLINFOA_NEW { diff --git a/src/gui_w48.c b/src/gui_w48.c index 4d38c15100..61c53a7d6f 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -25,6 +25,10 @@ #ifdef DEBUG # include #endif + +/* cproto fails on missing include files */ +#ifndef PROTO + #ifndef __MINGW32__ # include #endif @@ -44,6 +48,8 @@ # include "glbl_ime.h" #endif +#endif /* PROTO */ + #ifdef FEAT_MENU # define MENUHINTS /* show menu hints in command line */ #endif diff --git a/src/os_amiga.c b/src/os_amiga.c index e2b1579499..0b63ea1522 100644 --- a/src/os_amiga.c +++ b/src/os_amiga.c @@ -22,6 +22,9 @@ #undef TRUE /* will be redefined by exec/types.h */ #undef FALSE +/* cproto fails on missing include files, skip them */ +#ifndef PROTO + #ifndef LATTICE # include # include @@ -55,6 +58,8 @@ # include #endif +#endif /* PROTO */ + /* * At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0. */ @@ -283,7 +288,9 @@ mch_init() #endif } -#include +#ifndef PROTO +# include +#endif /* * Check_win checks whether we have an interactive window. @@ -1002,7 +1009,9 @@ mch_screenmode(arg) * Heavely modified by mool. */ -#include +#ifndef PROTO +# include +#endif /* * try to get the real window size @@ -1129,9 +1138,11 @@ out_num(n) * say 'oml lib:amiga.lib -r sendpacket.o' */ +#ifndef PROTO /* #include */ /* #include */ -#include +# include +#endif /* * Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy diff --git a/src/os_amiga.h b/src/os_amiga.h index 0395bceb6f..69a1523e49 100644 --- a/src/os_amiga.h +++ b/src/os_amiga.h @@ -56,6 +56,9 @@ # define TEMPNAMELEN 12 #endif +/* cproto fails on missing include files */ +#ifndef PROTO + #include #include #include @@ -67,6 +70,8 @@ # include #endif +#endif /* PROTO */ + #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */ /* @@ -85,6 +90,7 @@ typedef long off_t; # include #endif +#ifndef PROTO /* * arpbase.h must be included before functions.h */ @@ -92,6 +98,8 @@ typedef long off_t; # include #endif +#endif /* PROTO */ + /* * This won't be needed if you have a version of Lattice 4.01 without broken * break signal handling. diff --git a/src/os_beos.c b/src/os_beos.c index 10135aa3b2..2eed684b87 100644 --- a/src/os_beos.c +++ b/src/os_beos.c @@ -13,7 +13,10 @@ #include #include -#include +#ifndef PROTO +# include +#endif + #include "vim.h" #if USE_THREAD_FOR_INPUT_WITH_TIMEOUT diff --git a/src/os_beos.h b/src/os_beos.h index 260834e60c..e55c389631 100644 --- a/src/os_beos.h +++ b/src/os_beos.h @@ -22,4 +22,6 @@ /* select emulation */ -#include /* for typedefs and #defines only */ +#ifndef PROTO +# include /* for typedefs and #defines only */ +#endif diff --git a/src/os_msdos.c b/src/os_msdos.c index 2d1cf73ddc..209bdd630c 100644 --- a/src/os_msdos.c +++ b/src/os_msdos.c @@ -23,7 +23,10 @@ #include "vim.h" -#include +/* cproto fails on missing include files */ +#ifndef PROTO +# include +#endif /* * MS-DOS only code, not used for Win16. @@ -31,17 +34,19 @@ #ifndef WIN16 -#include -#ifdef DJGPP -# include -# include -# include -# include -# ifdef FEAT_CLIPBOARD -# include +#ifndef PROTO +# include +# ifdef DJGPP +# include +# include +# include +# include +# ifdef FEAT_CLIPBOARD +# include +# endif +# else +# include # endif -#else -# include #endif #if defined(DJGPP) || defined(PROTO) @@ -2130,8 +2135,10 @@ mch_rename(const char *OldFile, const char *NewFile) #undef setlocale -#include -#include +#ifndef PROTO +# include +# include +#endif #include #define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER) diff --git a/src/os_msdos.h b/src/os_msdos.h index 95578bc1f1..735410fa0b 100644 --- a/src/os_msdos.h +++ b/src/os_msdos.h @@ -53,9 +53,12 @@ #define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */ -#include -#include -#include +/* cproto fails on missing include files */ +#ifndef PROTO +# include +# include +# include +#endif #ifdef DJGPP # include diff --git a/src/os_mswin.c b/src/os_mswin.c index b4f662ad52..912864fd6b 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -26,13 +26,18 @@ #ifdef WIN16 # define SHORT_FNAME /* always 8.3 file name */ -# include +/* cproto fails on missing include files */ +# ifndef PROTO +# include +# endif # include #endif #include #include #include -#include +#ifndef PROTO +# include +#endif #undef chdir #ifdef __GNUC__ @@ -43,20 +48,23 @@ # include #endif -#if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) -# include -#endif - -#if defined(FEAT_PRINTER) && !defined(FEAT_POSTSCRIPT) -# include -# ifdef WIN3264 -# include -# else -# include +#ifndef PROTO +# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) +# include # endif -# include + +# if defined(FEAT_PRINTER) && !defined(FEAT_POSTSCRIPT) +# include +# ifdef WIN3264 +# include +# else +# include +# endif +# include #endif +#endif /* PROTO */ + #ifdef __MINGW32__ # ifndef FROM_LEFT_1ST_BUTTON_PRESSED # define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001 @@ -2410,7 +2418,9 @@ mch_print_set_fg(long_u fgcol) #if defined(FEAT_SHORTCUT) || defined(PROTO) -# include +# ifndef PROTO +# include +# endif /* * When "fname" is the name of a shortcut (*.lnk) resolve the file it points diff --git a/src/os_unix.h b/src/os_unix.h index 3bb9a89738..3c9224cd25 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -198,6 +198,9 @@ # define HAVE_TOTAL_MEM #endif + +#ifndef PROTO + #ifdef VMS # include # include @@ -226,7 +229,11 @@ # ifdef FEAT_GUI_GTK # include "gui_gtk_vms.h" # endif +#endif + +#endif /* PROTO */ +#ifdef VMS typedef struct dsc$descriptor DESC; #endif diff --git a/src/os_win16.c b/src/os_win16.c index b620149e79..49e6e300b9 100644 --- a/src/os_win16.c +++ b/src/os_win16.c @@ -22,16 +22,23 @@ #include "vim.h" -#include +/* cproto fails on missing include files */ +#ifndef PROTO +# include +#endif + #include #include #include #include -#include -#undef chdir -#include -#include /* required for FindExecutable() */ +#ifndef PROTO +# include + +# undef chdir +# include +# include /* required for FindExecutable() */ +#endif /* Record all output and all keyboard & mouse input */ diff --git a/src/os_win16.h b/src/os_win16.h index 17f876c7cc..98f0ece5fe 100644 --- a/src/os_win16.h +++ b/src/os_win16.h @@ -63,16 +63,21 @@ typedef long off_t; #include #include -#include -#include -#ifndef STRICT -# define STRICT -#endif -#ifndef COBJMACROS -# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */ -#endif -#include +/* cproto fails on missing include files */ +#ifndef PROTO +# include +# include + +# ifndef STRICT +# define STRICT +# endif +# ifndef COBJMACROS +# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */ +# endif +# include + +#endif /* PROTO */ /* * plenty of memory, use large buffers diff --git a/src/os_win32.c b/src/os_win32.c index 96e115ca2f..f5e283ef84 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -29,7 +29,11 @@ #include #include #include -#include + +/* cproto fails on missing include files */ +#ifndef PROTO +# include +#endif #undef chdir #ifdef __GNUC__ @@ -40,8 +44,10 @@ # include #endif -#if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) -# include +#ifndef PROTO +# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) +# include +# endif #endif #ifdef __MINGW32__ @@ -125,6 +131,7 @@ typedef int TRUSTEE; typedef int WORD; typedef int WCHAR; typedef void VOID; +typedef int BY_HANDLE_FILE_INFORMATION; #endif #ifndef FEAT_GUI_W32 @@ -152,6 +159,8 @@ static PFNGCKLN s_pfnGetConsoleKeyboardLayoutName = NULL; # define wcsicmp(a, b) wcscmpi((a), (b)) #endif +#ifndef PROTO + /* Enable common dialogs input unicode from IME if posible. */ #ifdef FEAT_MBYTE LRESULT (WINAPI *pDispatchMessage)(LPMSG) = DispatchMessage; @@ -160,6 +169,8 @@ BOOL (WINAPI *pIsDialogMessage)(HWND, LPMSG) = IsDialogMessage; BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT) = PeekMessage; #endif +#endif /* PROTO */ + #ifndef FEAT_GUI_W32 /* Win32 Console handles for input and output */ static HANDLE g_hConIn = INVALID_HANDLE_VALUE; @@ -453,7 +464,10 @@ null_libintl_textdomain(const char *domainname) DWORD g_PlatformId; #ifdef HAVE_ACL -# include +# ifndef PROTO +# include +# endif + /* * These are needed to dynamically load the ADVAPI DLL, which is not * implemented under Windows 95 (and causes VIM to crash) @@ -1658,8 +1672,10 @@ theend: #endif /* FEAT_GUI_W32 */ } -#ifndef __MINGW32__ -# include /* required for FindExecutable() */ +#ifndef PROTO +# ifndef __MINGW32__ +# include /* required for FindExecutable() */ +# endif #endif /* diff --git a/src/os_win32.h b/src/os_win32.h index c155fb23fa..71b7609564 100644 --- a/src/os_win32.h +++ b/src/os_win32.h @@ -12,7 +12,10 @@ #include "os_dos.h" /* common MS-DOS and Win32 stuff */ #ifndef __CYGWIN__ -#include /* for _mkdir() */ +/* cproto fails on missing include files */ +# ifndef PROTO +# include /* for _mkdir() */ +# endif #endif /* Stop the VC2005 compiler from nagging. */ @@ -101,7 +104,9 @@ #ifndef COBJMACROS # define COBJMACROS /* For OLE: Enable "friendlier" access to objects */ #endif -#include +#ifndef PROTO +# include +#endif /* * Win32 has plenty of memory, use large buffers @@ -194,6 +199,8 @@ Trace(char *pszFormat, ...); # define vim_mkdir(x, y) mch_mkdir(x) #endif +#ifndef PROTO + /* Enable common dialogs input unicode from IME if posible. */ #ifdef FEAT_MBYTE /* The variables are defined in os_win32.c. */ @@ -207,3 +214,5 @@ extern BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT); # define pIsDialogMessage IsDialogMessage # define pPeekMessage PeekMessage #endif + +#endif /* PROTO */ diff --git a/src/version.c b/src/version.c index 5e4a16bbc7..232ddbc113 100644 --- a/src/version.c +++ b/src/version.c @@ -725,6 +725,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 719, /**/ 718, /**/ diff --git a/src/vimio.h b/src/vimio.h index 71a52cd210..a4dd03096e 100644 --- a/src/vimio.h +++ b/src/vimio.h @@ -13,4 +13,7 @@ # define _CRT_NONSTDC_NO_DEPRECATE #endif -#include +/* cproto fails on missing include files */ +#ifndef PROTO +# include +#endif