laine / rpms / cscope

Forked from rpms/cscope 3 years ago
Clone
6639cc3
--- cscope/src/crossref.c.orig	2003-04-29 10:08:45.000000000 -0400
6639cc3
+++ cscope/src/crossref.c	2004-10-05 10:37:19.958700472 -0400
6639cc3
@@ -95,10 +95,16 @@
6639cc3
 	int	token;			/* current token */
6639cc3
 	struct stat st;
6639cc3
 
6639cc3
+	filename = srcfile;
6639cc3
+	putfilename(srcfile);   /* output the file name */
6639cc3
+	dbputc('\n');
6639cc3
+	dbputc('\n');
6639cc3
+
6639cc3
 	if (! ((stat(srcfile, &st) == 0)
6639cc3
 	       && S_ISREG(st.st_mode))) {
6639cc3
 		cannotopen(srcfile);
6639cc3
 		errorsfound = YES;
6639cc3
+		dbputc('\t');
6639cc3
 		return;
6639cc3
 	}
6639cc3
 	
6639cc3
@@ -107,12 +113,9 @@
6639cc3
 	if ((yyin = myfopen(srcfile, "r")) == NULL) {
6639cc3
 		cannotopen(srcfile);
6639cc3
 		errorsfound = YES;
6639cc3
+		dbputc('\t');
6639cc3
 		return;
6639cc3
 	}
6639cc3
-	filename = srcfile;	/* save the file name for warning messages */
6639cc3
-	putfilename(srcfile);	/* output the file name */
6639cc3
-	dbputc('\n');
6639cc3
-	dbputc('\n');
6639cc3
 
6639cc3
 	/* read the source file */
6639cc3
 	initscanner(srcfile);