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

Re: [PATCH 5/5] grep: use parseopt

From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
May 17, 2009, 19:45 UTC
Message-ID
<4A10694C.5010109@lsrfire.ath.cx>
In-Reply-To
<4A0E8AEF.3000704@gmail.com>
Stephen Boyd schrieb:
Show 5 quoted lines
> René Scharfe wrote:
>> +int context_callback(const struct option *opt, const char *arg, int unset)
>> +{
> 
> Shouldn't these callbacks be static?
Oh, yes, they should.
René
Previous: Stephen BoydNext: René Scharfe
Message 9 of 10 in “grep parseopt conversion”
  1. 0/5 grep parseopt conversionRené Scharfe, May 7, 2009
  2. 1/5 parseopt: add OPT_NEGBITRené Scharfe, May 7, 2009
  3. Jeff KingMay 8, 2009
  4. 2/5 parseopt: add OPT_NUMBER_CALLBACKRené Scharfe, May 7, 2009
  5. 3/5 parseopt: add PARSE_OPT_NODASHRené Scharfe, May 7, 2009
  6. 4/5 grep: remove global variable builtin_grepRené Scharfe, May 7, 2009
  7. 5/5 grep: use parseoptRené Scharfe, May 7, 2009
  8. Stephen BoydMay 16, 2009
  9. René ScharfeMay 17, 2009
  10. grep: make callback functions staticRené Scharfe, May 20, 2009

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.