Don't instantiate structures with FAMs.
authorFlorian Forster <octo@verplant.org>
Sun, 18 Jun 2006 15:18:05 +0000 (17:18 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 19 Jun 2006 04:19:09 +0000 (21:19 -0700)
commitb4b1550315c6184ea50936be305a4f1c78ad16a8
treec51a79778f95b0f543fefabcdd576d6b77f4437c
parent63f175693e46c8e1562e68a40086ec864f43886b
Don't instantiate structures with FAMs.

Since structures with `flexible array members' are an incomplete datatype ANSI
C99 forbids creating instances of them. This patch removes such an instance
from `diff-lib.c' and replaces it with a pointer to a `struct
combine_diff_path'. Since all neccessary memory is allocated at once the number
of calls to `xmalloc' is not increased.

Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-lib.c