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
/
List.h
diff --git
a/src/List.h
b/src/List.h
index
6150d2b
..
a6e9822
100644
(file)
--- a/
src/List.h
+++ b/
src/List.h
@@
-56,9
+56,7
@@
List* _list_new(
* Usage: List* list_new(<Type> type)
*/
#define list_new(type) \
* Usage: List* list_new(<Type> type)
*/
#define list_new(type) \
-{ \
- _list_new(sizeof(type)); \
-}
+ _list_new(sizeof(type))
/**
* @brief Copy constructor (shallow copy, ok for basic types).
/**
* @brief Copy constructor (shallow copy, ok for basic types).
@@
-120,7
+118,7
@@
void _list_set(
*/
#define list_set(list, listCell, data) \
{ \
*/
#define list_set(list, listCell, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_list_set(list, listCell, &tmp); \
}
_list_set(list, listCell, &tmp); \
}
@@
-151,7
+149,7
@@
void _list_insert_before(
*/
#define list_insert_before(list, listCell, data) \
{ \
*/
#define list_insert_before(list, listCell, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_list_insert_before(list, listCell, &tmp); \
}
_list_insert_before(list, listCell, &tmp); \
}
@@
-174,7
+172,7
@@
void _list_insert_after(
*/
#define list_insert_after(list, listCell, data) \
{ \
*/
#define list_insert_after(list, listCell, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_list_insert_after(list, listCell, &tmp); \
}
_list_insert_after(list, listCell, &tmp); \
}
@@
-195,7
+193,7
@@
void _list_insert_front(
*/
#define list_insert_front(list, data) \
{ \
*/
#define list_insert_front(list, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_list_insert_front(list, &tmp); \
}
_list_insert_front(list, &tmp); \
}
@@
-216,7
+214,7
@@
void _list_insert_back(
*/
#define list_insert_back(list, data) \
{ \
*/
#define list_insert_back(list, data) \
{ \
- typeof(
(data)
) tmp = data; \
+ typeof(
data
) tmp = data; \
_list_insert_back(list, &tmp); \
}
_list_insert_back(list, &tmp); \
}