Move the portable time code into core. clock() goes into sys (as it calls

times()).
This commit is contained in:
David Given 2018-06-23 19:49:29 +02:00
parent 64ae1d7583
commit 3f10299f43
14 changed files with 4 additions and 20 deletions

View file

@ -39,16 +39,15 @@ for _, plat in ipairs(vars.plats) do
"./core/locale/*.c", "./core/locale/*.c",
"./core/setjmp/*.c", "./core/setjmp/*.c",
"./core/setjmp/*.e", "./core/setjmp/*.e",
"./core/math/*.c", -- hypot.c "./core/math/*.c",
"./core/math/*.e", "./core/math/*.e",
"./core/ctype/*.c", "./core/ctype/*.c",
"./core/misc/*.c", "./core/misc/*.c",
"./core/time/*.c",
"./sys/malloc/*.c", "./sys/malloc/*.c",
"./sys/exit/*.c", "./sys/exit/*.c",
"./sys/stdio/*.c", "./sys/stdio/*.c",
"./sys/misc/*.c", "./sys/misc/*.c",
"./stdio/*.c",
"./time/*.c",
}, },
hdrs = {}, -- must be empty hdrs = {}, -- must be empty
deps = { deps = {

View file

@ -17,8 +17,8 @@ extern const int _ytab[2][12];
extern const char *_days[]; extern const char *_days[];
extern const char *_months[]; extern const char *_months[];
void _tzset(void); extern void _tzset(void);
unsigned _dstget(struct tm *timep); extern unsigned _dstget(struct tm *timep);
extern long _timezone; extern long _timezone;
extern long _dst_off; extern long _dst_off;

View file

@ -1,12 +0,0 @@
loc_time.h
ctime.c
asctime.c
localtime.c
clock.c
difftime.c
gmtime.c
mktime.c
strftime.c
time.c
tzset.c
misc.c

View file

@ -1,3 +0,0 @@
clean:
rm -f ctime.o asctime.o localtime.o clock.o difftime.o gmtime.o \
mktime.o strftime.o time.o tzset.o misc.o OLIST