[xorg-commit-diffs] xc/config/makedepend main.c,1.1.4.4,1.1.4.5

Egbert Eich xorg-commit at pdx.freedesktop.org
Thu Apr 15 03:13:15 PDT 2004


Committed by: eich

Update of /cvs/xorg/xc/config/makedepend
In directory pdx:/home/eich/tstbuild/xc/config/makedepend

Modified Files:
      Tag: XORG-CURRENT
	main.c 
Log Message:
2004-04-15  Egbert Eich  <eich at freedesktop.org>
        Merged changes from RELEASE-1 branch
	


Index: main.c
===================================================================
RCS file: /cvs/xorg/xc/config/makedepend/main.c,v
retrieving revision 1.1.4.4
retrieving revision 1.1.4.5
diff -u -d -r1.1.4.4 -r1.1.4.5
--- a/main.c	5 Mar 2004 13:38:13 -0000	1.1.4.4
+++ b/main.c	15 Apr 2004 10:13:11 -0000	1.1.4.5
@@ -56,12 +56,10 @@
 #endif
 
 /* #define DEBUG_DUMP */
-#if 0
 #ifdef DEBUG_DUMP
-#define DBG_PRINT(args...)   fprintf(args)
+#define DBG_PRINT(file, fmt, args)   fprintf(file, fmt, args)
 #else
-#define DBG_PRINT(args...)   /* empty */
-#endif
+#define DBG_PRINT(file, fmt, args)   /* empty */
 #endif
 
 #define DASH_INC_PRE    "#include \""
@@ -492,7 +490,7 @@
 	 * now peruse through the list of files.
 	 */
 	for(fp=filelist; *fp; fp++) {
-		/* DBG_PRINT(stderr,"file: %s\n",*fp); */
+		DBG_PRINT(stderr,"file: %s\n",*fp);
 		filecontent = getfile(*fp);
 		setfile_cmdinc(filecontent, cmdinc_count, cmdinc_list);
 		ip = newinclude(*fp, (char *)NULL);
@@ -614,7 +612,7 @@
 		char *buf = filep->cmdinc_list[2 * filep->cmdinc_line + 1];
 		filep->cmdinc_line++;
 		sprintf(buf,"%s%s%s",DASH_INC_PRE,inc,DASH_INC_POST);
-		/* DBG_PRINT(stderr,"%s\n",buf); */
+		DBG_PRINT(stderr,"%s\n",buf);
 		return(buf);
 	}
 
@@ -719,7 +717,7 @@
 	filep->f_line = lineno;
 #ifdef DEBUG_DUMP
 	if (bol)
-		/* DBG_PRINT(stderr,"%s\n",bol); */
+		DBG_PRINT(stderr,"%s\n",bol);
 #endif
 	return(bol);
 }




More information about the xorg-commit-diffs mailing list