Thread (64 messages) 64 messages, 4 authors, 2024-08-15

Re: [PATCH 07/20] path: hide functions using `the_repository` by default

From: Patrick Steinhardt <hidden>
Date: 2024-08-13 09:25:41

On Fri, Aug 09, 2024 at 02:43:59PM -0500, Justin Tobler wrote:
On 24/08/07 08:57AM, Patrick Steinhardt wrote:
quoted
+# ifdef USE_THE_REPOSITORY_VARIABLE
+#  include "strbuf.h"
+#  include "repository.h"
Naive question, what is the purpose of providing the include statements
here? Wouldn't they always already be included?
Not necessarily, no. Most headers only have a forward declaration of
`struct strbuf` and `struct repository`. For one this means that we
cannot access the strbuf contents like we do in the function definitions
in this header now. Second, it means that we cannot access `the_repository`.

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help