码迷,mamicode.com
首页 > 其他好文 > 详细

cscope

时间:2015-09-27 09:57:54      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:

http://sourceforge.net/p/cscope/bugs/247/

buffer read only? cx cq

Here is a simple patch which re-enables cscope to work with symlinks. Really you were already 99% of the way there to a fix.

IMHO, this should be a command line option (-l) to enable including symlinks. There are many projects which use symlinks and it‘s perfectly valid in many cases. It‘s been messing me up for years trying to use the Cavium SDKs.

Here‘s the patch (this is against 15.8)

--- dir.c.orig 2010-06-28 19:16:50.000000000 -0300
+++ dir.c 2012-08-30 21:56:44.047742152 -0300
@@ -652,7 +652,7 @@ accessible_file(char *file)
struct stat stats;

if (lstat(file, &stats) == 0
- && S_ISREG(stats.st_mode)) {
+ && (S_ISREG(stats.st_mode) || S_ISLNK(stats.st_mode))) {
return YES;
}
}

cscope

标签:

原文地址:http://www.cnblogs.com/jvava/p/4841818.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!