0
0
mirror of https://github.com/vim/vim.git synced 2025-10-07 05:54:16 -04:00

updated for version 7.0044

This commit is contained in:
Bram Moolenaar
2005-01-25 22:07:05 +00:00
parent 495de9c1ae
commit df3267e4e1
5 changed files with 40 additions and 16 deletions

View File

@@ -12,13 +12,15 @@
#if defined(FEAT_CSCOPE) || defined(PROTO)
#if defined(UNIX)
#include <sys/types.h> /* pid_t */
#include <sys/stat.h> /* dev_t, ino_t */
#elif defined (WIN32)
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# include <sys/types.h> /* pid_t */
# include <sys/stat.h> /* dev_t, ino_t */
#else
# if defined (WIN32)
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
# endif
# include <windows.h>
#endif
#define CSCOPE_SUCCESS 0
@@ -69,12 +71,14 @@ typedef struct csi {
pid_t pid; /* PID of the connected cscope process. */
dev_t st_dev; /* ID of dev containing cscope db */
ino_t st_ino; /* inode number of cscope db */
#elif defined(WIN32)
#else
# if defined(WIN32)
int pid; /* Can't get pid so set it to 0 ;) */
HANDLE hProc; /* cscope process handle */
DWORD nVolume; /* Volume serial number, instead of st_dev */
DWORD nIndexHigh; /* st_ino has no meaning in the Windows */
DWORD nIndexLow;
# endif
#endif
FILE * fr_fp; /* from cscope: FILE. */