From cb173f2f81473953d5f0204c79f7079ed153546c Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 19 May 2022 21:45:16 +0200 Subject: [PATCH] Update doc --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 23eaee3c..10e0f1c2 100644 --- a/README.md +++ b/README.md @@ -1353,6 +1353,10 @@ until it reaches the requested element. The size method has the same drawback. The push / pop methods of the container always operate on the back of the container. +LIST\_DEF\_AS is the same as LIST\_DEF +except the name of the types 'name\_t', 'name\_it\_t' are provided by the user, +and not computed from the 'name' prefix. + Example: ```C @@ -1395,6 +1399,7 @@ This variable is shared by all lists of the same type. mempool create heavily efficient list. However it is only worth the effort in some heavy performance context. +Using mempool should be therefore avoided except in performance critical code. The created mempool has to be explicitly initialized before using any methods of the created list by calling mempool\_list\_name\_init(variable) and cleared by calling mempool\_list\_name\_clear(variable). @@ -1415,9 +1420,6 @@ Example: } ``` -LIST\_DEF\_AS is the same as LIST\_DEF -except the name of the types name\_t, name\_it\_t are provided by the user. - #### LIST\_OPLIST(name [, oplist]) Return the oplist of the list defined by calling LIST\_DEF