PostGIS  2.1.10dev-r@@SVN_REVISION@@
void rt_install_default_allocators ( void  )

Useful in raster core testing and in the (future) loader, when we need to use raster core functions but we don't have PostgreSQL backend behind.

Apply the default memory management (malloc() and free()) and error handlers.

We must take care of memory by ourselves in those situations

Definition at line 830 of file rt_api.c.

References rt_context_t::alloc, rt_context_t::dealloc, default_rt_allocator(), default_rt_deallocator(), default_rt_error_handler(), default_rt_info_handler(), default_rt_reallocator(), default_rt_warning_handler(), rt_context_t::err, rt_context_t::info, rt_context_t::realloc, and rt_context_t::warn.

831 {
838 }
rt_message_handler info
Definition: rt_api.c:809
rt_message_handler warn
Definition: rt_api.c:808
rt_reallocator realloc
Definition: rt_api.c:805
void default_rt_info_handler(const char *fmt, va_list ap)
Definition: rt_api.c:788
void default_rt_error_handler(const char *fmt, va_list ap)
Definition: rt_api.c:762
void default_rt_deallocator(void *mem)
Definition: rt_api.c:756
rt_deallocator dealloc
Definition: rt_api.c:806
static struct rt_context_t ctx_t
Definition: rt_api.c:813
void * default_rt_reallocator(void *mem, size_t size)
Definition: rt_api.c:749
void * default_rt_allocator(size_t size)
The default memory/logging handlers installed by lwgeom_install_default_allocators() ...
Definition: rt_api.c:742
rt_message_handler err
Definition: rt_api.c:807
rt_allocator alloc
Definition: rt_api.c:804
void default_rt_warning_handler(const char *fmt, va_list ap)
Definition: rt_api.c:775

Here is the call graph for this function: