summaryrefslogtreecommitdiff
path: root/cpp/src/slice2xsd/Main.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-09-17 05:06:11 +0000
committerMichi Henning <michi@zeroc.com>2002-09-17 05:06:11 +0000
commitd81ab8b62645973c7dd3868267eac0bb3b10b579 (patch)
tree00a3dbb9dd39c4e7dcc482136643c82d071a3d0f /cpp/src/slice2xsd/Main.cpp
parentModified AddUserToAllowCategories usage. (diff)
downloadice-d81ab8b62645973c7dd3868267eac0bb3b10b579.tar.bz2
ice-d81ab8b62645973c7dd3868267eac0bb3b10b579.tar.xz
ice-d81ab8b62645973c7dd3868267eac0bb3b10b579.zip
Added --case-sensitive option.
Diffstat (limited to 'cpp/src/slice2xsd/Main.cpp')
-rw-r--r--cpp/src/slice2xsd/Main.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/slice2xsd/Main.cpp b/cpp/src/slice2xsd/Main.cpp
index 82395018af4..faaadfb54ed 100644
--- a/cpp/src/slice2xsd/Main.cpp
+++ b/cpp/src/slice2xsd/Main.cpp
@@ -29,6 +29,7 @@ usage(const char* n)
"-d, --debug Print debug messages.\n"
"--ice Permit `Ice' prefix (for building Ice source code only)\n"
;
+ // Note: --case-sensitive is intentionally not shown here!
}
int
@@ -37,6 +38,7 @@ main(int argc, char* argv[])
string cpp("cpp -C");
bool debug = false;
bool ice = false;
+ bool caseSensitive = false;
string include;
string output;
vector<string> includePaths;
@@ -100,6 +102,15 @@ main(int argc, char* argv[])
}
--argc;
}
+ else if(strcmp(argv[idx], "--case-sensitive") == 0)
+ {
+ caseSensitive = true;
+ for(int i = idx ; i + 1 < argc ; ++i)
+ {
+ argv[i] = argv[i + 1];
+ }
+ --argc;
+ }
else if(strcmp(argv[idx], "--include-dir") == 0)
{
if(idx + 1 >= argc)
@@ -192,7 +203,7 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
- UnitPtr unit = Unit::createUnit(false, false, ice);
+ UnitPtr unit = Unit::createUnit(false, false, ice, caseSensitive);
int parseStatus = unit->parse(cppHandle, debug);
#ifdef _WIN32