From: Joel Rosdahl Date: Sat, 21 Aug 2010 16:47:23 +0000 (+0200) Subject: Reorder languages array with more common extensions first X-Git-Tag: v3.1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d2a41628d51814e3300cce2536a13664b66ba0a;p=thirdparty%2Fccache.git Reorder languages array with more common extensions first --- diff --git a/ccache.c b/ccache.c index a32ba478a..60c760ac8 100644 --- a/ccache.c +++ b/ccache.c @@ -200,12 +200,6 @@ static const struct { const char *extension; const char *language; } extensions[] = { - /* Preprocessed: */ - {".i", "cpp-output"}, - {".ii", "c++-cpp-output"}, - {".mi", "objc-cpp-output"}, - {".mii", "objc++-cpp-output"}, - /* Other: */ {".c", "c"}, {".C", "c++"}, {".cc", "c++"}, @@ -221,6 +215,11 @@ static const struct { {".m", "objective-c"}, {".M", "objective-c++"}, {".mm", "objective-c++"}, + /* Preprocessed: */ + {".i", "cpp-output"}, + {".ii", "c++-cpp-output"}, + {".mi", "objc-cpp-output"}, + {".mii", "objc++-cpp-output"}, {NULL, NULL}}; /*