From b5b7176234da5855ef99f6d0d3e0df7de319626f Mon Sep 17 00:00:00 2001 From: William McBrine Date: Mon, 23 Oct 2006 05:55:01 +0000 Subject: [PATCH] It makes more sense for traceon() and traceoff() to be in pdcdebug.c. --- pdcurses/pdcdebug.c | 16 +++++++++++++++- pdcurses/util.c | 19 +------------------ 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/pdcurses/pdcdebug.c b/pdcurses/pdcdebug.c index 03f4ba4a..7f2eb2bc 100644 --- a/pdcurses/pdcdebug.c +++ b/pdcurses/pdcdebug.c @@ -16,7 +16,7 @@ #include #include -RCSID("$Id: pdcdebug.c,v 1.24 2006/10/15 02:42:25 wmcbrine Exp $"); +RCSID("$Id: pdcdebug.c,v 1.25 2006/10/23 05:55:01 wmcbrine Exp $"); bool pdc_trace_on = FALSE; @@ -62,3 +62,17 @@ void PDC_debug(const char *fmt, ...) fclose(dbfp); } + +void traceon(void) +{ + PDC_LOG(("traceon() - called\n")); + + pdc_trace_on = TRUE; +} + +void traceoff(void) +{ + PDC_LOG(("traceoff() - called\n")); + + pdc_trace_on = FALSE; +} diff --git a/pdcurses/util.c b/pdcurses/util.c index e7480070..94ba2596 100644 --- a/pdcurses/util.c +++ b/pdcurses/util.c @@ -13,7 +13,7 @@ #include -RCSID("$Id: util.c,v 1.53 2006/10/23 05:46:32 wmcbrine Exp $"); +RCSID("$Id: util.c,v 1.54 2006/10/23 05:55:01 wmcbrine Exp $"); /*man-start************************************************************** @@ -279,20 +279,3 @@ char *key_name(wchar_t c) return keyname((int)c); } #endif - -#undef traceon -#undef traceoff - -void traceon(void) -{ - PDC_LOG(("traceon() - called\n")); - - pdc_trace_on = TRUE; -} - -void traceoff(void) -{ - PDC_LOG(("traceoff() - called\n")); - - pdc_trace_on = FALSE; -}