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

Re: [PATCH] statinfo.h: move DTYPE defines from dir.h

From
Elijah Newren <newren@gmail.com>
Date
Jun 3, 2023, 01:47 UTC
Message-ID
<CABPp-BEH46_daydTZpt0YLXLDYEOOeBobuht3hUgJvucSyUKMA@mail.gmail.com>
In-Reply-To
<20230602192700.1548636-1-asedeno@google.com>
On Fri, Jun 2, 2023 at 12:27 PM Alejandro R Sedeño <asedeno@google.com> wrote:
Show 6 quoted lines
>
> From: Alejandro R. Sedeño <asedeno@mit.edu>
>
> These definitions are used in cache.h, which can't include dir.h
> without causing name-hash.c to have two definitions of
> `struct dir_entry`.

...are _currently_ used in cache.h (your commit message is fine, just pointing it out for below...)

> Both dir.h and cache.h include statinfo.h, and this seems a reasonable
> place for these definitions.
>
> This change fixes a broken build issue on old SunOS.

Maintainer note for Junio: en/header-split-cache-h-part-3 moves the inline functions in cache.h that use the DT_* defines, but that series should both textually and semantically merge cleanly with this change. (Just noting this for your peace of mind.)

After en/header-split-cache-h-part-3 merges down, I might opt for a different fix (I'm still mulling it over), but that other fix isn't possible until cache.h is split up more. Alejandro's fix is the cleanest interim solution I can think of.

Reviewed-by: Elijah Newren <newren@gmail.com>
Previous: Alejandro R SedeñoNext: Junio C Hamano
Message 6 of 12 in “statinfo.h: move DTYPE defines from dir.h”
  1. statinfo.h: move DTYPE defines from dir.hAleajndro R Sedeño, Jun 2, 2023
  2. Alejandro SedeñoJun 2, 2023
  3. Eric SunshineJun 2, 2023
  4. Alejandro SedeñoJun 2, 2023
  5. statinfo.h: move DTYPE defines from dir.hAlejandro R Sedeño, Jun 2, 2023
  6. Elijah NewrenJun 3, 2023
  7. Junio C HamanoJun 3, 2023
  8. Elijah NewrenJun 3, 2023
  9. Junio C HamanoJun 3, 2023
  10. Alejandro SedeñoJun 3, 2023
  11. statinfo.h: move DTYPE defines from dir.hAlejandro R Sedeño, Jun 6, 2023
  12. Junio C HamanoJun 12, 2023

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.