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

Re: [PATCH v2] commit-slab-decl.h: fix define guards

From
Junio C Hamano <gitster@pobox.com>
Date
May 18, 2020, 17:32 UTC
Message-ID
<xmqqblml408u.fsf@gitster.c.googlers.com>
In-Reply-To
<CAPig+cTFp0rHkYUwxvRJUWLBsV8gt-qL=UNVBB=+oTCkpe0oyA@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 9 quoted lines
> On Mon, May 18, 2020 at 1:14 PM Junio C Hamano <gitster@pobox.com> wrote:
>> From: Abhishek Kumar <abhishekkumar8222@gmail.com>
>> Subject: [PATCH] commit-slab-decl.h: update include guard
>>
>> When a9f1f1f9f8 ("commit-slab.h: code split", 2018-05-19) split
>> commit-slab.h into commit-slab-decl.h and commit-slab-impl.h header
>> files, commit-slab-decl.h were left use "COMMIT_SLAB_HDR_H", while
>
> s/were left use/was left using/
Thanks, I meant to say "left to use" actually.
Show 8 quoted lines
>> commit-slab-impl.h gained its own macro, "COMMIT_SLAB_IMPL_H".
>>
>> As these two files use different include guards, there is nothing
>> broken, but let's update commit-slab-decl.h to match the convention
>> to name the include guard after the filename.
>>
>> Signed-off-by: Abhishek Kumar <abhishekkumar8222@gmail.com>
>> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previous: Eric Sunshine
Message 6 of 6 in “commit-slab-decl.h: fix define gaurds”
  1. commit-slab-decl.h: fix define gaurdsAbhishek Kumar, May 16, 2020
  2. Junio C HamanoMay 17, 2020
  3. commit-slab-decl.h: fix define guardsAbhishek Kumar, May 18, 2020
  4. Junio C HamanoMay 18, 2020
  5. Eric SunshineMay 18, 2020
  6. Junio C HamanoMay 18, 2020

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.