From 487dd39e3483217cccb80f46e7a65674c7f6c05a Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Mon, 24 May 2010 09:51:55 -0700 Subject: bug 4752 - allow underscores in Slice identifiers --- cpp/src/slice2freeze/Main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpp/src/slice2freeze/Main.cpp') diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 97fe20f2e1b..764baa002a6 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -239,7 +239,8 @@ usage(const char* n) " value is std::less.\n" "--output-dir DIR Create files in the directory DIR.\n" "-d, --debug Print debug messages.\n" - "--ice Permit `Ice' prefix (for building Ice source code only)\n" + "--ice Permit `Ice' prefix (for building Ice source code only).\n" + "--underscore Permit underscores in Slice identifiers.\n" ; } @@ -1526,6 +1527,7 @@ compile(int argc, char* argv[]) opts.addOpt("", "output-dir", IceUtilInternal::Options::NeedArg); opts.addOpt("d", "debug"); opts.addOpt("", "ice"); + opts.addOpt("", "underscore"); vector args; try @@ -1923,6 +1925,8 @@ compile(int argc, char* argv[]) bool ice = opts.isSet("ice"); + bool underscore = opts.isSet("underscore"); + if(dicts.empty() && indices.empty()) { getErrorStream() << argv[0] << ": error: no Freeze types specified" << endl; @@ -1937,7 +1941,7 @@ compile(int argc, char* argv[]) return EXIT_FAILURE; } - UnitPtr u = Unit::createUnit(true, false, ice); + UnitPtr u = Unit::createUnit(true, false, ice, underscore); StringList includes; -- cgit v1.2.3