1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

libcsa: always use time_t for tick

This commit is contained in:
OBATA Akio 2021-10-12 14:24:41 +09:00
parent 194ae3639f
commit 008bcba766
7 changed files with 21 additions and 21 deletions

View file

@ -317,7 +317,7 @@ struct cms_reminder_res {
% */ % */
struct cms_reminder_args { struct cms_reminder_args {
cms_name cal; cms_name cal;
long tick; time_t tick;
CSA_uint32 num_names; CSA_uint32 num_names;
cms_attr_name *names; cms_attr_name *names;
}; };

View file

@ -153,7 +153,7 @@ typedef struct Apptid_2 Apptid_2;
struct Reminder_2 { struct Reminder_2 {
struct Id_2 appt_id; struct Id_2 appt_id;
long tick; time_t tick;
Attribute_2 attr; Attribute_2 attr;
struct Reminder_2 *next; struct Reminder_2 *next;
}; };
@ -215,8 +215,8 @@ struct Access_Args_2 {
typedef struct Access_Args_2 Access_Args_2; typedef struct Access_Args_2 Access_Args_2;
struct Range_2 { struct Range_2 {
long key1; time_t key1;
long key2; time_t key2;
struct Range_2 *next; struct Range_2 *next;
}; };
typedef struct Range_2 Range_2; typedef struct Range_2 Range_2;
@ -233,7 +233,7 @@ typedef enum Table_Args_Type_2 Table_Args_Type_2;
struct Args_2 { struct Args_2 {
Table_Args_Type_2 tag; Table_Args_Type_2 tag;
union { union {
long tick; time_t tick;
Apptid_2 apptid; Apptid_2 apptid;
Uid_2 *key; Uid_2 *key;
Appt_2 *appt; Appt_2 *appt;

View file

@ -84,7 +84,7 @@ struct Apptid_2 {
struct Reminder_2 { struct Reminder_2 {
struct Id_2 appt_id; /* actual appt. key */ struct Id_2 appt_id; /* actual appt. key */
long tick; /* the happening tick */ time_t tick; /* the happening tick */
Attribute_2 attr; /* (attr, value) */ Attribute_2 attr; /* (attr, value) */
struct Reminder_2 *next; struct Reminder_2 *next;
}; };
@ -139,8 +139,8 @@ struct Access_Args_2 {
}; };
struct Range_2 { struct Range_2 {
long key1; /* lower bound tick */ time_t key1; /* lower bound tick */
long key2; /* upper bound tick */ time_t key2; /* upper bound tick */
struct Range_2 *next; struct Range_2 *next;
}; };

View file

@ -130,7 +130,7 @@ typedef struct Except_3 Except_3;
typedef Except_3 *Exception_3; typedef Except_3 *Exception_3;
struct Id_3 { struct Id_3 {
long tick; time_t tick;
long key; long key;
}; };
typedef struct Id_3 Id_3; typedef struct Id_3 Id_3;
@ -188,7 +188,7 @@ typedef struct Apptid_3 Apptid_3;
struct Reminder_3 { struct Reminder_3 {
struct Id_3 appt_id; struct Id_3 appt_id;
long tick; time_t tick;
Attribute_3 attr; Attribute_3 attr;
struct Reminder_3 *next; struct Reminder_3 *next;
}; };
@ -249,16 +249,16 @@ struct Access_Args_3 {
typedef struct Access_Args_3 Access_Args_3; typedef struct Access_Args_3 Access_Args_3;
struct Range_3 { struct Range_3 {
long key1; time_t key1;
long key2; time_t key2;
struct Range_3 *next; struct Range_3 *next;
}; };
typedef struct Range_3 Range_3; typedef struct Range_3 Range_3;
struct Keyrange_3 { struct Keyrange_3 {
long key; long key;
long tick1; time_t tick1;
long tick2; time_t tick2;
struct Keyrange_3 *next; struct Keyrange_3 *next;
}; };
typedef struct Keyrange_3 Keyrange_3; typedef struct Keyrange_3 Keyrange_3;
@ -276,7 +276,7 @@ typedef enum Table_Args_Type_3 Table_Args_Type_3;
struct Args_3 { struct Args_3 {
Table_Args_Type_3 tag; Table_Args_Type_3 tag;
union { union {
long tick; time_t tick;
Apptid_3 apptid; Apptid_3 apptid;
Uid_3 *key; Uid_3 *key;
Appt_3 *appt; Appt_3 *appt;

View file

@ -161,8 +161,8 @@ struct Access_Args_3 {
}; };
struct Range_3 { struct Range_3 {
long key1; /* lower bound tick */ time_t key1; /* lower bound tick */
long key2; /* upper bound tick */ time_t key2; /* upper bound tick */
struct Range_3 *next; struct Range_3 *next;
}; };

View file

@ -264,8 +264,8 @@ struct Access_Args_4 {
typedef struct Access_Args_4 Access_Args_4; typedef struct Access_Args_4 Access_Args_4;
struct Range_4 { struct Range_4 {
long key1; time_t key1;
long key2; time_t key2;
struct Range_4 *next; struct Range_4 *next;
}; };
typedef struct Range_4 Range_4; typedef struct Range_4 Range_4;

View file

@ -168,8 +168,8 @@ struct Access_Args_4 {
}; };
struct Range_4 { struct Range_4 {
long key1; /* lower bound tick */ time_t key1; /* lower bound tick */
long key2; /* upper bound tick */ time_t key2; /* upper bound tick */
struct Range_4 *next; struct Range_4 *next;
}; };