From 66c8c3371c2ea62b34f91b9879f00dfc88e197de Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 6 Jul 2014 00:47:37 +0200 Subject: [PATCH] Code beautifying in gswe-timestamp.c Wrap really long lines --- src/gswe-timestamp.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/gswe-timestamp.c b/src/gswe-timestamp.c index 6d7353d..adc51d7 100644 --- a/src/gswe-timestamp.c +++ b/src/gswe-timestamp.c @@ -400,7 +400,17 @@ gswe_timestamp_calculate_gregorian(GsweTimestamp *timestamp, GError **err) } swe_jdet_to_utc(timestamp->priv->julian_day, SE_GREG_CAL, &utc_year, &utc_month, &utc_day, &utc_hour, &utc_minute, &utc_second); - swe_utc_time_zone(utc_year, utc_month, utc_day, utc_hour, utc_minute, utc_second, 0 - timestamp->priv->gregorian_timezone_offset, ×tamp->priv->gregorian_year, ×tamp->priv->gregorian_month, ×tamp->priv->gregorian_day, ×tamp->priv->gregorian_hour, ×tamp->priv->gregorian_minute, &local_second); + swe_utc_time_zone( + utc_year, utc_month, utc_day, + utc_hour, utc_minute, utc_second, + 0 - timestamp->priv->gregorian_timezone_offset, + ×tamp->priv->gregorian_year, + ×tamp->priv->gregorian_month, + ×tamp->priv->gregorian_day, + ×tamp->priv->gregorian_hour, + ×tamp->priv->gregorian_minute, + &local_second + ); timestamp->priv->gregorian_second = floor(local_second); timestamp->priv->gregorian_microsecond = (local_second - floor(local_second)) * 1000; } @@ -818,7 +828,17 @@ gswe_timestamp_calculate_julian(GsweTimestamp *timestamp, GError **err) return; } - swe_utc_time_zone(timestamp->priv->gregorian_year, timestamp->priv->gregorian_month, timestamp->priv->gregorian_day, timestamp->priv->gregorian_hour, timestamp->priv->gregorian_minute, timestamp->priv->gregorian_second + timestamp->priv->gregorian_microsecond / 1000.0, timestamp->priv->gregorian_timezone_offset, &utc_year, &utc_month, &utc_day, &utc_hour, &utc_minute, &utc_second); + swe_utc_time_zone( + timestamp->priv->gregorian_year, + timestamp->priv->gregorian_month, + timestamp->priv->gregorian_day, + timestamp->priv->gregorian_hour, + timestamp->priv->gregorian_minute, + timestamp->priv->gregorian_second + timestamp->priv->gregorian_microsecond / 1000.0, + timestamp->priv->gregorian_timezone_offset, + &utc_year, &utc_month, &utc_day, + &utc_hour, &utc_minute, &utc_second + ); if ((retval = swe_utc_to_jd(utc_year, utc_month, utc_day, utc_hour, utc_minute, utc_second, SE_GREG_CAL, dret, serr)) == ERR) { g_set_error(err, GSWE_ERROR, GSWE_ERROR_SWE_FATAL, "Swiss Ephemeris error: %s", serr);