Hello,  The cygwin packages allow the installation of vim and
mlcscope.  I had problems with vim hanging when trying to use the
cscope interface.  The problem was that vim is that is expecting the
first line of the returned output to be "cscope: X lines" while
mlcscope returns "mlcscope: X lines".  The patch updates how to match
the token in this line, instead of being exactly "cscope:", it'll match
any token containing "cscope:".  

I'd like to note that changing the mlscope executable to cscope will also 
change its outpout to "cscope:", but on the system I was part-of this was a 
sub-optimal solution.

--Frodak

--- if_cscope.c (revision 199)
+++ if_cscope.c (working copy)
@@ -630,7 +630,7 @@
         */
        if ((stok = strtok(buf, (const char *)" ")) == NULL)
            continue;
-       if (strcmp((const char *)stok, "cscope:"))
+       if (strstr((const char *)stok, "cscope:") == NULL)
            continue;

        if ((stok = strtok(NULL, (const char *)" ")) == NULL)



 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to