lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] gwc-no-xslfo 6942a34 1/4: Improve concinnity


From: Greg Chicares
Subject: [lmi-commits] [lmi] gwc-no-xslfo 6942a34 1/4: Improve concinnity
Date: Thu, 25 Jan 2018 11:13:32 -0500 (EST)

branch: gwc-no-xslfo
commit 6942a34561152b96588f6eb37048d473a5a18a70
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve concinnity
---
 test_coding_rules.cpp | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/test_coding_rules.cpp b/test_coding_rules.cpp
index 91d8a08..e99a4e1 100644
--- a/test_coding_rules.cpp
+++ b/test_coding_rules.cpp
@@ -49,6 +49,7 @@ std::string my_taboo_indulgence();       // See 
'my_test_coding_rules.cpp'.
 
 std::map<std::string, bool> my_taboos(); // See 'my_test_coding_rules.cpp'.
 
+// Sort these enumerators alphabetically.
 enum enum_phylum
     {e_no_phylum  = 0
     ,e_binary     = 1 <<  0
@@ -63,15 +64,15 @@ enum enum_phylum
     ,e_log        = 1 <<  9
     ,e_make       = 1 << 10
     ,e_md5        = 1 << 11
-    ,e_patch      = 1 << 12
-    ,e_rates      = 1 << 13
-    ,e_relax_ng   = 1 << 14
-    ,e_script     = 1 << 15
-    ,e_synopsis   = 1 << 16
-    ,e_touchstone = 1 << 17
-    ,e_xml_input  = 1 << 18
-    ,e_xml_other  = 1 << 19
-    ,e_mustache   = 1 << 20
+    ,e_mustache   = 1 << 12
+    ,e_patch      = 1 << 13
+    ,e_rates      = 1 << 14
+    ,e_relax_ng   = 1 << 15
+    ,e_script     = 1 << 16
+    ,e_synopsis   = 1 << 17
+    ,e_touchstone = 1 << 18
+    ,e_xml_input  = 1 << 19
+    ,e_xml_other  = 1 << 20
     };
 
 enum enum_kingdom
@@ -172,6 +173,7 @@ file::file(std::string const& file_path)
         : ".html"       == extension() ? e_html
         : ".make"       == extension() ? e_make
         : ".md5sums"    == extension() ? e_md5
+        : ".mst"        == extension() ? e_mustache
         : ".patch"      == extension() ? e_patch
         : ".rates"      == extension() ? e_rates
         : ".rnc"        == extension() ? e_relax_ng
@@ -196,7 +198,6 @@ file::file(std::string const& file_path)
         : ".xrc"        == extension() ? e_xml_other
         : ".xsd"        == extension() ? e_xml_other
         : ".xsl"        == extension() ? e_xml_other
-        : ".mst"        == extension() ? e_mustache
         : phyloanalyze("^ChangeLog-")  ? e_binary
         : phyloanalyze("^tags$")       ? e_expungible
         : phyloanalyze("^COPYING$")    ? e_gpl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]