1
0
forked from aniani/vim

updated for version 7.0079

This commit is contained in:
Bram Moolenaar
2005-06-04 22:06:24 +00:00
parent 51485f0624
commit 75c50c46a6
21 changed files with 152 additions and 100 deletions

View File

@@ -559,7 +559,7 @@ cs_check_for_connections()
static int
cs_check_for_tags()
{
return (p_tags[0] != NUL && curbuf->b_p_tags != NUL);
return (p_tags[0] != NUL && curbuf->b_p_tags != NULL);
} /* cs_check_for_tags */
@@ -1202,6 +1202,9 @@ clear_csinfo(i)
csinfo[i].pid = -1;
csinfo[i].fr_fp = NULL;
csinfo[i].to_fp = NULL;
#if defined(WIN32)
csinfo[i].hProc = NULL;
#endif
}
#ifndef UNIX
@@ -2090,7 +2093,7 @@ cs_release_csp(i, freefnpp)
(void)fflush(csinfo[i].to_fp);
}
/* give cscope chance to exit normally */
if (csinfo[i].hProc > 0
if (csinfo[i].hProc != NULL
&& WaitForSingleObject(csinfo[i].hProc, 1000) == WAIT_TIMEOUT)
TerminateProcess(csinfo[i].hProc, 0);
#endif