From d81ab8b62645973c7dd3868267eac0bb3b10b579 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Tue, 17 Sep 2002 05:06:11 +0000 Subject: Added --case-sensitive option. --- cpp/src/slice2cpp/Main.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Main.cpp') diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 17f6500b355..078b332c1b4 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -34,6 +34,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 @@ -47,6 +48,7 @@ main(int argc, char* argv[]) bool impl = false; bool debug = false; bool ice = false; + bool caseSensitive = false; bool depend = false; int idx = 1; @@ -108,6 +110,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) @@ -257,7 +268,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 -- cgit v1.2.3