Branch: Tag:

2018-06-08

2018-06-08 13:22:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Pike.get_runtime_info: Report the size of time_t too.

Adds the entry "time_size" to the result from Pike.get_runtime_info().

2741:    *! @member int "int_size"    *! The number of bits in the native integer type.    *! Usually @expr{32@} or @expr{64@}. +  *! @member int "time_size" +  *! The number of bits in the native @tt{time_t@} type. +  *! This is typically the same value as @expr{"int_size"@}.    *! @member int "float_size"    *! The number of bits in the native floating point type.    *! Usually @expr{32@} or @expr{64@}.
2761:    push_int(PIKE_BYTEORDER);    push_static_text("int_size");    push_int(sizeof(INT_TYPE) * 8); +  push_static_text("time_size"); +  push_int(sizeof(time_t) * 8);    push_static_text("float_size");    push_int(sizeof(FLOAT_TYPE) * 8);    push_static_text("auto_bignum");    push_int(1); -  f_aggregate_mapping(6*2); +  f_aggregate_mapping(7*2);   }      /*! @endmodule