Changeset 609 for branches/GNU/src/binutils/libiberty/insque.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/insque.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 3 3 4 4 /* 5 NAME6 insque, remque -- insert, remove an element from a queue7 5 8 SYNOPSIS 9 struct qelem { 10 struct qelem *q_forw; 11 struct qelem *q_back; 12 char q_data[]; 13 }; 6 @deftypefn Supplemental void insque (struct qelem *@var{elem}, struct qelem *@var{pred}) 7 @deftypefnx Supplemental void remque (struct qelem *@var{elem}) 14 8 15 void insque (struct qelem *elem, struct qelem *pred) 9 Routines to manipulate queues built from doubly linked lists. The 10 @code{insque} routine inserts @var{elem} in the queue immediately 11 after @var{pred}. The @code{remque} routine removes @var{elem} from 12 its containing queue. These routines expect to be passed pointers to 13 structures which have as their first members a forward pointer and a 14 back pointer, like this prototype (although no prototype is provided): 16 15 17 void remque (struct qelem *elem) 16 @example 17 struct qelem @{ 18 struct qelem *q_forw; 19 struct qelem *q_back; 20 char q_data[]; 21 @}; 22 @end example 18 23 19 DESCRIPTION 20 Routines to manipulate queues built from doubly linked lists. 21 The insque routine inserts ELEM in the queue immediately after 22 PRED. The remque routine removes ELEM from its containing queue. 24 @end deftypefn 25 23 26 */ 24 27 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.