Some cosmetic changes.
[gedcom-parse.git] / gedcom / date.c
index a14522ad939e64a71021e8124a0ebb252e6379aa..322127ecaf1bbdcf37083bced57017267d7ecf9e 100644 (file)
@@ -1,5 +1,5 @@
 /* Date manipulation routines.
-   Copyright (C) 2001 The Genes Development Team
+   Copyright (C) 2001,2002 The Genes Development Team
    This file is part of the Gedcom parser library.
    Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2001.
 
@@ -21,7 +21,6 @@
 /* $Id$ */
 /* $Name$ */
 
-#include <stdio.h>
 #include "gedcom_internal.h"
 #include "sdncal.h"
 #include "date.h"
@@ -32,6 +31,8 @@ struct date date_s;
 struct date_value def_date_val;
 struct date def_date;
 
+char* curr_line_value;
+
 int max_month[] = { 12,  /* CAL_GREGORIAN */
                    12,  /* CAL_JULIAN */
                    13,  /* CAL_HEBREW */
@@ -118,6 +119,7 @@ struct date_value gedcom_parse_date(char* line_value)
 {
   init_date(&date_s);
   init_date(&def_date);
+  curr_line_value = line_value;
   init_gedcom_date_lex(line_value);
   gedcom_date_parse();
   close_gedcom_date_lex();