rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 9e3e5e32a202ab035a831beb4e01c5841bcb5057
parent 54d4952c453b3fc9ee46242935dd62fe86ac92ff
Author: vaplv <vaplv@free.fr>
Date:   Sun,  9 Feb 2014 13:37:19 +0100

Fix the cmake config script

Add some comments

Diffstat:
Mcmake/config/rsys-config.cmake.in | 2+-
Msrc/free_list.h | 14+++++++++++++-
Msrc/rsys.h | 1+
3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/cmake/config/rsys-config.cmake.in b/cmake/config/rsys-config.cmake.in @@ -26,7 +26,7 @@ foreach(_cmp ${${_rsys}_FIND_COMPONENTS}) endforeach(_cmp) if(NOT _rsys_required_components) - list(APPEND _rsys_required_components ${RSYS_LIBRARIES} ${RSYS_INCLUDE_DIRS}) + list(APPEND _rsys_required_components RSYS_LIBRARIES RSYS_INCLUDE_DIRS) endif(NOT _rsys_required_components) FIND_PACKAGE_HANDLE_STANDARD_ARGS(RSys DEFAULT_MSG ${_rsys_required_components}) diff --git a/src/free_list.h b/src/free_list.h @@ -1,4 +1,8 @@ #ifndef FITEM_TYPE +/* + * Declare regular free list types and macros. May be include before any free + * list declaration + */ # ifndef FREE_LIST_H # define FREE_LIST_H @@ -22,7 +26,15 @@ static const struct fid FID_NULL = { UINT32_MAX, UINT32_MAX }; # endif /* FREE_LIST_H */ #else - +/* + * Free list API generated with respect to the FITEM_TYPE macro. + * + * The name of the generated free list type is: + * struct flist_<FITEM_TYPE> + * + * while each generated `function' respect the following naming convention: + * flist_<FITEM_TYPE>_<function> + */ #define FLIST_FUNC__(Func) CONCAT(CONCAT(CONCAT(flist_, FITEM_TYPE), _), Func) #define FLIST_TYPE__ CONCAT(flist_, FITEM_TYPE) diff --git a/src/rsys.h b/src/rsys.h @@ -165,6 +165,7 @@ #define LIST_ARG3(A, B, C) A, B, C #define LIST_ARG4(A, B, C, D) A, B, C, D #define LIST_ARG5(A, B, C, D, E) A, B, C, D, E + #define COMMA_ARG0() #define COMMA_ARG1(A) , #define COMMA_ARG2(A, B) ,