diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
commit | 487dd39e3483217cccb80f46e7a65674c7f6c05a (patch) | |
tree | 75fd3df459df63c2646a4e20c7a32f1ff05a09dd /py/modules/IcePy/Slice.cpp | |
parent | bug 4623 - missing doc comments (diff) | |
download | ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.bz2 ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.xz ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.zip |
bug 4752 - allow underscores in Slice identifiers
Diffstat (limited to 'py/modules/IcePy/Slice.cpp')
-rw-r--r-- | py/modules/IcePy/Slice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/py/modules/IcePy/Slice.cpp b/py/modules/IcePy/Slice.cpp index 307b893978b..b0d33bed193 100644 --- a/py/modules/IcePy/Slice.cpp +++ b/py/modules/IcePy/Slice.cpp @@ -68,6 +68,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) opts.addOpt("I", "", IceUtilInternal::Options::NeedArg, "", IceUtilInternal::Options::Repeat); opts.addOpt("d", "debug"); opts.addOpt("", "ice"); + opts.addOpt("", "underscore"); opts.addOpt("", "checksum"); opts.addOpt("", "all"); @@ -97,6 +98,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) Ice::StringSeq includePaths; bool debug = false; bool ice = true; // This must be true so that we can create Ice::Identity when necessary. + bool underscore = opts.isSet("underscore"); bool all = false; bool checksum = false; if(opts.isSet("D")) @@ -142,7 +144,7 @@ IcePy_loadSlice(PyObject* /*self*/, PyObject* args) return 0; } - UnitPtr u = Slice::Unit::createUnit(ignoreRedefs, all, ice); + UnitPtr u = Slice::Unit::createUnit(ignoreRedefs, all, ice, underscore); int parseStatus = u->parse(file, cppHandle, debug); if(!icecpp->close() || parseStatus == EXIT_FAILURE) |