Add operations to qlist to allow it to be used as a stack
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 11 Nov 2009 16:48:51 +0000 (10:48 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 17 Nov 2009 14:49:38 +0000 (08:49 -0600)
commitc9df178515ce55737ce0b2e7a597209c6a2a0f51
treeff265c330560540c6ce6b3386b5ac21989ef08f5
parent0d01045fc3967ee8f4f11706236d45605aad757d
Add operations to qlist to allow it to be used as a stack

This makes lists no longer invariant. It's a very useful bit of functionality
though.

To deal with the fact that lists are no longer invariant, introduce a deep
copy mechanism for lists.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qlist.c
qlist.h