summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini2018-12-10 18:03:06 +0100
committerPaolo Bonzini2019-01-11 15:46:55 +0100
commitf95bb39cf1014cfffbc94a1b4cea42864940fe3a (patch)
tree809e8e0f90f4d5e642d0b220c92312432ea16fcd /include
parentqemu/queue.h: typedef QTAILQ heads (diff)
downloadqemu-f95bb39cf1014cfffbc94a1b4cea42864940fe3a.tar.gz
qemu-f95bb39cf1014cfffbc94a1b4cea42864940fe3a.tar.xz
qemu-f95bb39cf1014cfffbc94a1b4cea42864940fe3a.zip
qemu/queue.h: remove Q_TAILQ_{HEAD,ENTRY}
These are not present for other kinds of queue, and unused. Zap them before more changes are made to the QTAILQ implementation. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/queue.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/include/qemu/queue.h b/include/qemu/queue.h
index ac418efc43..b9571e93d8 100644
--- a/include/qemu/queue.h
+++ b/include/qemu/queue.h
@@ -350,22 +350,20 @@ struct { \
/*
* Tail queue definitions.
*/
-#define Q_TAILQ_HEAD(name, type, qual) \
+#define QTAILQ_HEAD(name, type) \
struct name { \
- qual type *tqh_first; /* first element */ \
- qual type *qual *tqh_last; /* addr of last next element */ \
+ type *tqh_first; /* first element */ \
+ type **tqh_last; /* addr of last next element */ \
}
-#define QTAILQ_HEAD(name, type) Q_TAILQ_HEAD(name, struct type,)
#define QTAILQ_HEAD_INITIALIZER(head) \
{ NULL, &(head).tqh_first }
-#define Q_TAILQ_ENTRY(type, qual) \
+#define QTAILQ_ENTRY(type) \
struct { \
- qual type *tqe_next; /* next element */ \
- qual type *qual *tqe_prev; /* address of previous next element */\
+ type *tqe_next; /* next element */ \
+ type **tqe_prev; /* address of previous next element */ \
}
-#define QTAILQ_ENTRY(type) Q_TAILQ_ENTRY(struct type,)
/*
* Tail queue functions.