author | Florian Forster <octo@verplant.org> | |
Sun, 18 Jun 2006 15:18:05 +0000 (17:18 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 19 Jun 2006 04:19:09 +0000 (21:19 -0700) | ||
commit | b4b1550315c6184ea50936be305a4f1c78ad16a8 | |
tree | c51a79778f95b0f543fefabcdd576d6b77f4437c | tree | snapshot |
parent | 63f175693e46c8e1562e68a40086ec864f43886b | commit | diff |
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>
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 | diff | blob | history |