diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-09-06 15:47:08 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-09-06 15:47:08 (GMT) |
commit | 3173b904d5d56a8b5e6bf549c97e3fc49da6c5ba (patch) | |
tree | f5ea74177fcbc05558b85b9f2e6db36aa1ca3b86 /src/common | |
parent | ef3b996ad359e0da5e93184dab9200fad9105faf (diff) |
Provided some methods to interact with a GDB server.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@110 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/dllist.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/dllist.h b/src/common/dllist.h index 5941f64..3feef5c 100644 --- a/src/common/dllist.h +++ b/src/common/dllist.h @@ -100,6 +100,15 @@ void __dl_list_splice(dl_list_item *, dl_list_head); } \ while(0) +#define dl_list_push dl_list_add_tail + +#define dl_list_pop(head, type, member) \ + ({ \ + type *_result = *head; \ + dl_list_del(_result, head, type, member); \ + _result; \ + }) + #define dl_list_splice_before(pos, head1, head2, type, member) \ do \ { \ |