From: Ambrose Li <a....@ie...> - 2003-06-05 05:04:55
|
Hello, while figuring out the "font names with hyphens" problem, I enabled __DEBUG'ing, and found that the debugging code doesn't compile any more. The following nominally makes the mlterm 2.6.3 source code compiles again when we -D__DEBUG: --- ./mlterm/ml_vt100_parser.c.dist Fri Dec 13 09:46:29 2002 +++ ./mlterm/ml_vt100_parser.c Wed Jun 4 22:38:07 2003 @@ -202,8 +202,10 @@ vt100_parser->buffer.len = 0 ; #ifdef __DEBUG +#if 0 ml_edit_dump( vt100_parser->screen->edit) ; #endif +#endif return 1 ; } @@ -2062,7 +2064,9 @@ #ifdef __DEBUG kik_debug_printf( KIK_DEBUG_TAG " --> dumping\n") ; + #if 0 ml_edit_dump( vt100_parser->screen->edit) ; + #endif #endif if( ( vt100_parser->left = left) == 0) --- ./xwindow/x_screen.c.dist Sun Dec 15 02:22:37 2002 +++ ./xwindow/x_screen.c Wed Jun 4 22:39:11 2003 @@ -3226,7 +3226,9 @@ kik_debug_printf( KIK_DEBUG_TAG " sending internal str: ") ; for( i = 0 ; i < screen->sel.sel_len ; i ++) { +#if 0 ml_char_dump( &screen->sel.sel_str[i]) ; +#endif } kik_msg_printf( "\n -> converting to ->\n") ; } @@ -3271,7 +3273,9 @@ kik_debug_printf( KIK_DEBUG_TAG " sending internal str: ") ; for( i = 0 ; i < screen->sel.sel_len ; i ++) { +#if 0 ml_char_dump( &screen->sel.sel_str[i]) ; +#endif } kik_msg_printf( "\n -> converting to ->\n") ; } --- ./xwindow/x_window.c.dist Fri Dec 6 08:45:49 2002 +++ ./xwindow/x_window.c Wed Jun 4 22:40:03 2003 @@ -2878,7 +2878,7 @@ } #endif -#ifdef DEBUG +#ifdef __DEBUG void x_window_dump_children( x_window_t * win Regards, -- Ambrose LI Cheuk-Wing <a....@ie...> http://ada.dhs.org/~acli/ |