Add basic documentation about the string-list.h macros that can be used to initialize the string_list structure. Signed-off-by: Thiago Farina <tfransosi@xxxxxxxxx> --- Documentation/technical/api-string-list.txt | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Documentation/technical/api-string-list.txt b/Documentation/technical/api-string-list.txt index 3f575bd..cec11b5 100644 --- a/Documentation/technical/api-string-list.txt +++ b/Documentation/technical/api-string-list.txt @@ -52,6 +52,18 @@ However, if you use the list to check if a certain string was added already, you should not do that (using unsorted_string_list_has_string()), because the complexity would be quadratic again (but with a worse factor). +Macros +------ + +`STRING_LIST_INIT_NODUP`:: + + Initialize the members and set the `strdup_strings` member to 0. + +`STRING_LIST_INIT_DUP`:: + + Initialize the members and set the `strdup_strings` member to 1. + + Functions --------- -- 1.7.2.3.313.gcd15 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html