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

Re: [PATCH] attr: mark a file-local symbol as static

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 19, 2017, 01:22 UTC
Message-ID
<993c0278-03ae-a28a-df29-beed9864a4ae@ramsayjones.plus.com>
In-Reply-To
<20170118230541.GE10641@google.com>
On 18/01/17 23:05, Brandon Williams wrote:
Show 28 quoted lines
> On 01/18, Ramsay Jones wrote:
>>
>> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
>> ---
>>
>> Hi Brandon,
>>
>> If you need to re-roll your 'bw/attr' branch, could you please
>> squash this into the relevant patch (commit 8908457159,
>> "attr: use hashmap for attribute dictionary", 12-01-2017).
>>
>> Also, I note that, although they are declared as part of the
>> public attr api, attr_check_clear() and attr_check_reset() are
>> also not called outside of attr.c. Are these functions part of
>> the public api?
>>
>> Also, a minor point, but attr_check_reset() is called (line 1050)
>> before it's definition (line 1114). This is not a problem, given
>> the declaration in attr.h, but I prefer definitions to come before
>> use, where possible.
>>
>> Thanks!
>>
>> ATB,
>> Ramsay Jones
> 
> Yes of course, I believe Stefan also pointed that out earlier today so I
> have it fixed locally.

Yep, I noticed Stefan's email just a few minutes after I hit send! ;-)

Show 6 quoted lines
> For attr_check_clear() and attr_check_reset() the intent is that they
> are the accepted way to either clear or reset the attr_check structure.
> Currently most users of the attribute system don't have a need to clear
> or reset the structure but there could be future callers who need that
> functionality.  If you feel like they shouldn't be part of the api right
> now then I'm open to changing that for this series.

No, I just wanted to check that they were intended to be part of the public api and that you anticipate additional callers in the future.

[I would still prefer definitions before use, but many people would not agree with me, so ...]

ATB, Ramsay Jones

Previous: Brandon Williams
Message 3 of 3 in “attr: mark a file-local symbol as static”
  1. attr: mark a file-local symbol as staticRamsay Jones, Jan 18, 2017
  2. Brandon WilliamsJan 18, 2017
  3. Ramsay JonesJan 19, 2017

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.