X-Git-Url: http://www.sigaev.ru/git/gitweb.cgi?a=blobdiff_plain;f=glist.c;h=4422fd6be715cf0cd8f4afe910f769c59d420fdd;hb=HEAD;hp=ba9fc9d0cc07880981c5a32f8c428de36679b617;hpb=d6ae68e99d2914e38385befdea7b7b7ef163a08e;p=tedtools.git diff --git a/glist.c b/glist.c index ba9fc9d..4422fd6 100644 --- a/glist.c +++ b/glist.c @@ -103,11 +103,21 @@ GListPush(GList *l, void *ptr) { return insertCell(l, GLIST_TAIL(l), makeCell(ptr)); } +GList* +GListPushCell(GList *l, GListCell* c) { + return insertCell(l, GLIST_TAIL(l), c); +} + GList* GListUnshift(GList *l, void *ptr) { return insertCell(l, NULL, makeCell(ptr)); } +GList* +GListUnshiftCell(GList *l, GListCell* c) { + return insertCell(l, NULL, c); +} + GList* GListDelete(GList *l, GListCell *c) { if (GLIST_LENGTH(l) <= 0)