From 69e552ebff885065971da5c57a607f5e4f684c0b Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 6 Dec 1998 09:55:48 +0000 Subject: [PATCH] adding some debug messages git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1434 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/datecell.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/register/datecell.c b/src/register/datecell.c index b9186ef18e..7a29405790 100644 --- a/src/register/datecell.c +++ b/src/register/datecell.c @@ -40,6 +40,7 @@ #include "basiccell.h" #include "datecell.h" +#include "util.h" static void setDateCellValue (BasicCell *, const char *); @@ -48,6 +49,9 @@ static void setDateCellValue (BasicCell *, const char *); (cell)->value = strdup (str); \ } +/* This static indicates the debugging module that this .o belongs to. */ +static short module = MOD_REGISTER; + /* ================================================ */ static @@ -281,7 +285,7 @@ DateLeave (BasicCell *_cell, const char * curr) /* ================================================ */ /* for most practical purposes, the commit function - * is identical to the DateLeave function, excpet that + * is identical to the DateLeave function, except that * it returns no value (and is publically visible) */ @@ -289,13 +293,15 @@ void xaccCommitDateCell (DateCell *cell) { char buff[30]; + ENTER ("xaccCommitDateCell(): value is %s \n", cell->cell.value); xaccParseDate (&(cell->date), cell->cell.value); printDate (buff, cell->date.tm_mday, - cell->date.tm_mon+1, - cell->date.tm_year+1900); + cell->date.tm_mon+1, + cell->date.tm_year+1900); if (cell->cell.value) free (cell->cell.value); cell->cell.value = strdup (buff); + LEAVE ("xaccCommitDateCell(): value is %s \n", cell->cell.value); } /* ================================================ */