Karsten Hopp 04fbfb
To: vim-dev@vim.org
Karsten Hopp 04fbfb
Subject: patch 7.0.184
Karsten Hopp 04fbfb
Fcc: outbox
Karsten Hopp 04fbfb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 04fbfb
Mime-Version: 1.0
Karsten Hopp 04fbfb
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 04fbfb
Content-Transfer-Encoding: 8bit
Karsten Hopp 04fbfb
------------
Karsten Hopp 04fbfb
Karsten Hopp 04fbfb
Patch 7.0.184
Karsten Hopp 04fbfb
Problem:    When the cscope program is called "mlcscope" the Cscope interface
Karsten Hopp 04fbfb
	    doesn't work.
Karsten Hopp 04fbfb
Solution:   Accept "\S*cscope:" instead of "cscope:". (Frodak D. Baksik)
Karsten Hopp 04fbfb
Files:	    src/if_cscope.c
Karsten Hopp 04fbfb
Karsten Hopp 04fbfb
Karsten Hopp 04fbfb
*** ../vim-7.0.183/src/if_cscope.c	Tue Nov 21 11:43:49 2006
Karsten Hopp 04fbfb
--- src/if_cscope.c	Fri Jan 12 20:02:37 2007
Karsten Hopp 04fbfb
***************
Karsten Hopp 04fbfb
*** 627,636 ****
Karsten Hopp 04fbfb
  	 * If the database is out of date, or there's some other problem,
Karsten Hopp 04fbfb
  	 * cscope will output error messages before the number-of-lines output.
Karsten Hopp 04fbfb
  	 * Display/discard any output that doesn't match what we want.
Karsten Hopp 04fbfb
  	 */
Karsten Hopp 04fbfb
  	if ((stok = strtok(buf, (const char *)" ")) == NULL)
Karsten Hopp 04fbfb
  	    continue;
Karsten Hopp 04fbfb
! 	if (strcmp((const char *)stok, "cscope:"))
Karsten Hopp 04fbfb
  	    continue;
Karsten Hopp 04fbfb
  
Karsten Hopp 04fbfb
  	if ((stok = strtok(NULL, (const char *)" ")) == NULL)
Karsten Hopp 04fbfb
--- 627,637 ----
Karsten Hopp 04fbfb
  	 * If the database is out of date, or there's some other problem,
Karsten Hopp 04fbfb
  	 * cscope will output error messages before the number-of-lines output.
Karsten Hopp 04fbfb
  	 * Display/discard any output that doesn't match what we want.
Karsten Hopp 04fbfb
+ 	 * Accept "\S*cscope: X lines", also matches "mlcscope".
Karsten Hopp 04fbfb
  	 */
Karsten Hopp 04fbfb
  	if ((stok = strtok(buf, (const char *)" ")) == NULL)
Karsten Hopp 04fbfb
  	    continue;
Karsten Hopp 04fbfb
! 	if (strstr((const char *)stok, "cscope:") == NULL)
Karsten Hopp 04fbfb
  	    continue;
Karsten Hopp 04fbfb
  
Karsten Hopp 04fbfb
  	if ((stok = strtok(NULL, (const char *)" ")) == NULL)
Karsten Hopp 04fbfb
*** ../vim-7.0.183/src/version.c	Sun Jan 14 15:27:05 2007
Karsten Hopp 04fbfb
--- src/version.c	Tue Jan 16 15:16:41 2007
Karsten Hopp 04fbfb
***************
Karsten Hopp 04fbfb
*** 668,669 ****
Karsten Hopp 04fbfb
--- 668,671 ----
Karsten Hopp 04fbfb
  {   /* Add new patch number below this line */
Karsten Hopp 04fbfb
+ /**/
Karsten Hopp 04fbfb
+     184,
Karsten Hopp 04fbfb
  /**/
Karsten Hopp 04fbfb
Karsten Hopp 04fbfb
-- 
Karsten Hopp 04fbfb
The technology involved in making anything invisible is so infinitely
Karsten Hopp 04fbfb
complex that nine hundred and ninety-nine billion, nine hundred and
Karsten Hopp 04fbfb
ninety-nine million, nine hundred and ninety-nine thousand, nine hundred
Karsten Hopp 04fbfb
and ninety-nine times out of a trillion it is much simpler and more
Karsten Hopp 04fbfb
effective just to take the thing away and do without it.
Karsten Hopp 04fbfb
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Karsten Hopp 04fbfb
Karsten Hopp 04fbfb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 04fbfb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 04fbfb
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 04fbfb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///