X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FExprIntrp%2FExprIntrp_yacclex.cxx;h=596ed7713621de818d921c4219834bb42c8880f7;hb=2a54ebbf29872caa7deb6b528e36ea7451dbc0c5;hpb=cae42e78e50dc2723143634050cd05b7ec7857f3 diff --git a/src/ExprIntrp/ExprIntrp_yacclex.cxx b/src/ExprIntrp/ExprIntrp_yacclex.cxx index 01c98e814a..596ed77136 100644 --- a/src/ExprIntrp/ExprIntrp_yacclex.cxx +++ b/src/ExprIntrp/ExprIntrp_yacclex.cxx @@ -17,7 +17,7 @@ #include #include -static char ExprIntrp_curres[255]; +static TCollection_AsciiString ExprIntrp_curres; static int ExprIntrp_degree; #ifndef WNT @@ -29,7 +29,7 @@ extern "C" char* ExprIntrptext; extern "C" void ExprIntrp_SetResult() { - strcpy(ExprIntrp_curres,ExprIntrptext); + ExprIntrp_curres = ExprIntrptext; } extern "C" void ExprIntrp_SetDegree() @@ -42,8 +42,7 @@ int ExprIntrp_GetDegree() return ExprIntrp_degree; } -int ExprIntrp_GetResult(char *s) +const TCollection_AsciiString& ExprIntrp_GetResult () { - strcpy(s,ExprIntrp_curres); - return (int)strlen(ExprIntrp_curres); + return ExprIntrp_curres; }