首页 > 其他 > 详细

cscope

时间:2015-09-27 09:55:28      阅读:284      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!