Re: [ANNOUNCE] GIT 1.0.7
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 7, 2006, 21:12 UTC
- Message-ID
- <7vlkxreo9e.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <43C028CA.8090702@zytor.com>
"H. Peter Anvin" <hpa@zytor.com> writes:
Show 8 quoted lines
> Any reason to not just do:
>
> struct frotz {
> int xyzzy;
> char nitfol[1]; /* more */
> };
>
> ... which should work on all compilers?Laziness, especially to avoid having to deal with comments like "your xmalloc(sizeof(struct frotz) + strlen(nitfol) + 1) should be xmalloc(sizeof(struct frotz) + strlen(nitfol)), because you have already one byte for nitfol element."