X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fdate.c;h=1a2232a11f05a54376eec3e59ce7cf5cce4aa40e;hb=139159783319f5103e77a1b484596647c735a657;hp=d05740803c95940c52c34041bbe3fdf8cb8cb64e;hpb=2fb61a5d3ffec21d16adfa03a89f01cd8235ccae;p=gedcom-parse.git diff --git a/gedcom/date.c b/gedcom/date.c index d057408..1a2232a 100644 --- a/gedcom/date.c +++ b/gedcom/date.c @@ -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 , 2001. @@ -21,7 +21,6 @@ /* $Id$ */ /* $Name$ */ -#include #include "gedcom_internal.h" #include "sdncal.h" #include "date.h" @@ -32,7 +31,7 @@ struct date date_s; struct date_value def_date_val; struct date def_date; -char* curr_line_value; +const char* curr_line_value; int max_month[] = { 12, /* CAL_GREGORIAN */ 12, /* CAL_JULIAN */ @@ -70,7 +69,7 @@ void init_date(struct date *d) } struct date_value make_date_value(Date_value_type t, struct date d1, - struct date d2, char* p) + struct date d2, const char* p) { dv_s.type = t; copy_date(&dv_s.date1, d1); @@ -116,7 +115,7 @@ void make_date_complete(struct date *d) } } -struct date_value gedcom_parse_date(char* line_value) +struct date_value gedcom_parse_date(const char* line_value) { init_date(&date_s); init_date(&def_date);