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

Re: [PATCH 1/4] add strbuf_expand_dict_cb(), a helper for simple cases

From
Jon Loeliger <jdl@freescale.com>
Date
Dec 4, 2008, 20:30 UTC
Message-ID
<1228422630.32534.4.camel@ld0161-tx32>
In-Reply-To
<4928912A.5050307@lsrfire.ath.cx>
On Sun, 2008-11-23 at 00:09 +0100, René Scharfe wrote:
Show 12 quoted lines
> The new callback function strbuf_expand_dict_cb() can be used together
> with strbuf_expand() if there is only a small number of placeholders
> for static replacement texts.  It expects its dictionary as an array of
> placeholder+value pairs as context parameter, terminated by an entry
> with the placeholder member set to NULL.
> 
> The new helper is intended to aid converting the remaining calls of
> interpolate().  strbuf_expand() is smaller, more flexible and can be
> used to go faster than interpolate(), so it should replace the latter.
> 
> Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
> ---
Acked-by: Jon Loeliger <jdl@freescale.com>
jdl
Previous: René Scharfe
Message 7 of 7 in “add strbuf_expand_dict_cb(), a helper for simple cases”
  1. 1/4 add strbuf_expand_dict_cb(), a helper for simple casesRené Scharfe, Nov 22, 2008
  2. 2/4 merge-recursive: use strbuf_expand() instead of interpolate()René Scharfe, Nov 22, 2008
  3. 3/4 daemon: use strbuf_expand() instead of interpolate()René Scharfe, Nov 22, 2008
  4. 4/4 remove the unused files interpolate.c and interpolate.hRené Scharfe, Nov 22, 2008
  5. 1/4 daemon: inline fill_in_extra_table_entries()René Scharfe, Nov 22, 2008
  6. 2/4 daemon: deglobalize variable 'directory'René Scharfe, Nov 22, 2008
  7. Jon LoeligerDec 4, 2008

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.