diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2008-03-27 08:56:06 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-03-27 08:56:06 -0700 |
commit | 28f4c25a9aa457ed32cda26e0ee1bc9b6cc80bc3 (patch) | |
tree | 06aaf13d82b017ce48fc01fd73269b5fecf00444 /test | |
parent | fcae0e737240308c2376f0611f453c7e14091b20 (diff) |
Add dep_pop wrapper around strarg_pop
Added a dep_pop wrapper API around strarg_pop for dep_t types.
Diffstat (limited to 'test')
-rw-r--r-- | test/tdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tdep.c b/test/tdep.c index b88919e..2fd83db 100644 --- a/test/tdep.c +++ b/test/tdep.c @@ -24,8 +24,16 @@ int main(int argc, char *argv[]) bar = dep_copy(foo); dep_add(bar, "again"); + printf("Contents of bar dep:\n"); print_dep(bar); + printf("Removing last two deps from foo\n"); + dep_pop(foo); + dep_pop(foo); + + printf("Contents of foo dep:\n"); + print_dep(foo); + dep_free(foo); dep_free(bar); |