]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Reorder languages array with more common extensions first
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 21 Aug 2010 16:47:23 +0000 (18:47 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 21 Aug 2010 16:47:23 +0000 (18:47 +0200)
ccache.c

index a32ba478a562412053fcd333c621466ecf826577..60c760ac8127b1005c8d525901efb754f448f758 100644 (file)
--- 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}};
 
 /*