Changeset a64730a in tol
- Timestamp:
- Jan 26, 2009, 10:17:08 AM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 556df52
- Parents:
- c61d3f9
- File:
-
- 1 edited
-
toltcl/generic/tolaccess.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
toltcl/generic/tolaccess.cpp
rc61d3f9 ra64730a 36 36 #include <tol/tol_bnameblock.h> 37 37 #include <tol/tol_bspfun.h> 38 #include <tol/tol_bcodgra.h> 38 39 #include <tol/tol_bsetgra.h> 39 40 #include <tol/tol_btsrgra.h> … … 1649 1650 } 1650 1651 1652 static 1653 BOperator* TT_FindOperator( const BGrammar *G, const char *expr ) 1654 { 1655 BOperator* opr = G->FindOperator( expr ); 1656 if ( opr ) { 1657 return opr; 1658 } 1659 bool oldEnabled = BOut::Disable(); 1660 BSyntaxObject* obj = GraCode( )->BGrammar::LeftEvaluateExpr( expr ); 1661 if( oldEnabled ) { BOut::Enable( ); } 1662 BUserCode *uc = dynamic_cast<BUserCode*>( obj ); 1663 1664 return 1665 ( uc && ( uc->Contens().Grammar( ) == G ) ) ? uc->Contens().Operator( ) : NULL; 1666 } 1667 1651 1668 /* 1652 1669 * Fill in obj_result the function's prototype and description … … 1696 1713 if (gra) { 1697 1714 Tcl_DStringInit(&dstr); 1698 Tcl_UtfToExternalDString( NULL,Tcl_GetString(fun_name),-1,&dstr);1699 BOperator* opr = gra->FindOperator(Tcl_DStringValue(&dstr));1715 Tcl_UtfToExternalDString( NULL, Tcl_GetString( fun_name ), -1, &dstr ); 1716 BOperator* opr = TT_FindOperator( gra, Tcl_DStringValue( &dstr ) ); 1700 1717 Tcl_DStringFree(&dstr); 1701 1718 if (opr) {
Note: See TracChangeset
for help on using the changeset viewer.
