diff options
author | DJ Delorie <dj@redhat.com> | 2001-10-16 02:55:31 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2001-10-16 02:55:31 +0000 |
commit | ba19b94f67aeec0722939ce17b4067c8fd05f4cc (patch) | |
tree | db034680b326cb43083236abf9737518d7e1c78a /libiberty/insque.c | |
parent | a3366758ce10f5bc06f1a128c4eb82cf2a82e455 (diff) | |
download | gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.zip gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.gz gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/insque.c')
-rw-r--r-- | libiberty/insque.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/libiberty/insque.c b/libiberty/insque.c index 775019f..c0c1180 100644 --- a/libiberty/insque.c +++ b/libiberty/insque.c @@ -2,24 +2,27 @@ This file is in the public domain. */ /* -NAME - insque, remque -- insert, remove an element from a queue -SYNOPSIS - struct qelem { - struct qelem *q_forw; - struct qelem *q_back; - char q_data[]; - }; +@deftypefn Supplemental void insque (struct qelem *@var{elem}, struct qelem *@var{pred}) +@deftypefnx Supplemental void remque (struct qelem *@var{elem}) - void insque (struct qelem *elem, struct qelem *pred) +Routines to manipulate queues built from doubly linked lists. The +@code{insque} routine inserts @var{elem} in the queue immediately +after @var{pred}. The @code{remque} routine removes @var{elem} from +its containing queue. These routines expect to be passed pointers to +structures which have as their first members a forward pointer and a +back pointer, like this prototype (although no prototype is provided): - void remque (struct qelem *elem) +@example +struct qelem @{ + struct qelem *q_forw; + struct qelem *q_back; + char q_data[]; +@}; +@end example + +@end deftypefn -DESCRIPTION - Routines to manipulate queues built from doubly linked lists. - The insque routine inserts ELEM in the queue immediately after - PRED. The remque routine removes ELEM from its containing queue. */ |