Changeset 9247be0 in tol
- Timestamp:
- Mar 16, 2011, 3:03:48 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 3fdcd40
- Parents:
- 12a919e
- Location:
- tol
- Files:
-
- 3 edited
-
bbasic/txtalgeb.cpp (modified) (1 diff)
-
btol/bgrammar/oprimp.cpp (modified) (1 diff)
-
btol/bgrammar/tol_bgentmp.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/txtalgeb.cpp
r12a919e r9247be0 106 106 { 107 107 //InitTotalTime("BText::Copy BChar*"); 108 if(this!=&txt) 108 109 if(&txt && (this!=&txt)) 109 110 { 110 111 if(!buffer_) { AllocateBuffer(0); } -
tol/btol/bgrammar/oprimp.cpp
r12a919e r9247be0 677 677 TRACE_SHOW_MEDIUM(fun," 3"); 678 678 BGrammar::PutLast(gra); 679 if(!(rightResult = gra->EvaluateTree(tre))) 679 rightResult = gra->EvaluateTree(tre); 680 if(!rightResult || ((rightResult->Mode()!=BOBJECTMODE) && 681 (rightResult->Mode()!=BBUILTINFUNMODE) && 682 (rightResult->Mode()!=BUSERFUNMODE))) 680 683 { 681 684 TRACE_SHOW_MEDIUM(fun," 4"); -
tol/btol/bgrammar/tol_bgentmp.h
r12a919e r9247be0 60 60 } 61 61 } 62 Any* GetResult() const 63 { 64 if(result_->Mode()!=BOBJECTMODE) 65 { 66 Error("[FATAL] Non expect mode of syntax object."); 67 return(NULL); 68 } 69 return(result_); 70 } 62 71 const BText& Expression () const 63 72 { 64 if( result_) { return(result_->Expression()); }65 else { return(this->CBTextNullRef()); }73 if(GetResult()) { return(result_->Expression()); } 74 else { return(this->CBTextNullRef()); } 66 75 } 67 76 const BText& TolPath () const 68 77 { 69 if( result_) { return(result_->TolPath()); }70 else { return(this->CBTextNullRef()); }78 if(GetResult()) { return(result_->TolPath()); } 79 else { return(this->CBTextNullRef()); } 71 80 } 72 81 BText Dump() const 73 82 { 74 if( result_) { return(result_->Dump()); }75 else { return("NULL"); }83 if(GetResult()) { return(result_->Dump()); } 84 else { return("NULL"); } 76 85 } 77 86 BText Info() const 78 87 { 79 if( result_) { return(result_->Info()); }80 else { return("NULL"); }88 if(GetResult()) { return(result_->Info()); } 89 else { return("NULL"); } 81 90 } 82 91 void ReCalc() 83 92 { 84 if(result_) { result_->ReCalc(); } 85 } 86 Any* GetResult() const { return(result_); } 93 if(GetResult()) { result_->ReCalc(); } 94 } 87 95 }; 88 96
Note: See TracChangeset
for help on using the changeset viewer.
