#include "vim.h"
-#ifdef FEAT_TOOLBAR
-# include <photon/PxImage.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# ifdef FEAT_TOOLBAR
+# include <photon/PxImage.h>
+# endif
#endif
#if !defined(__QNX__)
#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
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 <pshpack1.h>
+# include <pshpack1.h>
+
+#endif
typedef struct _DllVersionInfo
{
DWORD dwPlatformID;
} DLLVERSIONINFO;
-#include <poppack.h>
+#ifndef PROTO
+# include <poppack.h>
+#endif
typedef struct tagTOOLINFOA_NEW
{
#ifdef DEBUG
# include <tchar.h>
#endif
+
+/* cproto fails on missing include files */
+#ifndef PROTO
+
#ifndef __MINGW32__
# include <shellapi.h>
#endif
# include "glbl_ime.h"
#endif
+#endif /* PROTO */
+
#ifdef FEAT_MENU
# define MENUHINTS /* show menu hints in command line */
#endif
#undef TRUE /* will be redefined by exec/types.h */
#undef FALSE
+/* cproto fails on missing include files, skip them */
+#ifndef PROTO
+
#ifndef LATTICE
# include <exec/types.h>
# include <exec/exec.h>
# include <libraries/arp_pragmas.h>
#endif
+#endif /* PROTO */
+
/*
* At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0.
*/
#endif
}
-#include <workbench/startup.h>
+#ifndef PROTO
+# include <workbench/startup.h>
+#endif
/*
* Check_win checks whether we have an interactive window.
* Heavely modified by mool.
*/
-#include <devices/conunit.h>
+#ifndef PROTO
+# include <devices/conunit.h>
+#endif
/*
* try to get the real window size
* say 'oml lib:amiga.lib -r sendpacket.o'
*/
+#ifndef PROTO
/* #include <proto/exec.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
# define TEMPNAMELEN 12
#endif
+/* cproto fails on missing include files */
+#ifndef PROTO
+
#include <exec/types.h>
#include <libraries/dos.h>
#include <libraries/dosextens.h>
# include <proto/intuition.h>
#endif
+#endif /* PROTO */
+
#define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
/*
# include <unistd.h>
#endif
+#ifndef PROTO
/*
* arpbase.h must be included before functions.h
*/
# include <libraries/arpbase.h>
#endif
+#endif /* PROTO */
+
/*
* This won't be needed if you have a version of Lattice 4.01 without broken
* break signal handling.
#include <float.h>
#include <termios.h>
-#include <kernel/OS.h>
+#ifndef PROTO
+# include <kernel/OS.h>
+#endif
+
#include "vim.h"
#if USE_THREAD_FOR_INPUT_WITH_TIMEOUT
/* select emulation */
-#include <net/socket.h> /* for typedefs and #defines only */
+#ifndef PROTO
+# include <net/socket.h> /* for typedefs and #defines only */
+#endif
#include "vim.h"
-#include <conio.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <conio.h>
+#endif
/*
* MS-DOS only code, not used for Win16.
#ifndef WIN16
-#include <bios.h>
-#ifdef DJGPP
-# include <dpmi.h>
-# include <signal.h>
-# include <sys/movedata.h>
-# include <crt0.h>
-# ifdef FEAT_CLIPBOARD
-# include <sys/segments.h>
+#ifndef PROTO
+# include <bios.h>
+# ifdef DJGPP
+# include <dpmi.h>
+# include <signal.h>
+# include <sys/movedata.h>
+# include <crt0.h>
+# ifdef FEAT_CLIPBOARD
+# include <sys/segments.h>
+# endif
+# else
+# include <alloc.h>
# endif
-#else
-# include <alloc.h>
#endif
#if defined(DJGPP) || defined(PROTO)
#undef setlocale
-#include <go32.h>
-#include <inlines/ctype.ha>
+#ifndef PROTO
+# include <go32.h>
+# include <inlines/ctype.ha>
+#endif
#include <locale.h>
#define UPCASE (__dj_ISALNUM | __dj_ISALPHA | __dj_ISGRAPH | __dj_ISPRINT | __dj_ISUPPER)
#define FNAME_ILLEGAL "\"*?><|" /* illegal characters in a file name */
-#include <dos.h>
-#include <dir.h>
-#include <time.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <dos.h>
+# include <dir.h>
+# include <time.h>
+#endif
#ifdef DJGPP
# include <unistd.h>
#ifdef WIN16
# define SHORT_FNAME /* always 8.3 file name */
-# include <dos.h>
+/* cproto fails on missing include files */
+# ifndef PROTO
+# include <dos.h>
+# endif
# include <string.h>
#endif
#include <sys/types.h>
#include <signal.h>
#include <limits.h>
-#include <process.h>
+#ifndef PROTO
+# include <process.h>
+#endif
#undef chdir
#ifdef __GNUC__
# include <direct.h>
#endif
-#if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
-# include <shellapi.h>
-#endif
-
-#if defined(FEAT_PRINTER) && !defined(FEAT_POSTSCRIPT)
-# include <dlgs.h>
-# ifdef WIN3264
-# include <winspool.h>
-# else
-# include <print.h>
+#ifndef PROTO
+# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
+# include <shellapi.h>
# endif
-# include <commdlg.h>
+
+# if defined(FEAT_PRINTER) && !defined(FEAT_POSTSCRIPT)
+# include <dlgs.h>
+# ifdef WIN3264
+# include <winspool.h>
+# else
+# include <print.h>
+# endif
+# include <commdlg.h>
#endif
+#endif /* PROTO */
+
#ifdef __MINGW32__
# ifndef FROM_LEFT_1ST_BUTTON_PRESSED
# define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001
#if defined(FEAT_SHORTCUT) || defined(PROTO)
-# include <shlobj.h>
+# ifndef PROTO
+# include <shlobj.h>
+# endif
/*
* When "fname" is the name of a shortcut (*.lnk) resolve the file it points
# define HAVE_TOTAL_MEM
#endif
+
+#ifndef PROTO
+
#ifdef VMS
# include <unixio.h>
# include <unixlib.h>
# ifdef FEAT_GUI_GTK
# include "gui_gtk_vms.h"
# endif
+#endif
+
+#endif /* PROTO */
+#ifdef VMS
typedef struct dsc$descriptor DESC;
#endif
#include "vim.h"
-#include <dos.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <dos.h>
+#endif
+
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include <limits.h>
-#include <process.h>
-#undef chdir
-#include <direct.h>
-#include <shellapi.h> /* required for FindExecutable() */
+#ifndef PROTO
+# include <process.h>
+
+# undef chdir
+# include <direct.h>
+# include <shellapi.h> /* required for FindExecutable() */
+#endif
/* Record all output and all keyboard & mouse input */
#include <stdlib.h>
#include <time.h>
-#include <dos.h>
-#include <dir.h>
-#ifndef STRICT
-# define STRICT
-#endif
-#ifndef COBJMACROS
-# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */
-#endif
-#include <windows.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <dos.h>
+# include <dir.h>
+
+# ifndef STRICT
+# define STRICT
+# endif
+# ifndef COBJMACROS
+# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */
+# endif
+# include <windows.h>
+
+#endif /* PROTO */
/*
* plenty of memory, use large buffers
#include <sys/types.h>
#include <signal.h>
#include <limits.h>
-#include <process.h>
+
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <process.h>
+#endif
#undef chdir
#ifdef __GNUC__
# include <direct.h>
#endif
-#if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
-# include <shellapi.h>
+#ifndef PROTO
+# if defined(FEAT_TITLE) && !defined(FEAT_GUI_W32)
+# include <shellapi.h>
+# endif
#endif
#ifdef __MINGW32__
typedef int WORD;
typedef int WCHAR;
typedef void VOID;
+typedef int BY_HANDLE_FILE_INFORMATION;
#endif
#ifndef FEAT_GUI_W32
# 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;
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;
DWORD g_PlatformId;
#ifdef HAVE_ACL
-# include <aclapi.h>
+# ifndef PROTO
+# include <aclapi.h>
+# endif
+
/*
* These are needed to dynamically load the ADVAPI DLL, which is not
* implemented under Windows 95 (and causes VIM to crash)
#endif /* FEAT_GUI_W32 */
}
-#ifndef __MINGW32__
-# include <shellapi.h> /* required for FindExecutable() */
+#ifndef PROTO
+# ifndef __MINGW32__
+# include <shellapi.h> /* required for FindExecutable() */
+# endif
#endif
/*
#include "os_dos.h" /* common MS-DOS and Win32 stuff */
#ifndef __CYGWIN__
-#include <direct.h> /* for _mkdir() */
+/* cproto fails on missing include files */
+# ifndef PROTO
+# include <direct.h> /* for _mkdir() */
+# endif
#endif
/* Stop the VC2005 compiler from nagging. */
#ifndef COBJMACROS
# define COBJMACROS /* For OLE: Enable "friendlier" access to objects */
#endif
-#include <windows.h>
+#ifndef PROTO
+# include <windows.h>
+#endif
/*
* Win32 has plenty of memory, use large buffers
# 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. */
# define pIsDialogMessage IsDialogMessage
# define pPeekMessage PeekMessage
#endif
+
+#endif /* PROTO */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 719,
/**/
718,
/**/
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
-#include <io.h>
+/* cproto fails on missing include files */
+#ifndef PROTO
+# include <io.h>
+#endif