julian_day.h | julian_day.h | |||
---|---|---|---|---|
skipping to change at line 52 | skipping to change at line 52 | |||
/*! \fn void ln_get_date (double JD, struct ln_date * date) | /*! \fn void ln_get_date (double JD, struct ln_date * date) | |||
* \ingroup calendar | * \ingroup calendar | |||
* \brief Calculate the date from the julian day. | * \brief Calculate the date from the julian day. | |||
*/ | */ | |||
void LIBNOVA_EXPORT ln_get_date (double JD, struct ln_date * date); | void LIBNOVA_EXPORT ln_get_date (double JD, struct ln_date * date); | |||
/*! \fn void ln_get_date_from_timet (time_t * t, struct ln_date * date) | /*! \fn void ln_get_date_from_timet (time_t * t, struct ln_date * date) | |||
* \\ingroup calendar | * \\ingroup calendar | |||
* \brief Set date from system time | * \brief Set date from system time | |||
*/ | */ | |||
#ifndef __WIN32__ | ||||
void LIBNOVA_EXPORT ln_get_date_from_timet (time_t * t, struct ln_date * da te); | void LIBNOVA_EXPORT ln_get_date_from_timet (time_t * t, struct ln_date * da te); | |||
#endif | ||||
/*! \fn void ln_get_date_from_tm (struct tm * t, struct ln_date * date) | /*! \fn void ln_get_date_from_tm (struct tm * t, struct ln_date * date) | |||
* \\ingroup calendar | * \\ingroup calendar | |||
* \brief Set date from system tm structure | * \brief Set date from system tm structure | |||
*/ | */ | |||
void LIBNOVA_EXPORT ln_get_date_from_tm (struct tm * t, struct ln_date * da te); | void LIBNOVA_EXPORT ln_get_date_from_tm (struct tm * t, struct ln_date * da te); | |||
/*! \fn void ln_get_local_date (double JD, struct ln_zonedate * zonedate) | /*! \fn void ln_get_local_date (double JD, struct ln_zonedate * zonedate) | |||
* \ingroup calender | * \ingroup calender | |||
* \brief Calculate the zone date from the Julian day | * \brief Calculate the zone date from the Julian day | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 0 lines changed or added | |||
libnova.h | libnova.h | |||
---|---|---|---|---|
skipping to change at line 134 | skipping to change at line 134 | |||
#include <libnova/comet.h> | #include <libnova/comet.h> | |||
#include <libnova/parabolic_motion.h> | #include <libnova/parabolic_motion.h> | |||
#include <libnova/refraction.h> | #include <libnova/refraction.h> | |||
#include <libnova/rise_set.h> | #include <libnova/rise_set.h> | |||
#include <libnova/angular_separation.h> | #include <libnova/angular_separation.h> | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#include <libnova/utility.h> | #include <libnova/utility.h> | |||
#include <libnova/hyperbolic_motion.h> | #include <libnova/hyperbolic_motion.h> | |||
#include <libnova/parallax.h> | #include <libnova/parallax.h> | |||
#include <libnova/airmass.h> | #include <libnova/airmass.h> | |||
#include <libnova/heliocentric_time.h> | ||||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
ln_types.h | ln_types.h | |||
---|---|---|---|---|
skipping to change at line 330 | skipping to change at line 330 | |||
/*! | /*! | |||
* \struct ln_nutation | * \struct ln_nutation | |||
* \brief Nutation in longitude, ecliptic and obliquity. | * \brief Nutation in longitude, ecliptic and obliquity. | |||
* | * | |||
* Contains Nutation in longitude, obliquity and ecliptic obliquity. | * Contains Nutation in longitude, obliquity and ecliptic obliquity. | |||
* | * | |||
* Angles are expressed in degrees. | * Angles are expressed in degrees. | |||
*/ | */ | |||
struct ln_nutation | struct ln_nutation | |||
{ | { | |||
double longitude; /*!< Nutation in longitude */ | double longitude; /*!< Nutation in longitude, in degrees */ | |||
double obliquity; /*!< Nutation in obliquity */ | double obliquity; /*!< Nutation in obliquity, in degrees */ | |||
double ecliptic; /*!< Obliquity of the ecliptic */ | double ecliptic; /*!< Mean obliquity of the ecliptic, in degr | |||
ees */ | ||||
}; | }; | |||
/* Definitions of POSIX structures for Win32. */ | /* Definitions of POSIX structures for Win32. */ | |||
#ifdef __WIN32__ | #ifdef __WIN32__ | |||
#include <time.h> | ||||
struct timeval | struct timeval | |||
{ | { | |||
long tv_sec; /* count of seconds since Jan. 1, 1970 */ | time_t tv_sec; /* count of seconds since Jan. 1, 1970 */ | |||
long tv_usec; /* and microseconds */ | long tv_usec; /* and microseconds */ | |||
}; | }; | |||
struct timezone | struct timezone | |||
{ | { | |||
int tz_minuteswest; /* Minutes west of GMT */ | int tz_minuteswest; /* Minutes west of GMT */ | |||
int tz_dsttime; /* DST correction offset */ | int tz_dsttime; /* DST correction offset */ | |||
}; | }; | |||
#endif /* __WIN32__ */ | #endif /* __WIN32__ */ | |||
End of changes. 3 change blocks. | ||||
4 lines changed or deleted | 7 lines changed or added | |||
utility.h | utility.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
#ifndef _LN_UTILITY_H | #ifndef _LN_UTILITY_H | |||
#define _LN_UTILITY_H | #define _LN_UTILITY_H | |||
#include <libnova/ln_types.h> | #include <libnova/ln_types.h> | |||
#ifdef __WIN32__ | #ifdef __WIN32__ | |||
#include <time.h> | #include <time.h> | |||
// cbrt replacement | // cbrt replacement | |||
#define cbrt(x) pow (x,1.0/3.0) | #define cbrt(x) pow (x,1.0/3.0) | |||
// nan | ||||
#define nan(x) 0 | ||||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/*! \defgroup version libnova library version information | /*! \defgroup version libnova library version information | |||
*/ | */ | |||
/*! \fn const char * ln_get_version (void) | /*! \fn const char * ln_get_version (void) | |||
skipping to change at line 238 | skipping to change at line 236 | |||
char *strtok_r(char *str, const char *sep, char **last); | char *strtok_r(char *str, const char *sep, char **last); | |||
#endif /* __WIN32__ */ | #endif /* __WIN32__ */ | |||
/* C89 substitutions for C99 functions. */ | /* C89 substitutions for C99 functions. */ | |||
#ifdef __C89_SUB__ | #ifdef __C89_SUB__ | |||
/* Simple cube root */ | /* Simple cube root */ | |||
double cbrt (double x); | double cbrt (double x); | |||
/* Not a Number function generator */ | #endif /* __C89_SUB__ */ | |||
double nan (const char *code); | ||||
#ifndef HAVE_ROUND | ||||
/* Simple round to nearest */ | /* Simple round to nearest */ | |||
double round (double x); | double round (double x); | |||
#endif /* __C89_SUB__ */ | #endif /* !HAVE_ROUND */ | |||
#if defined(__WIN32__) || defined(sun) || defined(__C89_SUB__) | ||||
/* Not a Number function generator */ | ||||
double nan (const char *code); | ||||
#endif /* defined(__WIN32__) || defined(sun) || defined(__C89_SUB__) */ | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
}; | }; | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 11 lines changed or added | |||