0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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
This commit is contained in:
Bram Moolenaar
2012-11-20 16:53:39 +01:00
parent 0ac24e1ef4
commit 8288149866
18 changed files with 178 additions and 63 deletions

View File

@@ -13,9 +13,12 @@
#include "vim.h" #include "vim.h"
/* cproto fails on missing include files */
#ifndef PROTO
# ifdef FEAT_TOOLBAR # ifdef FEAT_TOOLBAR
# include <photon/PxImage.h> # include <photon/PxImage.h>
# endif # endif
#endif
#if !defined(__QNX__) #if !defined(__QNX__)
/* Used when generating prototypes. */ /* Used when generating prototypes. */

View File

@@ -1521,7 +1521,12 @@ get_dialog_font_metrics(void)
#if defined(FEAT_TOOLBAR) || defined(PROTO) #if defined(FEAT_TOOLBAR) || defined(PROTO)
/* cproto fails on missing include files */
#ifndef PROTO
# include "gui_w3~1.h" # include "gui_w3~1.h"
#endif
/* /*
* Create the toolbar, initially unpopulated. * Create the toolbar, initially unpopulated.
* (just like the menu, there are no defaults, it's all * (just like the menu, there are no defaults, it's all

View File

@@ -198,12 +198,18 @@ static BalloonEval *cur_beval = NULL;
static UINT_PTR BevalTimerId = 0; static UINT_PTR BevalTimerId = 0;
static DWORD LastActivity = 0; static DWORD LastActivity = 0;
/* cproto fails on missing include files */
#ifndef PROTO
/* /*
* excerpts from headers since this may not be presented * excerpts from headers since this may not be presented
* in the extremely old compilers * in the extremely old compilers
*/ */
# include <pshpack1.h> # include <pshpack1.h>
#endif
typedef struct _DllVersionInfo typedef struct _DllVersionInfo
{ {
DWORD cbSize; DWORD cbSize;
@@ -213,7 +219,9 @@ typedef struct _DllVersionInfo
DWORD dwPlatformID; DWORD dwPlatformID;
} DLLVERSIONINFO; } DLLVERSIONINFO;
#ifndef PROTO
# include <poppack.h> # include <poppack.h>
#endif
typedef struct tagTOOLINFOA_NEW typedef struct tagTOOLINFOA_NEW
{ {

View File

@@ -25,6 +25,10 @@
#ifdef DEBUG #ifdef DEBUG
# include <tchar.h> # include <tchar.h>
#endif #endif
/* cproto fails on missing include files */
#ifndef PROTO
#ifndef __MINGW32__ #ifndef __MINGW32__
# include <shellapi.h> # include <shellapi.h>
#endif #endif
@@ -44,6 +48,8 @@
# include "glbl_ime.h" # include "glbl_ime.h"
#endif #endif
#endif /* PROTO */
#ifdef FEAT_MENU #ifdef FEAT_MENU
# define MENUHINTS /* show menu hints in command line */ # define MENUHINTS /* show menu hints in command line */
#endif #endif

View File

@@ -22,6 +22,9 @@
#undef TRUE /* will be redefined by exec/types.h */ #undef TRUE /* will be redefined by exec/types.h */
#undef FALSE #undef FALSE
/* cproto fails on missing include files, skip them */
#ifndef PROTO
#ifndef LATTICE #ifndef LATTICE
# include <exec/types.h> # include <exec/types.h>
# include <exec/exec.h> # include <exec/exec.h>
@@ -55,6 +58,8 @@
# include <libraries/arp_pragmas.h> # include <libraries/arp_pragmas.h>
#endif #endif
#endif /* PROTO */
/* /*
* At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0. * 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 #endif
} }
#ifndef PROTO
# include <workbench/startup.h> # include <workbench/startup.h>
#endif
/* /*
* Check_win checks whether we have an interactive window. * Check_win checks whether we have an interactive window.
@@ -1002,7 +1009,9 @@ mch_screenmode(arg)
* Heavely modified by mool. * Heavely modified by mool.
*/ */
#ifndef PROTO
# include <devices/conunit.h> # include <devices/conunit.h>
#endif
/* /*
* try to get the real window size * try to get the real window size
@@ -1129,9 +1138,11 @@ out_num(n)
* say 'oml lib:amiga.lib -r sendpacket.o' * say 'oml lib:amiga.lib -r sendpacket.o'
*/ */
#ifndef PROTO
/* #include <proto/exec.h> */ /* #include <proto/exec.h> */
/* #include <proto/dos.h> */ /* #include <proto/dos.h> */
# include <exec/memory.h> # include <exec/memory.h>
#endif
/* /*
* Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy * Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy

View File

@@ -56,6 +56,9 @@
# define TEMPNAMELEN 12 # define TEMPNAMELEN 12
#endif #endif
/* cproto fails on missing include files */
#ifndef PROTO
#include <exec/types.h> #include <exec/types.h>
#include <libraries/dos.h> #include <libraries/dos.h>
#include <libraries/dosextens.h> #include <libraries/dosextens.h>
@@ -67,6 +70,8 @@
# include <proto/intuition.h> # include <proto/intuition.h>
#endif #endif
#endif /* PROTO */
#define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */ #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
/* /*
@@ -85,6 +90,7 @@ typedef long off_t;
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifndef PROTO
/* /*
* arpbase.h must be included before functions.h * arpbase.h must be included before functions.h
*/ */
@@ -92,6 +98,8 @@ typedef long off_t;
# include <libraries/arpbase.h> # include <libraries/arpbase.h>
#endif #endif
#endif /* PROTO */
/* /*
* This won't be needed if you have a version of Lattice 4.01 without broken * This won't be needed if you have a version of Lattice 4.01 without broken
* break signal handling. * break signal handling.

View File

@@ -13,7 +13,10 @@
#include <float.h> #include <float.h>
#include <termios.h> #include <termios.h>
#ifndef PROTO
# include <kernel/OS.h> # include <kernel/OS.h>
#endif
#include "vim.h" #include "vim.h"
#if USE_THREAD_FOR_INPUT_WITH_TIMEOUT #if USE_THREAD_FOR_INPUT_WITH_TIMEOUT

View File

@@ -22,4 +22,6 @@
/* select emulation */ /* select emulation */
#ifndef PROTO
# include <net/socket.h> /* for typedefs and #defines only */ # include <net/socket.h> /* for typedefs and #defines only */
#endif

View File

@@ -23,7 +23,10 @@
#include "vim.h" #include "vim.h"
/* cproto fails on missing include files */
#ifndef PROTO
# include <conio.h> # include <conio.h>
#endif
/* /*
* MS-DOS only code, not used for Win16. * MS-DOS only code, not used for Win16.
@@ -31,6 +34,7 @@
#ifndef WIN16 #ifndef WIN16
#ifndef PROTO
# include <bios.h> # include <bios.h>
# ifdef DJGPP # ifdef DJGPP
# include <dpmi.h> # include <dpmi.h>
@@ -43,6 +47,7 @@
# else # else
# include <alloc.h> # include <alloc.h>
# endif # endif
#endif
#if defined(DJGPP) || defined(PROTO) #if defined(DJGPP) || defined(PROTO)
# define _cdecl /* DJGPP doesn't have this */ # define _cdecl /* DJGPP doesn't have this */
@@ -2130,8 +2135,10 @@ mch_rename(const char *OldFile, const char *NewFile)
#undef setlocale #undef setlocale
#ifndef PROTO
# include <go32.h> # include <go32.h>
# include <inlines/ctype.ha> # include <inlines/ctype.ha>
#endif
#include <locale.h> #include <locale.h>
#define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER) #define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER)

View File

@@ -53,9 +53,12 @@
#define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */ #define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
/* cproto fails on missing include files */
#ifndef PROTO
# include <dos.h> # include <dos.h>
# include <dir.h> # include <dir.h>
# include <time.h> # include <time.h>
#endif
#ifdef DJGPP #ifdef DJGPP
# include <unistd.h> # include <unistd.h>

View File

@@ -26,13 +26,18 @@
#ifdef WIN16 #ifdef WIN16
# define SHORT_FNAME /* always 8.3 file name */ # define SHORT_FNAME /* always 8.3 file name */
/* cproto fails on missing include files */
# ifndef PROTO
# include <dos.h> # include <dos.h>
# endif
# include <string.h> # include <string.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <limits.h> #include <limits.h>
#ifndef PROTO
# include <process.h> # include <process.h>
#endif
#undef chdir #undef chdir
#ifdef __GNUC__ #ifdef __GNUC__
@@ -43,6 +48,7 @@
# include <direct.h> # include <direct.h>
#endif #endif
#ifndef PROTO
# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) # if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
# include <shellapi.h> # include <shellapi.h>
# endif # endif
@@ -57,6 +63,8 @@
# include <commdlg.h> # include <commdlg.h>
#endif #endif
#endif /* PROTO */
#ifdef __MINGW32__ #ifdef __MINGW32__
# ifndef FROM_LEFT_1ST_BUTTON_PRESSED # ifndef FROM_LEFT_1ST_BUTTON_PRESSED
# define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001 # define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001
@@ -2410,7 +2418,9 @@ mch_print_set_fg(long_u fgcol)
#if defined(FEAT_SHORTCUT) || defined(PROTO) #if defined(FEAT_SHORTCUT) || defined(PROTO)
# ifndef PROTO
# include <shlobj.h> # include <shlobj.h>
# endif
/* /*
* When "fname" is the name of a shortcut (*.lnk) resolve the file it points * When "fname" is the name of a shortcut (*.lnk) resolve the file it points

View File

@@ -198,6 +198,9 @@
# define HAVE_TOTAL_MEM # define HAVE_TOTAL_MEM
#endif #endif
#ifndef PROTO
#ifdef VMS #ifdef VMS
# include <unixio.h> # include <unixio.h>
# include <unixlib.h> # include <unixlib.h>
@@ -226,7 +229,11 @@
# ifdef FEAT_GUI_GTK # ifdef FEAT_GUI_GTK
# include "gui_gtk_vms.h" # include "gui_gtk_vms.h"
# endif # endif
#endif
#endif /* PROTO */
#ifdef VMS
typedef struct dsc$descriptor DESC; typedef struct dsc$descriptor DESC;
#endif #endif

View File

@@ -22,16 +22,23 @@
#include "vim.h" #include "vim.h"
/* cproto fails on missing include files */
#ifndef PROTO
# include <dos.h> # include <dos.h>
#endif
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <limits.h> #include <limits.h>
#ifndef PROTO
# include <process.h> # include <process.h>
# undef chdir # undef chdir
# include <direct.h> # include <direct.h>
# include <shellapi.h> /* required for FindExecutable() */ # include <shellapi.h> /* required for FindExecutable() */
#endif
/* Record all output and all keyboard & mouse input */ /* Record all output and all keyboard & mouse input */

View File

@@ -63,6 +63,9 @@ typedef long off_t;
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
/* cproto fails on missing include files */
#ifndef PROTO
# include <dos.h> # include <dos.h>
# include <dir.h> # include <dir.h>
@@ -74,6 +77,8 @@ typedef long off_t;
# endif # endif
# include <windows.h> # include <windows.h>
#endif /* PROTO */
/* /*
* plenty of memory, use large buffers * plenty of memory, use large buffers
*/ */

View File

@@ -29,7 +29,11 @@
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <limits.h> #include <limits.h>
/* cproto fails on missing include files */
#ifndef PROTO
# include <process.h> # include <process.h>
#endif
#undef chdir #undef chdir
#ifdef __GNUC__ #ifdef __GNUC__
@@ -40,9 +44,11 @@
# include <direct.h> # include <direct.h>
#endif #endif
#ifndef PROTO
# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32) # if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
# include <shellapi.h> # include <shellapi.h>
# endif # endif
#endif
#ifdef __MINGW32__ #ifdef __MINGW32__
# ifndef FROM_LEFT_1ST_BUTTON_PRESSED # ifndef FROM_LEFT_1ST_BUTTON_PRESSED
@@ -125,6 +131,7 @@ typedef int TRUSTEE;
typedef int WORD; typedef int WORD;
typedef int WCHAR; typedef int WCHAR;
typedef void VOID; typedef void VOID;
typedef int BY_HANDLE_FILE_INFORMATION;
#endif #endif
#ifndef FEAT_GUI_W32 #ifndef FEAT_GUI_W32
@@ -152,6 +159,8 @@ static PFNGCKLN s_pfnGetConsoleKeyboardLayoutName = NULL;
# define wcsicmp(a, b) wcscmpi((a), (b)) # define wcsicmp(a, b) wcscmpi((a), (b))
#endif #endif
#ifndef PROTO
/* Enable common dialogs input unicode from IME if posible. */ /* Enable common dialogs input unicode from IME if posible. */
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
LRESULT (WINAPI *pDispatchMessage)(LPMSG) = DispatchMessage; LRESULT (WINAPI *pDispatchMessage)(LPMSG) = DispatchMessage;
@@ -160,6 +169,8 @@ BOOL (WINAPI *pIsDialogMessage)(HWND, LPMSG) = IsDialogMessage;
BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT) = PeekMessage; BOOL (WINAPI *pPeekMessage)(LPMSG, HWND, UINT, UINT, UINT) = PeekMessage;
#endif #endif
#endif /* PROTO */
#ifndef FEAT_GUI_W32 #ifndef FEAT_GUI_W32
/* Win32 Console handles for input and output */ /* Win32 Console handles for input and output */
static HANDLE g_hConIn = INVALID_HANDLE_VALUE; static HANDLE g_hConIn = INVALID_HANDLE_VALUE;
@@ -453,7 +464,10 @@ null_libintl_textdomain(const char *domainname)
DWORD g_PlatformId; DWORD g_PlatformId;
#ifdef HAVE_ACL #ifdef HAVE_ACL
# ifndef PROTO
# include <aclapi.h> # include <aclapi.h>
# endif
/* /*
* These are needed to dynamically load the ADVAPI DLL, which is not * These are needed to dynamically load the ADVAPI DLL, which is not
* implemented under Windows 95 (and causes VIM to crash) * implemented under Windows 95 (and causes VIM to crash)
@@ -1658,9 +1672,11 @@ theend:
#endif /* FEAT_GUI_W32 */ #endif /* FEAT_GUI_W32 */
} }
#ifndef PROTO
# ifndef __MINGW32__ # ifndef __MINGW32__
# include <shellapi.h> /* required for FindExecutable() */ # include <shellapi.h> /* required for FindExecutable() */
# endif # endif
#endif
/* /*
* Return TRUE if "name" is in $PATH. * Return TRUE if "name" is in $PATH.

View File

@@ -12,8 +12,11 @@
#include "os_dos.h" /* common MS-DOS and Win32 stuff */ #include "os_dos.h" /* common MS-DOS and Win32 stuff */
#ifndef __CYGWIN__ #ifndef __CYGWIN__
/* cproto fails on missing include files */
# ifndef PROTO
# include <direct.h> /* for _mkdir() */ # include <direct.h> /* for _mkdir() */
# endif # endif
#endif
/* Stop the VC2005 compiler from nagging. */ /* Stop the VC2005 compiler from nagging. */
#if _MSC_VER >= 1400 #if _MSC_VER >= 1400
@@ -101,7 +104,9 @@
#ifndef COBJMACROS #ifndef COBJMACROS
# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */ # define COBJMACROS /* For OLE: Enable "friendlier" access to objects */
#endif #endif
#ifndef PROTO
# include <windows.h> # include <windows.h>
#endif
/* /*
* Win32 has plenty of memory, use large buffers * Win32 has plenty of memory, use large buffers
@@ -194,6 +199,8 @@ Trace(char *pszFormat, ...);
# define vim_mkdir(x, y) mch_mkdir(x) # define vim_mkdir(x, y) mch_mkdir(x)
#endif #endif
#ifndef PROTO
/* Enable common dialogs input unicode from IME if posible. */ /* Enable common dialogs input unicode from IME if posible. */
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
/* The variables are defined in os_win32.c. */ /* 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 pIsDialogMessage IsDialogMessage
# define pPeekMessage PeekMessage # define pPeekMessage PeekMessage
#endif #endif
#endif /* PROTO */

View File

@@ -725,6 +725,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
719,
/**/ /**/
718, 718,
/**/ /**/

View File

@@ -13,4 +13,7 @@
# define _CRT_NONSTDC_NO_DEPRECATE # define _CRT_NONSTDC_NO_DEPRECATE
#endif #endif
/* cproto fails on missing include files */
#ifndef PROTO
# include <io.h> # include <io.h>
#endif