trees REFACTOR get rid of __typeof__ from LY_LIST_INSERT() macro
trees REFACTOR get rid of __typeof__ from LY_LIST_INSERT() macro

__typeof__ is (widely used, but) compiler-specific extension, so
implement the functionality without it. Furthermore, also avoid implicit
cast connected with void* which is not welcome by C++ compilers.

CESNET/libyang,sartura/libyang,sartura/libyang,sartura/libyang,sartura/libyang,sartura/libyang,CESNET/libyang,sartura/libyang