runrev/livecode — pull request #1617 by peter-b (2014-12-18 12:44:53+00:00)
Title: [[misc-customtypes]] libfoundation: Check custom type func pointers.

Some custom types may not wish to implement all function pointers in
the corresponding `MCValueCustomCallbacks` structure -- for example,
some custom types may not support mutability and thus may not
implement a `mutable_copy` function. Furthermore, additional members
may be added to `struct MCValueCustomCallbacks` over time, requiring
every custom type to be adjusted unless the custom value support code
can cope with NULL function pointers.

This patch adds default implementations of all the functions defined
in `struct MCValueCustomCallbacks`, and calls them for any type that
leaves the corresponding function pointer as NULL.