Back to index

cell-binutils  2.17cvs20070401
Classes | Functions
insque.c File Reference

Go to the source code of this file.

Classes

struct  qelem

Functions

void insque (struct qelem *elem, struct qelem *pred)
void remque (struct qelem *elem)

Class Documentation

struct qelem

Definition at line 29 of file insque.c.

Collaboration diagram for qelem:
Class Members
struct qelem * q_back
struct qelem * q_forw

Function Documentation

void insque ( struct qelem elem,
struct qelem pred 
)

Definition at line 36 of file insque.c.

{
  elem -> q_forw = pred -> q_forw;
  pred -> q_forw -> q_back = elem;
  elem -> q_back = pred;
  pred -> q_forw = elem;
}
void remque ( struct qelem elem)

Definition at line 46 of file insque.c.

{
  elem -> q_forw -> q_back = elem -> q_back;
  elem -> q_back -> q_forw = elem -> q_forw;
}