Mercurial > vim
comparison src/if_cscope.c @ 301:006e9c8a6a8a v7.0079
updated for version 7.0079
author | vimboss |
---|---|
date | Sat, 04 Jun 2005 22:06:24 +0000 |
parents | 9a1c2a8186b7 |
children | 03b3684919e3 |
comparison
equal
deleted
inserted
replaced
300:86cd0a77d2ae | 301:006e9c8a6a8a |
---|---|
557 | 557 |
558 | 558 |
559 static int | 559 static int |
560 cs_check_for_tags() | 560 cs_check_for_tags() |
561 { | 561 { |
562 return (p_tags[0] != NUL && curbuf->b_p_tags != NUL); | 562 return (p_tags[0] != NUL && curbuf->b_p_tags != NULL); |
563 } /* cs_check_for_tags */ | 563 } /* cs_check_for_tags */ |
564 | 564 |
565 | 565 |
566 /* | 566 /* |
567 * PRIVATE: cs_cnt_connections | 567 * PRIVATE: cs_cnt_connections |
1200 csinfo[i].nIndexLow = 0; | 1200 csinfo[i].nIndexLow = 0; |
1201 #endif | 1201 #endif |
1202 csinfo[i].pid = -1; | 1202 csinfo[i].pid = -1; |
1203 csinfo[i].fr_fp = NULL; | 1203 csinfo[i].fr_fp = NULL; |
1204 csinfo[i].to_fp = NULL; | 1204 csinfo[i].to_fp = NULL; |
1205 #if defined(WIN32) | |
1206 csinfo[i].hProc = NULL; | |
1207 #endif | |
1205 } | 1208 } |
1206 | 1209 |
1207 #ifndef UNIX | 1210 #ifndef UNIX |
1208 static char *GetWin32Error __ARGS((void)); | 1211 static char *GetWin32Error __ARGS((void)); |
1209 | 1212 |
2088 { | 2091 { |
2089 (void)fputs("q\n", csinfo[i].to_fp); | 2092 (void)fputs("q\n", csinfo[i].to_fp); |
2090 (void)fflush(csinfo[i].to_fp); | 2093 (void)fflush(csinfo[i].to_fp); |
2091 } | 2094 } |
2092 /* give cscope chance to exit normally */ | 2095 /* give cscope chance to exit normally */ |
2093 if (csinfo[i].hProc > 0 | 2096 if (csinfo[i].hProc != NULL |
2094 && WaitForSingleObject(csinfo[i].hProc, 1000) == WAIT_TIMEOUT) | 2097 && WaitForSingleObject(csinfo[i].hProc, 1000) == WAIT_TIMEOUT) |
2095 TerminateProcess(csinfo[i].hProc, 0); | 2098 TerminateProcess(csinfo[i].hProc, 0); |
2096 #endif | 2099 #endif |
2097 | 2100 |
2098 if (csinfo[i].fr_fp != NULL) | 2101 if (csinfo[i].fr_fp != NULL) |