diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-24 17:59:20 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-24 17:59:20 +0000 |
commit | 81ae89971c5c5addbb61b20a1f1745d74ad34ffc (patch) | |
tree | b420e9f912226df2211bca96b5377c31237cd73b /cpp/src | |
parent | fix (diff) | |
download | ice-81ae89971c5c5addbb61b20a1f1745d74ad34ffc.tar.bz2 ice-81ae89971c5c5addbb61b20a1f1745d74ad34ffc.tar.xz ice-81ae89971c5c5addbb61b20a1f1745d74ad34ffc.zip |
fixes
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/LocalObject.cpp | 34 | ||||
-rw-r--r-- | cpp/src/Slice/Scanner.l | 22 |
2 files changed, 18 insertions, 38 deletions
diff --git a/cpp/src/Ice/LocalObject.cpp b/cpp/src/Ice/LocalObject.cpp index 56cce93813f..b4efdd39bb9 100644 --- a/cpp/src/Ice/LocalObject.cpp +++ b/cpp/src/Ice/LocalObject.cpp @@ -16,37 +16,3 @@ using namespace IceInternal; void IceInternal::incRef(LocalObject* p) { p->__incRef(); } void IceInternal::decRef(LocalObject* p) { p->__decRef(); } - -Ice::LocalObjectPtrE::LocalObjectPtrE(const LocalObjectPtrE& p) : - _ptr(p._ptr) -{ -} - -Ice::LocalObjectPtrE::LocalObjectPtrE(const LocalObjectPtr& p) : - _ptr(p) -{ -} - -Ice::LocalObjectPtrE::operator LocalObjectPtr() const -{ - return LocalObjectPtr(dynamic_cast<LocalObject*>(_ptr.get())); -} - -::Ice::LocalObject* -Ice::LocalObjectPtrE::operator->() const -{ - return _ptr.get(); -} - -Ice::LocalObjectPtrE::operator bool() const -{ - return _ptr.get() ? true : false; -} - -Ice::LocalObject::LocalObject() -{ -} - -Ice::LocalObject::~LocalObject() -{ -} diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l index 8238fad4af8..0754f1cbf2c 100644 --- a/cpp/src/Slice/Scanner.l +++ b/cpp/src/Slice/Scanner.l @@ -297,16 +297,30 @@ using namespace Slice; return ICE_OP_KEYWORD; } -[[:alpha:]_][[:alnum:]_]* { +\\?[[:alpha:]_][[:alnum:]_]* { StringTokPtr ident = new StringTok; - ident->v = yytext; + if (*yytext == '\\') + { + ident->v = yytext + 1; + } + else + { + ident->v = yytext; + } *yylvalp = ident; return ICE_IDENTIFIER; } -[[:alpha:]_][[:alnum:]_]*[[:space:]]*"(" { +\\?[[:alpha:]_][[:alnum:]_]*[[:space:]]*"(" { StringTokPtr ident = new StringTok; - ident->v = yytext; + if (*yytext == '\\') + { + ident->v = yytext + 1; + } + else + { + ident->v = yytext; + } ident->v.erase(ident->v.find_first_of(" \t\v\n\r\f(")); *yylvalp = ident; return ICE_OP_IDENTIFIER; |