1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-30 21:32:02 +00:00

MDate: Make time_t, not long. (#206)

MDate, generated into `vdate.c` from `mkvdate.c`, was being
stored as a `long` rather than a `time_t`. This led to some
casts, but also a bit of platform #ifdef'd code.

This makes that go away by storing it as the `time_t` value
that it really is.

Also, update some comments and minor nits.
This commit is contained in:
Bruce Mitchener
2021-01-11 09:44:31 +07:00
committed by GitHub
parent 19033bba89
commit 9ba7e78625
3 changed files with 18 additions and 13 deletions

View File

@@ -106,7 +106,7 @@ LispPTR *fixp_value(LispPTR *ptr) {
#define PAGES_IN_MBYTE 2048
void init_ifpage(int sysout_size) {
extern long MDate;
extern time_t MDate;
extern int DisplayType;
extern int Storage_expanded;
int new_lastvmem;
@@ -174,8 +174,8 @@ are null terminated instead */
}
#endif /* DOS */
/* sec from Oct-13-87 12:00 It's My birthday(take) */
/* MDate may be set by makefile(by mkvdate.c) */
/* Days from Oct-13-87 12:00 It's Takeshi's birthday. */
/* MDate may be set by vdate.c, generated by mkvdate.c. */
InterfacePage->rversion = (MDate - 561150000) / (60 * 60 * 24);
/* For DisplayType ,I couldn't insert this line into init_display */