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

Re: [PATCH] progress.c: avoid use of dynamic-sized array

From
BGBoyd Lynn Gerber <gerberb@zenez.com>
Date
Jun 8, 2008, 19:52 UTC
Message-ID
<Pine.LNX.4.64.0806081351220.18454@xenau.zenez.com>
In-Reply-To
<alpine.DEB.1.00.0806082029170.1783@racer>
On Sun, 8 Jun 2008, Johannes Schindelin wrote:
Show 34 quoted lines
> On Sun, 8 Jun 2008, Boyd Lynn Gerber wrote:
> > Dynamically sized arrays are gcc and C99 construct.  Using them hurts
> > portability to older compilers, although using them is nice in this case
> > it is not desirable.  This patch removes the only use of the construct
> > in stop_progress_msg(); the function is about writing out a single line
> > of a message, and the existing callers of this function feed messages
> > of only bounded size anyway, so use of dynamic array is simply overkill.
> > 
> > Signed-off-by: Boyd Lynn Gerber <gerberb@zenez.com>
> > 
> > --
> > Boyd Gerber <gerberb@zenez.com>
> > ZENEZ	1042 East Fort Union #135, Midvale Utah  84047
> > 
> > ---
> 
> Do you really want to have your mail signature in the commit message, 
> particularly because...
> 
> > [...]
> >
> >  	clear_progress_signal();
> >  	free(progress->throughput);
> > -- 
> > 1.5.2.4
> > 
> > 
> > --
> > Boyd Gerber <gerberb@zenez.com>
> > ZENEZ	1042 East Fort Union #135, Midvale Utah  84047
> 
> You repeat it at the end of the mail anyway?
> 
> The patch looks fine to me, though.

I put it in because in the git repo it is not their. Only in the email. It is fine to remove it.

-- Boyd Gerber <gerberb@zenez.com> ZENEZ 1042 East Fort Union #135, Midvale Utah 84047

Previous: Johannes SchindelinNext: Alex Riesen
Message 3 of 7 in “progress.c: avoid use of dynamic-sized array”
  1. progress.c: avoid use of dynamic-sized arrayBoyd Lynn Gerber, Jun 8, 2008
  2. Johannes SchindelinJun 8, 2008
  3. Boyd Lynn GerberJun 8, 2008
  4. Alex RiesenJun 8, 2008
  5. しらいしななこJun 8, 2008
  6. Junio C HamanoJun 8, 2008
  7. Boyd Lynn GerberJun 8, 2008

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.