• Nikias Bassen's avatar
    Change internal storage of PLIST_DATE values from struct timeval to double · 912cb459
    Nikias Bassen authored
    This removes the timeval union member from the plist_data_t structure.
    Since struct timeval is 2x64bit on 64bit platforms this member unnecessarily
    grew the union size to 16 bytes while a size of 8 bytes is sufficient.
    Also, on 32bit platforms struct timeval is only 2x32bit of size, limiting the
    range of possible time values. In addition the binary property list format
    also stores PLIST_DATE nodes as double.
    912cb459
plist.c 20.1 KB