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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user