Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

24
dll/possum/llist.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef LLIST_H
#define LLIST_H 1
struct lnode_struct {
void *object;
struct lnode_struct *prev, *next;
};
struct llist_struct {
struct lnode_struct *first, *last, *current;
size_t length, size;
};
typedef struct lnode_struct lnode;
typedef struct llist_struct llist;
llist *lmake(size_t size);
int ldelete(llist *l);
int lpush(llist *l, void *object);
void *lindex(llist *l, size_t x);
#endif