git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: document the string-list macros.

From
Thiago Farina <tfransosi@gmail.com>
Date
Sep 5, 2010, 17:51 UTC
Message-ID
<1283709077-5438-1-git-send-email-tfransosi@gmail.com>

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@gmail.com>
---
 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
Next: Jonathan Nieder
Message 1 of 6 in “Documentation: document the string-list macros.”
  1. Documentation: document the string-list macros.Thiago Farina, Sep 5, 2010
  2. 0/3 Re: [PATCH] Documentation: document the string-list macros.Jonathan Nieder, Sep 5, 2010
  3. 1/3 string-list: introduce string_list_init()Jonathan Nieder, Sep 5, 2010
  4. 1/3 string-list: Document STRING_LIST_INIT_* and string_list_init()Jonathan Nieder, Sep 5, 2010
  5. 3/3 Make initialization of string_lists more consistentJonathan Nieder, Sep 5, 2010
  6. Thiago FarinaSep 5, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.