[teklib-general] teklib: Date union tdtt_ field prefix renamed to tdt_

Timm S. Mueller tmueller at neoscientists.org
Wed Jan 14 13:36:43 CET 2009


details:   http://hg.teklib.org/teklib/rev/70defb611a32
changeset: 223:70defb611a32
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Mon Jan 12 16:09:57 2009 +0100
description:
Date union tdtt_ field prefix renamed to tdt_

diffs (truncated from 290 to 100 lines):

diff -r bad5efe40a85 -r 70defb611a32 src/date/astro_mod.c
--- a/src/date/astro_mod.c	Sat Jan 10 03:04:39 2009 +0100
+++ b/src/date/astro_mod.c	Mon Jan 12 16:09:57 2009 +0100
@@ -310,14 +310,14 @@
 EXPORT TDOUBLE
 dt_datetojulian(struct TAstroBase *tmod, TDATE *td)
 {
-	TDOUBLE j = td->tdtt_Int64 / 86400000000ULL + 2305813.5;
+	TDOUBLE j = td->tdt_Int64 / 86400000000ULL + 2305813.5;
 	return j;
 }
 
 static void
 dt_juliantodate(struct TAstroBase *tmod, TDOUBLE jd, TDATE *td)
 {
-	td->tdtt_Int64 = (jd - 2305813.5) * 86400000000ULL;
+	td->tdt_Int64 = (jd - 2305813.5) * 86400000000ULL;
 }
 
 static TDOUBLE
@@ -331,7 +331,7 @@
 dt_juliantodmy(struct TAstroBase *mod, TDOUBLE jd, TINT *pd, TINT *pm, TINT *py)
 {
 	TDATE dt;
-	dt.tdtt_Int64 = (jd - 2305813.5) * 86400000000ULL;
+	dt.tdt_Int64 = (jd - 2305813.5) * 86400000000ULL;
 	TUtilDateToDMY(mod->util, &dt, (TUINT *) pd, (TUINT *) pm, (TUINT *) py,
 		TNULL);
 }
diff -r bad5efe40a85 -r 70defb611a32 src/exec/exec_time.c
--- a/src/exec/exec_time.c	Sat Jan 10 03:04:39 2009 +0100
+++ b/src/exec/exec_time.c	Mon Jan 12 16:09:57 2009 +0100
@@ -172,7 +172,7 @@
 EXPORT void
 exec_AddDate(TEXECBASE *tmod, TDATE *d, TINT ndays, TTIME *tm)
 {
-	TUINT64 jd = d->tdtt_Int64;
+	TUINT64 jd = d->tdt_Int64;
 	TUINT64 nd = ndays;
 
 	nd *= 86400000000ULL;
@@ -185,7 +185,7 @@
 		jd += t;
 		jd += tm->ttm_USec;
 	}
-	d->tdtt_Int64 = jd;
+	d->tdt_Int64 = jd;
 }
 
 /*****************************************************************************/
@@ -197,11 +197,11 @@
 EXPORT void
 exec_SubDate(TEXECBASE *tmod, TDATE *d, TINT ndays, TTIME *tm)
 {
-	d->tdtt_Int64 -= (TINT64) ndays * 86400000000ULL;
+	d->tdt_Int64 -= (TINT64) ndays * 86400000000ULL;
 	if (tm)
 	{
-		d->tdtt_Int64 -= tm->ttm_Sec * 1000000;
-		d->tdtt_Int64 -= tm->ttm_USec;
+		d->tdt_Int64 -= tm->ttm_Sec * 1000000;
+		d->tdt_Int64 -= tm->ttm_USec;
 	}
 }
 
@@ -215,7 +215,7 @@
 EXPORT TINT
 exec_DiffDate(TEXECBASE *tmod, TDATE *d1, TDATE *d2, TTIME *tm)
 {
-	TUINT64 dd = d1->tdtt_Int64 - d2->tdtt_Int64;
+	TUINT64 dd = d1->tdt_Int64 - d2->tdt_Int64;
 	if (tm)
 	{
 		TUINT rd = dd % 86400000000ULL;
diff -r bad5efe40a85 -r 70defb611a32 src/hal/posix/hal.c
--- a/src/hal/posix/hal.c	Sat Jan 10 03:04:39 2009 +0100
+++ b/src/hal/posix/hal.c	Mon Jan 12 16:09:57 2009 +0100
@@ -472,7 +472,7 @@
 	**		11644473600000000 us
 	*/
 
-	TUINT64 t = dt->tdtt_Int64;
+	TUINT64 t = dt->tdt_Int64;
 	t -= 11644473600000000ULL;
 	t /= 1000000;
 	return (time_t) t;
@@ -526,7 +526,7 @@
 		syst *= 1000000;
 		syst += tv.tv_usec;
 		syst += 11644473600000000ULL;
-		datep->tdtt_Int64 = syst;
+		datep->tdt_Int64 = syst;
 	}
 
 	return 0;
@@ -900,7 +900,7 @@
 			x = hal_datebias(hal, &req->ttr_Data.ttr_Date.ttr_Date);
 			x *= 1000000;
 		case TTREQ_ADDUNIDATE:
-			x += req->ttr_Data.ttr_Date.ttr_Date.tdtt_Int64;


More information about the teklib-general mailing list