GDB (API)
Defines
/home/stan/gdb/src/gdb/common/queue.h File Reference
#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

#define DECLARE_QUEUE_P (   TYPE)
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 DEFINE_QUEUE_P (   TYPE)

Definition at line 101 of file queue.h.

#define QUEUE (   TYPE)    struct queue_ ## TYPE

Definition at line 96 of file queue.h.

#define QUEUE_alloc (   TYPE,
  FREE_FUNC 
)    queue_ ## TYPE ## _alloc (FREE_FUNC)

Definition at line 73 of file queue.h.

#define QUEUE_deque (   TYPE,
 
)    queue_ ## TYPE ## _deque (Q)

Definition at line 62 of file queue.h.

#define QUEUE_ELEM (   TYPE)    struct queue_elem_ ## TYPE

Definition at line 97 of file queue.h.

#define QUEUE_enque (   TYPE,
  Q,
 
)    queue_ ## TYPE ## _enque ((Q), (V))

Definition at line 58 of file queue.h.

#define QUEUE_free (   TYPE,
 
)    queue_ ## TYPE ## _free (Q)

Definition at line 79 of file queue.h.

#define QUEUE_is_empty (   TYPE,
 
)    queue_ ## TYPE ## _is_empty (Q)

Definition at line 69 of file queue.h.

#define QUEUE_ITER (   TYPE)    struct queue_iter_ ## TYPE

Definition at line 98 of file queue.h.

#define QUEUE_ITER_FUNC (   TYPE)    queue_ ## TYPE ## _operate_func

Definition at line 99 of file queue.h.

#define QUEUE_iterate (   TYPE,
  Q,
  OPERATE,
  PARAM 
)    queue_ ## TYPE ## _iterate ((Q), (OPERATE), (PARAM))

Definition at line 86 of file queue.h.

#define QUEUE_length (   TYPE,
 
)    queue_ ## TYPE ## _length (Q)

Definition at line 76 of file queue.h.

#define QUEUE_peek (   TYPE,
 
)    queue_ ## TYPE ## _peek (Q)

Definition at line 66 of file queue.h.

#define QUEUE_remove_elem (   TYPE,
  Q,
  ITER 
)    queue_ ## TYPE ## _remove_elem ((Q), (ITER))

Definition at line 91 of file queue.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines