diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-07-08 14:34:02 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-10 00:13:28 -0700 |
commit | 344c52aee5f2dfaad2a065f8dcc8566d52d0d6c9 (patch) | |
tree | b17a624f0ca2ea52753397ee588a05b63428d612 /diff.c | |
parent | 4f12d529abbf233e1df93e7ffa5f2719005a2258 (diff) | |
download | git-344c52aee5f2dfaad2a065f8dcc8566d52d0d6c9.tar.gz git-344c52aee5f2dfaad2a065f8dcc8566d52d0d6c9.tar.xz |
Avoid C99 initializers
In a handful places, we use C99 structure and array
initializers, which some compilers do not support.
This can be handy when you are trying to compile GIT on a
Solaris system that has an older C compiler, for example.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -44,12 +44,12 @@ enum color_diff { #define COLOR_WHITE "\033[37m" static const char *diff_colors[] = { - [DIFF_RESET] = COLOR_RESET, - [DIFF_PLAIN] = COLOR_NORMAL, - [DIFF_METAINFO] = COLOR_BOLD, - [DIFF_FRAGINFO] = COLOR_CYAN, - [DIFF_FILE_OLD] = COLOR_RED, - [DIFF_FILE_NEW] = COLOR_GREEN, + COLOR_RESET, + COLOR_NORMAL, + COLOR_BOLD, + COLOR_CYAN, + COLOR_RED, + COLOR_GREEN }; static int parse_diff_color_slot(const char *var, int ofs) |