#include "libiberty.h"
#include "gdb_assert.h"
Go to the source code of this file.
Defines |
#define | QUEUE_enque(TYPE, Q, V) queue_ ## TYPE ## _enque ((Q), (V)) |
#define | QUEUE_deque(TYPE, Q) queue_ ## TYPE ## _deque (Q) |
#define | QUEUE_peek(TYPE, Q) queue_ ## TYPE ## _peek (Q) |
#define | QUEUE_is_empty(TYPE, Q) queue_ ## TYPE ## _is_empty (Q) |
#define | QUEUE_alloc(TYPE, FREE_FUNC) queue_ ## TYPE ## _alloc (FREE_FUNC) |
#define | QUEUE_length(TYPE, Q) queue_ ## TYPE ## _length (Q) |
#define | QUEUE_free(TYPE, Q) queue_ ## TYPE ## _free (Q) |
#define | QUEUE_iterate(TYPE, Q, OPERATE, PARAM) queue_ ## TYPE ## _iterate ((Q), (OPERATE), (PARAM)) |
#define | QUEUE_remove_elem(TYPE, Q, ITER) queue_ ## TYPE ## _remove_elem ((Q), (ITER)) |
#define | QUEUE(TYPE) struct queue_ ## TYPE |
#define | QUEUE_ELEM(TYPE) struct queue_elem_ ## TYPE |
#define | QUEUE_ITER(TYPE) struct queue_iter_ ## TYPE |
#define | QUEUE_ITER_FUNC(TYPE) queue_ ## TYPE ## _operate_func |
#define | DEFINE_QUEUE_P(TYPE) |
#define | DECLARE_QUEUE_P(TYPE) |
Define Documentation
Value:QUEUE (TYPE); \
QUEUE_ELEM (TYPE); \
QUEUE_ITER (TYPE); \
extern void \
queue_ ## TYPE ## _enque (QUEUE (TYPE) *q, TYPE v); \
extern TYPE \
queue_ ## TYPE ## _deque (QUEUE (TYPE) *q); \
extern int queue_ ## TYPE ## _is_empty (QUEUE (TYPE) *q); \
extern QUEUE (TYPE) * \
queue_ ## TYPE ## _alloc (void (*free_func) (TYPE)); \
extern int queue_ ## TYPE ## _length (QUEUE (TYPE) *q); \
extern TYPE \
queue_ ## TYPE ## _peek (QUEUE (TYPE) *q); \
extern void queue_ ## TYPE ## _free (QUEUE (TYPE) *q); \
typedef int QUEUE_ITER_FUNC(TYPE) (QUEUE (TYPE) *, \
QUEUE_ITER (TYPE) *, \
TYPE, \
void *); \
extern int \
queue_ ## TYPE ## _iterate (QUEUE (TYPE) *q, \
QUEUE_ITER_FUNC (TYPE) operate, \
void *); \
extern void \
queue_ ## TYPE ## _remove_elem (QUEUE (TYPE) *q, \
QUEUE_ITER (TYPE) *iter); \
Definition at line 275 of file queue.h.
#define QUEUE |
( |
|
TYPE | ) |
struct queue_ ## TYPE |
#define QUEUE_alloc |
( |
|
TYPE, |
|
|
|
FREE_FUNC |
|
) |
| queue_ ## TYPE ## _alloc (FREE_FUNC) |
#define QUEUE_deque |
( |
|
TYPE, |
|
|
|
Q |
|
) |
| queue_ ## TYPE ## _deque (Q) |
#define QUEUE_ELEM |
( |
|
TYPE | ) |
struct queue_elem_ ## TYPE |
#define QUEUE_enque |
( |
|
TYPE, |
|
|
|
Q, |
|
|
|
V |
|
) |
| queue_ ## TYPE ## _enque ((Q), (V)) |
#define QUEUE_free |
( |
|
TYPE, |
|
|
|
Q |
|
) |
| queue_ ## TYPE ## _free (Q) |
#define QUEUE_ITER |
( |
|
TYPE | ) |
struct queue_iter_ ## TYPE |
#define QUEUE_iterate |
( |
|
TYPE, |
|
|
|
Q, |
|
|
|
OPERATE, |
|
|
|
PARAM |
|
) |
| queue_ ## TYPE ## _iterate ((Q), (OPERATE), (PARAM)) |
#define QUEUE_length |
( |
|
TYPE, |
|
|
|
Q |
|
) |
| queue_ ## TYPE ## _length (Q) |
#define QUEUE_peek |
( |
|
TYPE, |
|
|
|
Q |
|
) |
| queue_ ## TYPE ## _peek (Q) |
#define QUEUE_remove_elem |
( |
|
TYPE, |
|
|
|
Q, |
|
|
|
ITER |
|
) |
| queue_ ## TYPE ## _remove_elem ((Q), (ITER)) |