mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 19:12:25 +00:00
changed Kernel0.Mod for TimeDesc -- antranigv
This commit is contained in:
parent
a80cd3b643
commit
90ef9158d4
1 changed files with 18 additions and 1 deletions
|
|
@ -8,9 +8,26 @@ MODULE Kernel0;
|
||||||
IMPORT SYSTEM, Unix, Args, Strings, version;
|
IMPORT SYSTEM, Unix, Args, Strings, version;
|
||||||
|
|
||||||
TYPE
|
TYPE
|
||||||
|
(* from time.h on OpenBSD; added yday; changed gmtoff, zone order;
|
||||||
|
sec to isdst changed to INTEGER; -- antranigv
|
||||||
|
struct tm {
|
||||||
|
int tm_sec;
|
||||||
|
int tm_min;
|
||||||
|
int tm_hour;
|
||||||
|
int tm_mday;
|
||||||
|
int tm_mon;
|
||||||
|
int tm_year;
|
||||||
|
int tm_wday;
|
||||||
|
int tm_yday;
|
||||||
|
int tm_isdst;
|
||||||
|
long tm_gmtoff;
|
||||||
|
char *tm_zone;
|
||||||
|
}; *)
|
||||||
|
|
||||||
RealTime = POINTER TO TimeDesc;
|
RealTime = POINTER TO TimeDesc;
|
||||||
TimeDesc = RECORD
|
TimeDesc = RECORD
|
||||||
sec, min, hour, mday, mon, year, wday, isdst, zone, gmtoff: LONGINT
|
sec, min, hour, mday, mon, year, wday, yday, isdst : INTEGER;
|
||||||
|
gmtoff, zone : LONGINT
|
||||||
(* sec, min, hour, mday, mon, year, wday, isdst, zone, gmtoff: INTEGER*)
|
(* sec, min, hour, mday, mon, year, wday, isdst, zone, gmtoff: INTEGER*)
|
||||||
END ;
|
END ;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue