X-Git-Url: https://git.auder.net/?p=cgds.git;a=blobdiff_plain;f=src%2FList.h;h=a6e9822412bc7d9f9aa751d15033e57015bc1045;hp=6150d2bb466f2df365eb0832c8521efa396fb344;hb=eed1b5d2fca21abae2540b500f4a4ed94a809403;hpb=e45132acdb58c076d5e06849fa51c26de9a7486d diff --git a/src/List.h b/src/List.h index 6150d2b..a6e9822 100644 --- a/src/List.h +++ b/src/List.h @@ -56,9 +56,7 @@ List* _list_new( * Usage: List* list_new( type) */ #define list_new(type) \ -{ \ - _list_new(sizeof(type)); \ -} + _list_new(sizeof(type)) /** * @brief Copy constructor (shallow copy, ok for basic types). @@ -120,7 +118,7 @@ void _list_set( */ #define list_set(list, listCell, data) \ { \ - typeof((data)) tmp = data; \ + typeof(data) tmp = data; \ _list_set(list, listCell, &tmp); \ } @@ -151,7 +149,7 @@ void _list_insert_before( */ #define list_insert_before(list, listCell, data) \ { \ - typeof((data)) tmp = data; \ + typeof(data) tmp = data; \ _list_insert_before(list, listCell, &tmp); \ } @@ -174,7 +172,7 @@ void _list_insert_after( */ #define list_insert_after(list, listCell, data) \ { \ - typeof((data)) tmp = data; \ + typeof(data) tmp = data; \ _list_insert_after(list, listCell, &tmp); \ } @@ -195,7 +193,7 @@ void _list_insert_front( */ #define list_insert_front(list, data) \ { \ - typeof((data)) tmp = data; \ + typeof(data) tmp = data; \ _list_insert_front(list, &tmp); \ } @@ -216,7 +214,7 @@ void _list_insert_back( */ #define list_insert_back(list, data) \ { \ - typeof((data)) tmp = data; \ + typeof(data) tmp = data; \ _list_insert_back(list, &tmp); \ }