evalEmpire / y2038

Fix time.h on 32 bit machines to work past the year 2038 bug
https://github.com/schwern/y2038/wiki
MIT License
114 stars 24 forks source link

mktime64 test fixes, and optimizations #14

Closed rurban closed 7 years ago

rurban commented 8 years ago

merge and fix rdiez' improvements. improve the Makefile, detect Linux and Darwin, and add the needed HAS_TM defines. support make DEBUG=1 and USE_TM64=1 add tap.h declarations replace %lld printf with %PRId64 from inttypes.h Fix fragile t/mktime64.t use an hour which does not overflow to the next or prev day. test all kind of years, esp. leap years with out of bound dates

various minor optimizations

jakesylvestre commented 8 years ago

+1 on merge.

schwern commented 7 years ago

Thanks a lot for doing all that work! Sorry it took so long to review and merge.

rurban commented 7 years ago

What's a .i file for?

It's the naming convention for cc -E preprocessed .c files. You inspect macro expansions and included headers.

rurban commented 7 years ago

Welcome back! We missed you