allocation_funcs: handle inline functions better