add pop/push cells into list
[tedtools.git] / glist.c
diff --git a/glist.c b/glist.c
index ba9fc9d..4422fd6 100644 (file)
--- 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)