Lines Matching defs:ln
560 stp_list_item_t *ln; /* list node to add */
567 ln = stp_malloc(sizeof(stp_list_item_t));
568 ln->prev = ln->next = NULL;
571 ln->data = (void *) data;
574 stp_free(ln);
584 if (list->sortfunc(lnn->data, ln->data) <= 0)
614 /* got lnp; now insert the new ln */
617 ln->next = lnn;
619 if (!ln->prev) /* insert at start of list */
622 ln->prev = list->end;
624 list->start = ln;
625 list->end = ln;
630 if (!ln->prev && ln->next) /* insert at end of list */
631 ln->prev = ln->next->prev;
633 if (list->start == ln->next) /* prev was old end */
635 list->start = ln;
639 if (ln->next)
640 ln->next->prev = ln;
643 if (ln->prev)
644 ln->prev->next = ln;