Commit d814eb36 authored by Pekka Pessi's avatar Pekka Pessi

Defining MSG_TIME_MAX both in msg_types.h and msg_time.h.

darcs-hash:20051107181138-65a35-80f1f723eb02376dcb824a166af39e90ba0091a9.gz
parent 9c734541
......@@ -37,16 +37,19 @@
*/
#ifndef MSG_TIME_T_DEFINED
#define MSG_TIME_T_DEFINED unsigned long
#define MSG_TIME_T_DEFINED
/** Time in seconds since epoch (1900-Jan-01 00:00:00). */
typedef unsigned long msg_time_t;
#endif
#ifndef MSG_TIME_MAX
/** Latest time that can be expressed with msg_time_t. @HIDE */
#define MSG_TIME_MAX ((msg_time_t)ULONG_MAX)
#endif
/* Current time. */
msg_time_t msg_now(void);
#define MSG_TIME_MAX (ULONG_MAX)
int msg_date_delta_d(char const **ss, msg_time_t *date, msg_time_t *delta);
int msg_delta_d(char const **ss, msg_time_t *delta);
......
......@@ -47,11 +47,16 @@ typedef struct msg_href_s msg_href_t;
typedef struct msg_s msg_t;
#ifndef MSG_TIME_T_DEFINED
#define MSG_TIME_T_DEFINED unsigned long
#define MSG_TIME_T_DEFINED
/** Time in seconds since epoch (1900-Jan-01 00:00:00). */
typedef unsigned long msg_time_t;
#endif
#ifndef MSG_TIME_MAX
/** Latest time that can be expressed with msg_time_t. @HIDE */
#define MSG_TIME_MAX ((msg_time_t)ULONG_MAX)
#endif
#ifndef MSG_PUB_T
#ifdef MSG_OBJ_T
#define MSG_PUB_T MSG_OBJ_T
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment