projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various small fixes
[cgds.git]
/
src
/
Queue.h
diff --git
a/src/Queue.h
b/src/Queue.h
index
09b61cf
..
22d76dc
100644
(file)
--- a/
src/Queue.h
+++ b/
src/Queue.h
@@
-44,9
+44,7
@@
Queue* _queue_new(
* Usage: Queue* queue_new(<Type> type)
*/
#define queue_new(type) \
* Usage: Queue* queue_new(<Type> type)
*/
#define queue_new(type) \
-{ \
- _queue_new(sizeof(type)); \
-}
+ _queue_new(sizeof(type))
/**
* @brief Copy constructor (shallow copy, ok for basic types).
/**
* @brief Copy constructor (shallow copy, ok for basic types).
@@
-86,7
+84,7
@@
void _queue_push(
*/
#define queue_push(queue, data) \
{ \
*/
#define queue_push(queue, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_queue_push(queue, &tmp); \
}
_queue_push(queue, &tmp); \
}