diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-03-17 20:25:04 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-03-17 20:25:04 +0000 |
commit | b61721fb6f722c720d6fae031d064f8b6acc1c25 (patch) | |
tree | 50d68cbb204a0b6fcdaa67396555ffaab8c9c917 /main.c | |
parent | 39892755f5fd8f73fda3489991d454864ee63ab0 (diff) |
merge with XORG-RELEASE-1 (tag XORG-CYGWIN-LAST-MERGE)CYGWIN-RELEASE-1-MERGECYGWIN-PRE-6_8_0-MERGECYGWIN-HEAD-MERGECYGWIN-HEAD-LAST-MERGE
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -24,7 +24,7 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/config/makedepend/main.c,v 3.32 2003/03/26 20:43:48 tsi Exp $ */ +/* $XFree86: xc/config/makedepend/main.c,v 3.31tsi Exp $ */ #include "def.h" #ifdef hpux @@ -56,12 +56,10 @@ int _debugmask; #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 @@ main(int argc, char *argv[]) * 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 *getnextline(struct filepointer *filep) 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 @@ done: filep->f_line = lineno; #ifdef DEBUG_DUMP if (bol) - /* DBG_PRINT(stderr,"%s\n",bol); */ + DBG_PRINT(stderr,"%s\n",bol); #endif return(bol); } |