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

Re: [PATCH 08/18] http*: move common variables and macros to http.[ch]

From
Junio C Hamano <gitster@pobox.com>
Date
May 24, 2009, 20:43 UTC
Message-ID
<7vljomtenw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090524221951.df5151bb.rctay89@gmail.com>
Tay Ray Chuan <rctay89@gmail.com> writes:
Show 12 quoted lines
>  *RANGE_HEADER_SIZE has been moved to http.h.
>
>  *the curl header list, no_pragma_header, containing the header
>   "Pragma:", has been created in http.[ch]. It is allocated in
>   http_init, and freed in http_cleanup. It replaces the similarly-named
>   variable in http-push.c, and the no_pragma_header member in
>   walker_data in http-walker.c.
>
>  *the variable http_is_verbose is created. It is intended for use by
>   methods in http.c, and is modified at the entry points of http.c's
>   users, namely http-push.c (when parsing options) and http-walker.c
>   (in get_http_walker).
Again, style fix.
	Move RANGE_HEADER_SIZE to http.h
	Create the curl header list, no_pragma_header, containing the
	header "Pragma:" in http.[ch].  Allocate it in http_init(), and
	free it in http_cleanup(). ...
	Add http_is_verbose variable in http.c. ...

I wonder if RANGE_HEADER_SIZE should be renamed to be more specific to http, but in later stages you will make it an internal implementation detail contained in http.c so it should be Ok.

Previous: Tay Ray Chuan
Message 2 of 2 in “http*: move common variables and macros to http.[ch]”
  1. 08/18 http*: move common variables and macros to http.[ch]Tay Ray Chuan, May 24, 2009
  2. Junio C HamanoMay 24, 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.