[lwatch-cvs] files/src yparse.l,1.8,1.9
Brought to you by:
arturcz
|
From: <ar...@us...> - 2002-06-29 14:58:05
|
Update of /cvsroot/lwatch/files/src
In directory usw-pr-cvs1:/tmp/cvs-serv23200
Modified Files:
yparse.l
Log Message:
Do not generate unnecessary messages in debug mode.
Index: yparse.l
===================================================================
RCS file: /cvsroot/lwatch/files/src/yparse.l,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** yparse.l 29 Jun 2002 13:53:45 -0000 1.8
--- yparse.l 29 Jun 2002 14:58:02 -0000 1.9
***************
*** 189,196 ****
die("Filename too long: %s\n",yytext);
}
! if(!strlen(yypch)) strcpy(yypch,yytext);
#ifdef DEBUG
! printf("Set %s to %s\n",mymsg,yytext);
#endif
POP;
}
--- 189,198 ----
die("Filename too long: %s\n",yytext);
}
! if(!strlen(yypch)) {
! strcpy(yypch,yytext);
#ifdef DEBUG
! printf("Set %s to %s\n",mymsg,yytext);
#endif
+ }
POP;
}
|