Mercurial > vim
comparison src/if_cscope.h @ 132:d6009de12681
updated for version 7.0044
author | vimboss |
---|---|
date | Tue, 25 Jan 2005 22:07:05 +0000 |
parents | 3fc0f57ecb91 |
children | 72aefd4c1e0d |
comparison
equal
deleted
inserted
replaced
131:5c65f9e56459 | 132:d6009de12681 |
---|---|
10 */ | 10 */ |
11 | 11 |
12 #if defined(FEAT_CSCOPE) || defined(PROTO) | 12 #if defined(FEAT_CSCOPE) || defined(PROTO) |
13 | 13 |
14 #if defined(UNIX) | 14 #if defined(UNIX) |
15 #include <sys/types.h> /* pid_t */ | 15 # include <sys/types.h> /* pid_t */ |
16 #include <sys/stat.h> /* dev_t, ino_t */ | 16 # include <sys/stat.h> /* dev_t, ino_t */ |
17 #elif defined (WIN32) | 17 #else |
18 # ifndef WIN32_LEAN_AND_MEAN | 18 # if defined (WIN32) |
19 # define WIN32_LEAN_AND_MEAN | 19 # ifndef WIN32_LEAN_AND_MEAN |
20 # define WIN32_LEAN_AND_MEAN | |
21 # endif | |
22 # include <windows.h> | |
20 # endif | 23 # endif |
21 # include <windows.h> | |
22 #endif | 24 #endif |
23 | 25 |
24 #define CSCOPE_SUCCESS 0 | 26 #define CSCOPE_SUCCESS 0 |
25 #define CSCOPE_FAILURE -1 | 27 #define CSCOPE_FAILURE -1 |
26 #define CSCOPE_MAX_CONNECTIONS 8 /* you actually need more? */ | 28 #define CSCOPE_MAX_CONNECTIONS 8 /* you actually need more? */ |
67 char * flags; /* additional cscope flags/options (e.g, -p2) */ | 69 char * flags; /* additional cscope flags/options (e.g, -p2) */ |
68 #if defined(UNIX) | 70 #if defined(UNIX) |
69 pid_t pid; /* PID of the connected cscope process. */ | 71 pid_t pid; /* PID of the connected cscope process. */ |
70 dev_t st_dev; /* ID of dev containing cscope db */ | 72 dev_t st_dev; /* ID of dev containing cscope db */ |
71 ino_t st_ino; /* inode number of cscope db */ | 73 ino_t st_ino; /* inode number of cscope db */ |
72 #elif defined(WIN32) | 74 #else |
75 # if defined(WIN32) | |
73 int pid; /* Can't get pid so set it to 0 ;) */ | 76 int pid; /* Can't get pid so set it to 0 ;) */ |
74 HANDLE hProc; /* cscope process handle */ | 77 HANDLE hProc; /* cscope process handle */ |
75 DWORD nVolume; /* Volume serial number, instead of st_dev */ | 78 DWORD nVolume; /* Volume serial number, instead of st_dev */ |
76 DWORD nIndexHigh; /* st_ino has no meaning in the Windows */ | 79 DWORD nIndexHigh; /* st_ino has no meaning in the Windows */ |
77 DWORD nIndexLow; | 80 DWORD nIndexLow; |
81 # endif | |
78 #endif | 82 #endif |
79 | 83 |
80 FILE * fr_fp; /* from cscope: FILE. */ | 84 FILE * fr_fp; /* from cscope: FILE. */ |
81 FILE * to_fp; /* to cscope: FILE. */ | 85 FILE * to_fp; /* to cscope: FILE. */ |
82 } csinfo_T; | 86 } csinfo_T; |