summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Main.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-07-02 01:14:00 +0000
committerMark Spruiell <mes@zeroc.com>2004-07-02 01:14:00 +0000
commitc11d0fed2d828d3a23c895328843bda33a4fa71c (patch)
tree68a9538afa133c126852af348621b05eaa4d7257 /cpp/src/slice2cpp/Main.cpp
parentwinsock2.h is now included (diff)
downloadice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.bz2
ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.xz
ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.zip
Slice checksum changes
Diffstat (limited to 'cpp/src/slice2cpp/Main.cpp')
-rw-r--r--cpp/src/slice2cpp/Main.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp
index df62a318de1..1b554a842e5 100644
--- a/cpp/src/slice2cpp/Main.cpp
+++ b/cpp/src/slice2cpp/Main.cpp
@@ -34,6 +34,7 @@ usage(const char* n)
"--depend Generate Makefile dependencies.\n"
"-d, --debug Print debug messages.\n"
"--ice Permit `Ice' prefix (for building Ice source code only)\n"
+ "--checksum Generate checksums for Slice definitions.\n"
;
// Note: --case-sensitive is intentionally not shown here!
}
@@ -53,6 +54,7 @@ main(int argc, char* argv[])
bool ice = false;
bool caseSensitive = false;
bool depend = false;
+ bool checksum = false;
int idx = 1;
while(idx < argc)
@@ -220,6 +222,15 @@ main(int argc, char* argv[])
}
--argc;
}
+ else if(strcmp(argv[idx], "--checksum") == 0)
+ {
+ checksum = true;
+ for(int i = idx ; i + 1 < argc ; ++i)
+ {
+ argv[i] = argv[i + 1];
+ }
+ --argc;
+ }
else if(argv[idx][0] == '-')
{
cerr << argv[0] << ": unknown option `" << argv[idx] << "'" << endl;
@@ -274,7 +285,7 @@ main(int argc, char* argv[])
else
{
Gen gen(argv[0], icecpp.getBaseName(), headerExtension, sourceExtension, include,
- includePaths, dllExport, output, impl);
+ includePaths, dllExport, output, impl, checksum);
if(!gen)
{
u->destroy();