[lwatch-cvs] files/src acolors.c,1.5,1.6
Brought to you by:
arturcz
|
From: <ar...@us...> - 2002-07-19 00:17:21
|
Update of /cvsroot/lwatch/files/src
In directory usw-pr-cvs1:/tmp/cvs-serv11520
Modified Files:
acolors.c
Log Message:
Conditional compilation for some DEBUG mode messages
Index: acolors.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/acolors.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** acolors.c 19 Jul 2002 00:09:44 -0000 1.5
--- acolors.c 19 Jul 2002 00:17:17 -0000 1.6
***************
*** 129,141 ****
--- 129,149 ----
numer[2]='\0';
val=atoi(numer);
+ #ifdef DEBUG
printf("val in: %2i",val);
+ #endif
if(val) {
+ #ifdef DEBUG
printf(" ");
+ #endif
col_stack[++col_stack_ptr]=val;
} else {
+ #ifdef DEBUG
printf(" -");
+ #endif
val=col_stack[--col_stack_ptr];
}
+ #ifdef DEBUG
printf("SP: %2i top: %2i val out: %2i\n",col_stack_ptr-1,col_stack[col_stack_ptr-1],val);
+ #endif
color=colmode[val];
while(*color) {
|