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

Re: [PATCH] Customizable error handlers

From
Junio C Hamano <junkio@cox.net>
Date
Jun 23, 2006, 23:14 UTC
Message-ID
<7vsllv8ny8.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060623133847.GN21864@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 19 quoted lines
> Dear diary, on Fri, Jun 23, 2006 at 03:32:27PM CEST, I got a letter
> where Petr Baudis <pasky@suse.cz> said that...
>> diff --git a/git-compat-util.h b/git-compat-util.h
>> index 5d543d2..e954002 100644
>> --- a/git-compat-util.h
>> +++ b/git-compat-util.h
>> @@ -36,9 +36,13 @@ #endif
>>  #endif
>>  
>>  /* General helper functions */
>> -extern void usage(const char *err) NORETURN;
>> -extern void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));
>> -extern int error(const char *err, ...) __attribute__((format (printf, 1, 2)));
>> +void usage(const char *err) NORETURN;
>> +void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));
>> +int error(const char *err, ...) __attribute__((format (printf, 1, 2)));
>
> Wah, this kind of slipped through. Below is a patch without the
> externs removed.

Oh, I first thought you did that on purpose as a cleanup. After all don't they mean the same thing?

Previous: Petr BaudisNext: Petr Baudis
Message 3 of 4 in “Customizable error handlers”
  1. Customizable error handlersPetr Baudis, Jun 23, 2006
  2. Petr BaudisJun 23, 2006
  3. Junio C HamanoJun 23, 2006
  4. Petr BaudisJun 23, 2006

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.