PostGIS  2.1.10dev-r@@SVN_REVISION@@
static int quantile_llist_delete ( struct quantile_llist_element element)
static

Definition at line 4002 of file rt_api.c.

References quantile_llist_element::next, quantile_llist_element::prev, RASTER_DEBUGF, and rtdealloc().

Referenced by quantile_llist_destroy(), and rt_band_get_quantiles_stream().

4002  {
4003  if (NULL == element) return 0;
4004 
4005  /* beginning of list */
4006  if (NULL == element->prev && NULL != element->next) {
4007  element->next->prev = NULL;
4008  }
4009  /* end of list */
4010  else if (NULL != element->prev && NULL == element->next) {
4011  element->prev->next = NULL;
4012  }
4013  /* within list */
4014  else if (NULL != element->prev && NULL != element->next) {
4015  element->prev->next = element->next;
4016  element->next->prev = element->prev;
4017  }
4018 
4019  RASTER_DEBUGF(4, "qle @ %p destroyed", element);
4020  rtdealloc(element);
4021 
4022  return 1;
4023 }
void rtdealloc(void *mem)
Definition: rt_api.c:882
struct quantile_llist_element * prev
Definition: rt_api.h:2330
struct quantile_llist_element * next
Definition: rt_api.h:2331
#define RASTER_DEBUGF(level, msg,...)
Definition: rt_api.h:285

Here is the call graph for this function:

Here is the caller graph for this function: