[sword-svn] r3092 - trunk/utilities
chrislit at crosswire.org
chrislit at crosswire.org
Mon Mar 10 00:32:44 MST 2014
Author: chrislit
Date: 2014-03-10 00:32:44 -0700 (Mon, 10 Mar 2014)
New Revision: 3092
Modified:
trunk/utilities/imp2ld.cpp
trunk/utilities/imp2vs.cpp
trunk/utilities/tei2mod.cpp
Log:
fixed switch cases
Modified: trunk/utilities/imp2ld.cpp
===================================================================
--- trunk/utilities/imp2ld.cpp 2014-03-10 06:52:42 UTC (rev 3091)
+++ trunk/utilities/imp2ld.cpp 2014-03-10 07:32:44 UTC (rev 3092)
@@ -101,11 +101,11 @@
if (fourByteSize) usage(*argv, "Cannot specify both -z and -4");
compType = "ZIP";
if (i+1 < argc && argv[i+1][0] != '-') {
- switch (argv[i+1][0]) {
- case 'l': compType = "LZSS";
- case 'z': compType = "ZIP";
- case 'b': compType = "BZIP2";
- case 'x': compType = "XZ";
+ switch (argv[++i][0]) {
+ case 'l': compType = "LZSS"; break;
+ case 'z': compType = "ZIP"; break;
+ case 'b': compType = "BZIP2"; break;
+ case 'x': compType = "XZ"; break;
}
}
}
Modified: trunk/utilities/imp2vs.cpp
===================================================================
--- trunk/utilities/imp2vs.cpp 2014-03-10 06:52:42 UTC (rev 3091)
+++ trunk/utilities/imp2vs.cpp 2014-03-10 07:32:44 UTC (rev 3092)
@@ -115,11 +115,11 @@
if (fourByteSize) usage(*argv, "Cannot specify both -z and -4");
compType = "ZIP";
if (i+1 < argc && argv[i+1][0] != '-') {
- switch (argv[i+1][0]) {
- case 'l': compType = "LZSS";
- case 'z': compType = "ZIP";
- case 'b': compType = "BZIP2";
- case 'x': compType = "XZ";
+ switch (argv[++i][0]) {
+ case 'l': compType = "LZSS"; break;
+ case 'z': compType = "ZIP"; break;
+ case 'b': compType = "BZIP2"; break;
+ case 'x': compType = "XZ"; break;
}
}
}
Modified: trunk/utilities/tei2mod.cpp
===================================================================
--- trunk/utilities/tei2mod.cpp 2014-03-10 06:52:42 UTC (rev 3091)
+++ trunk/utilities/tei2mod.cpp 2014-03-10 07:32:44 UTC (rev 3092)
@@ -393,11 +393,11 @@
if (modDrv.size()) usage(*argv, "Cannot specify both -z and -s");
compType = "ZIP";
if (i+1 < argc && argv[i+1][0] != '-') {
- switch (argv[i+1][0]) {
- case 'l': compType = "LZSS";
- case 'z': compType = "ZIP";
- case 'b': compType = "BZIP2";
- case 'x': compType = "XZ";
+ switch (argv[++i][0]) {
+ case 'l': compType = "LZSS"; break;
+ case 'z': compType = "ZIP"; break;
+ case 'b': compType = "BZIP2"; break;
+ case 'x': compType = "XZ"; break;
}
}
modDrv = "zLD";
More information about the sword-cvs
mailing list