Update of /cvsroot/cscope/cscope/src
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv14786/src
Modified Files:
dir.c main.c
Log Message:
Fixed issrcfile to detect hpp/hxx files as C++ header files
Added myexit as SIGTERM handler
Index: dir.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/dir.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** dir.c 15 Oct 2006 16:53:24 -0000 1.29
--- dir.c 14 Feb 2008 12:39:37 -0000 1.30
***************
*** 567,571 ****
/* C++ source: */
|| (s[0] == 'c' && s[1] == 'p' && s[2] == 'p' )
! || (s[0] == 'c' && s[1] == 'x' && s[2] == 'x' ))
) {
looks_like_source = YES;
--- 567,573 ----
/* C++ source: */
|| (s[0] == 'c' && s[1] == 'p' && s[2] == 'p' )
! || (s[0] == 'c' && s[1] == 'x' && s[2] == 'x' )
! || (s[0] == 'h' && s[1] == 'p' && s[2] == 'p' )
! || (s[0] == 'h' && s[1] == 'x' && s[2] == 'x' ))
) {
looks_like_source = YES;
Index: main.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -r1.43 -r1.44
*** main.c 23 Oct 2006 12:37:36 -0000 1.43
--- main.c 14 Feb 2008 12:39:37 -0000 1.44
***************
*** 377,380 ****
--- 377,383 ----
signal(SIGHUP, myexit);
+ /* ditto the TERM signal */
+ signal(SIGTERM, myexit);
+
/* if the database path is relative and it can't be created */
if (reffile[0] != '/' && access(".", WRITE) != 0) {
|