It makes more sense for traceon() and traceoff() to be in pdcdebug.c.

This commit is contained in:
William McBrine
2006-10-23 05:55:01 +00:00
parent 233bb83deb
commit b5b7176234
2 changed files with 16 additions and 19 deletions

View File

@@ -16,7 +16,7 @@
#include <sys/types.h>
#include <time.h>
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;
}

View File

@@ -13,7 +13,7 @@
#include <curspriv.h>
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;
}