(simulate.c)
Corrected format specifiers, removed not needed casts, corrected some
casts.
Changed int to p_int in extract_limits(), added range check in
v_limited() and v_set_limits().
(ptrtable.c)
find_add_pointer(): p_uint is the better choice for converting a pointer
16-Sep-2008 (Zesstra)
(port.c)
Corrected 3 strftime() calls, the given buffer length was one smaller than
necessary.
Corrected a format specifier for an mp_int.
(ptrtable.c)
Changed mp_int in find_add_pointer() to p_int because it stores anyway a
void*
Correct two format specifiers.
(swap.c)
Corrected some format specifiers.
Increased field width for the numbers in 'status swap' a bit.
(strfuns.c, lex.c)
Corrected some format specifiers, changed/removed some unneccessary casts.
15-Sep-2008 (Zesstra)
(mapping.c)
corrected a lot of format specifiers
changed a bunch of int which are assigned a p_int to p_int (f_m_values(),
add_to_mapping_filter(), resize_mapping(), map_intersect(),
v_walk_mapping, x_filter_mapping(), x_map_mapping(), f_m_entry(),
f_unmkmapping(), _free_mapping(), check_map_for_destr(),
add_mapping(), compact_mapping(), struct set_mapping_user_locals,
set_mapping_user_filter(), set_mapping_user(), v_m_add(),
map_intersect_filter(), map_intersect(), v_mkmapping(),
f_m_reallocate(), f_widthof().
(i-svalue_cmp.h)
changed d in svalue_cmp() to p_int instead of int.
14-Sep-2008 (Zesstra)
(interpret.c)
Moved duplicate code for calculating the caller stack depth in a small
static function which will be inlined anyway.
13-Sep-2008 (Zesstra)
(interpret.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and changed some specifiers to the native datatype of the
variable and removed the casts.
Corrected some unchecked assignments of (m)p_(u)int to int by using the
driver type instead of int or adding range checks before the
assignments. Changed some longs to p_int as well.
Added some precompiler sanity checks for MAX_TRACE, SIZEOF_STACK,
TOTAL_TRACE_LENGTH and CACHE_SIZE which have to fit into int.
get_arg() used a static buffer with length of 10 but writes a long
with %ld. Increased buffer length to 12 and used snprintf()
instead of sprintf().
get_line_number_if_any(): changed calculation of pointers to the beginning
of lambdas to use the more portable offsetof() and to use (PTRTYPE)
instead of (char*) and (unsigned long) casts for the pointers.
(port.h)
Added check for pre-defined PRId32 to port.h for the (u)int32 type. If it
is not defined, define our own.
(closure.h)
Include which defines offsetof() in case it is not a compiler
builtin (uses by LAMBDA_VALUE_OFFSET).
(doc/efun.de/call_other.de)
Rephrased misleading sentence about __LPC_ARRAY_CALLS__.
07-Sep-2008 (Zesstra)
(closure.c, efuns.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and changed some specifiers to the native datatype of the
variable and removed the casts. Corrected some format specifiers which
were signed but the argument were unsigned.
(efuns.c) Corrected typo in error message in v_sha1() which reported
itself as md5().
06-Sep-2008 (Zesstra)
(lex.c, object.h, swap.c)
Changed format specifiers for mp_int to PRI*MPINT and for p_int to
PRI*PINT and removed some casts to long and used the correct format
specifiers for the actual datatype (e.g z for size_t).
(sprintf.c)
changed argument num of num_add() to p_int.
inserted the correct length modifier for the p_int type into the format
string for the system sprintf() call. (#528)