PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ quantile_llist_delete()

static int quantile_llist_delete ( struct quantile_llist_element element)
static

Definition at line 856 of file rt_statistics.c.

856 {
857 if (NULL == element) return 0;
858
859 /* beginning of list */
860 if (NULL == element->prev && NULL != element->next) {
861 element->next->prev = NULL;
862 }
863 /* end of list */
864 else if (NULL != element->prev && NULL == element->next) {
865 element->prev->next = NULL;
866 }
867 /* within list */
868 else if (NULL != element->prev && NULL != element->next) {
869 element->prev->next = element->next;
870 element->next->prev = element->prev;
871 }
872
873 RASTER_DEBUGF(4, "qle @ %p destroyed", element);
874 rtdealloc(element);
875
876 return 1;
877}
#define RASTER_DEBUGF(level, msg,...)
Definition librtcore.h:308
void rtdealloc(void *mem)
Definition rt_context.c:206
struct quantile_llist_element * prev
Definition librtcore.h:2615
struct quantile_llist_element * next
Definition librtcore.h:2616

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

Referenced by quantile_llist_destroy(), and rt_band_get_quantiles_stream().

Here is the call graph for this function:
Here is the caller graph for this function: