|
From: Hans-Bernhard B. <br...@us...> - 2003-06-02 10:43:03
|
Update of /cvsroot/cscope/cscope/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25655/src
Modified Files:
dir.c
Log Message:
Let -R check only the basename for sourcefile name patterns
Index: dir.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/dir.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** dir.c 29 Apr 2003 14:08:45 -0000 1.18
--- dir.c 2 Jun 2003 10:42:59 -0000 1.19
***************
*** 40,44 ****
#include <sys/types.h> /* needed by stat.h and dirent.h */
#include <dirent.h>
- #include <stdlib.h>
#include <sys/stat.h> /* stat */
#include "global.h"
--- 40,43 ----
***************
*** 504,508 ****
entry->d_ino != 0
#endif
! && issrcfile(path)
&& infilelist(path) == NO) {
addsrcfile(path);
--- 503,507 ----
entry->d_ino != 0
#endif
! && issrcfile(mybasename(path))
&& infilelist(path) == NO) {
addsrcfile(path);
***************
*** 526,530 ****
/* if there is a file suffix */
if ((s = strrchr(file, '.')) != NULL && *++s != '\0') {
!
/* if an SCCS or versioned file */
if (file[1] == '.' && file + 2 != s) { /* 1 character prefix */
--- 525,529 ----
/* if there is a file suffix */
if ((s = strrchr(file, '.')) != NULL && *++s != '\0') {
!
/* if an SCCS or versioned file */
if (file[1] == '.' && file + 2 != s) { /* 1 character prefix */
|